
	function openPPCPopup()
	{	
		var win=window.open('https://www.godaddy.com/gdshop/jump_pages/reseller_ppc.asp?app%5Fhdr=99&ci=6630', 'words', 'left=10,top=10,resizable=yes,scrollbars=yes,width=500,height=500');
	}				

	function openRequest()
	{
		var win=window.open('https://www.godaddy.com/gdshop/jump_pages/info_send.asp?app%5Fhdr=99&key=536&ci=6631', 'request', 'left=10,top=10,resizable=yes,scrollbars=yes,width=480,height=240');
	}

	function openResellerShop(v_sURL)
	{	
		var win=window.open(v_sURL, 'sample', 'left=300,top=150,resizable=no,scrollbars=no,width=640,height=450');
	}

	function openMoneybackPopup()
	{	
		var win=window.open('https://www.godaddy.com/gdshop/jump_pages/reseller_moneyback.asp?app%5Fhdr=99&ci=6633', 'moneyback', 'left=10,top=10,resizable=yes,scrollbars=yes,width=480,height=320');
	}

	function openAdWordsPopup()
	{	
		var win=window.open('https://www.godaddy.com/gdshop/jump_pages/reseller_words.asp?app%5Fhdr=99&ci=6634', 'words', 'left=10,top=10,resizable=yes,scrollbars=yes,width=600,height=650');
	}

	function openAward100bestPopup()
	{	
		var win=window.open('https://www.godaddy.com/gdshop/jump_pages/wwd_award_100best.asp?app%5Fhdr=99&ci=6635', 'awards', 'left=10,top=10,resizable=yes,scrollbars=yes,width=480,height=320');
	}

	function openAwardEcPopup()
	{	
		var win=window.open('https://www.godaddy.com/gdshop/jump_pages/wwd_award_ec.asp?app%5Fhdr=99&ci=6636', 'awards', 'left=10,top=10,resizable=yes,scrollbars=yes,width=480,height=320');
	}

	function openAwardNiPopup()
	{	
		var win=window.open('https://www.godaddy.com/gdshop/jump_pages/wwd_award_ni.asp?app%5Fhdr=99&ci=6637', 'awards', 'left=10,top=10,resizable=yes,scrollbars=yes,width=480,height=320');
	}

	function openAwardSpPopup()
	{	
		var win=window.open('https://www.godaddy.com/gdshop/jump_pages/wwd_award_sp.asp?app%5Fhdr=99&ci=6638', 'awards', 'left=10,top=10,resizable=yes,scrollbars=yes,width=480,height=320');
	}







function fncReset(v_oControl)
{
	if(v_oControl.value == '' )
		v_oControl.style.backgroundColor = "gray";	
	else
		v_oControl.style.backgroundColor = "white";
}

function fncUndoChange(v_oControl,v_iSelectedValue)
{

	v_oControl.selectedValue = v_iSelectedValue
	
}



function fncValidateDomain(v_sAction, l_iID)
{
	var l_sDomainType
	l_sDomainType = '';
	
	if(frmPBS.chkCom.checked)
		l_sDomainType = l_sDomainType + 'com,';
	if(frmPBS.chkCoZa.checked)
		l_sDomainType = l_sDomainType + 'co.za,';
	if(frmPBS.chkNet.checked)
		l_sDomainType = l_sDomainType + 'net,';		
	if(frmPBS.chkOrg.checked)
		l_sDomainType = l_sDomainType + 'org,';
	if(frmPBS.chkZarCc.checked)
		l_sDomainType = l_sDomainType + 'zar.cc,';
	if(frmPBS.chkBiz.checked)
		l_sDomainType = l_sDomainType + 'biz,';
	if(frmPBS.chkInfo.checked)
		l_sDomainType = l_sDomainType + 'info,';
	if(frmPBS.chkOrgZa.checked)
		l_sDomainType = l_sDomainType + 'org.za,';
	if(frmPBS.chkCoUk.checked)
		l_sDomainType = l_sDomainType + 'co.uk,';
	if(frmPBS.chkMobi.checked)
		l_sDomainType = l_sDomainType + 'mobi';
	if(frmPBS.chkTw.checked)
		l_sDomainType = l_sDomainType + 'tw,';
	if(frmPBS.chkTv.checked)
		l_sDomainType = l_sDomainType + 'tv,';
	if(frmPBS.chkCc.checked)
		l_sDomainType = l_sDomainType + 'cc,';
	if(frmPBS.chkDe.checked)
		l_sDomainType = l_sDomainType + 'de,';
	if(frmPBS.chkJp.checked)
		l_sDomainType = l_sDomainType + 'jp,';
	if(frmPBS.chkBe.checked)
		l_sDomainType = l_sDomainType + 'be,';
	if(frmPBS.chkUs.checked)
		l_sDomainType = l_sDomainType + 'us,';
	if(frmPBS.chkMeUk.checked)
		l_sDomainType = l_sDomainType + 'me.uk,';
	if(frmPBS.chkCoNz.checked)
		l_sDomainType = l_sDomainType + 'co.nz,';
	if(frmPBS.chkNetNz.checked)
		l_sDomainType = l_sDomainType + 'net.nz,';
	
	frmPBS.hidDomainType.value = l_sDomainType;
		
	if(frmPBS.hidDomainType.value == '') 
		{
			alert('Please select atleast one Domain Type.');		
			return false;
		}
	if(frmPBS.txtDomain.value == '') 
		{
			alert('Please select atleast one Domain Name.');		
			return false;
		}
//	if(document.frmPBS.hdnSpecialID.value != null)
//	{
		document.frmPBS.hdnServiceID.value = l_iID;	
//	}	

		document.frmPBS.action = v_sAction;	
		document.frmPBS.submit();

}


function fncSubscribe(v_sAction)
{
	if(document.frmPBS.txtSubscribe.value != '')
	{
		document.frmPBS.action = v_sAction;
		document.frmPBS.submit();
	}
	else
	{
		alert('Please enter your email address for subscription.');
	}
		
}

function fncChangeCurrency(v_sPath, v_sCurrency)
{
	document.frmPBS.hdnCurrency.value = v_sCurrency;
	document.frmPBS.action = v_sPath;
	document.frmPBS.submit();
	
}
function fncControlPanelLogin()
{
	if(document.frmPBS.txtUsername.value == '')
	{
		alert('Please enter your Helm Control Panel Username.');
		document.frmPBS.txtUsername.focus();
	}
	if(document.frmPBS.txtPassword.value == '')
	{
		alert('Please enter your Helm Control Panel Password.');
		document.frmPBS.txtPassword.focus();	
	}	
	if((document.frmPBS.txtPassword.value != '')&&(document.frmPBS.txtUsername.value != ''))
	{
		document.frmPBS.method = 'post';
		document.frmPBS.target = '_blank';
		document.frmPBS.action = 'http://cp.paradigmsolutions.co.za/default.asp';
		document.frmPBS.submit();	
	}
}
