<!--

// general functions

// Pop up Window Function
function openNewWindow (fileName, windowName, theWidth, theHeight) {
	if ( windowName == "newMessageWindow" ) {
		//generate random window ID
		windowName = new String(Math.round(Math.random() * 100000));
	}
	window.open(fileName,windowName,"toolbar=yes,location=yes,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=" + theWidth + ",height=" + theHeight);
}

function teledreamPay(itemName, itemNumber, price) {
	
	var paypalStr;
	var numSessions = eval('document.form1.' + itemNumber + '.value');
   	   	   	   	
	if (isNaN(numSessions)) return;
   	if (numSessions <=0) return;
   	     	
	paypalStr = 'https://www.paypal.com/cart/add=1&business=ron@universityofyourself.com';
	paypalStr += '&item_name=' + itemName;
	paypalStr += '&item_number=' + itemNumber;
	paypalStr += '&amount=' + price;
	paypalStr += '&quantity=' + numSessions;
	paypalStr += '&image_url=&return=http://www.universityofyourself.com/success.htm&cancel_return=http://www.universityofyourself.com/cancel.htm';
	  
	//alert(paypalStr); 	
	window.open(paypalStr,'cartwin','width=600,height=400,scrollbars,location,resizable,status');
}

//-->