	function changeOfPlans(pfid, xsell, gocos)
	{
		document.frmWWDMain.elements['pf_id_1'].value=pfid;
		if (xsell == 'True')
		{
			document.frmWWDMain.elements['nocos'].value = "";
		}
		else
		{
			document.frmWWDMain.elements['nocos'].value = "true";
		}
			
		if (gocos == 'True')
		{
			var frmAction = document.frmWWDMain.action;
			document.frmWWDMain.elements['continue_target'].value = "offers/proreseller_offer.asp";
		}	
		else 
		{
			document.frmWWDMain.elements['continue_target'].value = "";
		}
	}

	function openInstantSamplePopup()
	{	
		var win=window.open('https://www.securepaynet.net/gdshop/reseller/instant_sample.asp?se=%2B&prog%5Fid=canwesthost&app%5Fhdr=99&ci=3033', 'sample', 'left=10,top=10,resizable=yes,scrollbars=yes,width=640,height=400');
	}

	function openMoneybackPopup()
	{	
		var win=window.open('https://www.securepaynet.net/gdshop/jump_pages/reseller_moneyback.asp?se=%2B&prog%5Fid=canwesthost&app%5Fhdr=99&ci=3034', 'moneyback', 'left=10,top=10,resizable=yes,scrollbars=yes,width=480,height=320');
	}
	function openAdWordsPopup()
	{	
		var win=window.open('https://www.securepaynet.net/gdshop/jump_pages/reseller_words.asp?se=%2B&prog%5Fid=canwesthost&app%5Fhdr=99&ci=3397', 'words', 'left=10,top=10,resizable=yes,scrollbars=yes,width=600,height=650');
	}
	function openAdCenterPopup()
	{	
		var win=window.open('https://www.securepaynet.net/gdshop/jump_pages/adCenter.asp?se=%2B&prog%5Fid=canwesthost&app%5Fhdr=99&ci=8855', 'adcenter', 'left=10,top=10,resizable=yes,scrollbars=yes,width=626,height=500');
	}

				function changeCurrency(sel)
				{
					var val = sel.options[sel.selectedIndex].value;
					var pgurl = 'https://www.securepaynet.net/gdshop/rhp/hottestreseller.asp?se=%2B&prog%5Fid=canwesthost&ci=7648&currencyType=cctt&app%5Fhdr='
					if (val != '') pgurl = pgurl.replace('cctt', val);
					window.open(pgurl, '_top');
				}

	function openNewWin($url)
	{	
		var win=window.open($url, 'popup', 'left=10,top=10,resizable=yes,scrollbars=yes,width=600,height=500');
	}