<!--
// From G4E
function setVariable(varName, varValue)
{
  document.LookupForm.elements[varName].value = varValue;
  return true;
}
//-->

<!--
// From Wild West Domains

//************* Hosting Page ***********************
  var faqWin;
  
  function gotoFAQLabel(lbl)
  {
    if(faqWin == null || faqWin.closed)
    {   
			faqWin = window.open('', 'faq_win', 'menubar=no,status=no,scrollbars=yes,resizable=yes,width=450,height=500,toolbar=no,location=no,directories=no');
		}
    faqWin.document.location.href = 'https://www.securepaynet.net/gdshop/auth.asp?isc=&se=%2B&from%5Fapp=&prog%5Fid=g4edomains&pl%5Fid=112190&target=faq%2Easp&mscssid=3433586#' + lbl;
    faqWin.focus();
    return false;
  } 
  function gotoRNFAQ()
  {
    if(faqWin == null || faqWin.closed)
    {   
			faqWin = window.open('http://rnw.secureserver.net/cgi-bin/wwd.cfg/php/enduser/std_alp.php', 'faq_win', 'menubar=no,status=no,scrollbars=yes,resizable=yes,width=800,height=400,toolbar=yes,location=no,directories=no');
		}
    faqWin.focus(); 
    return false;
  }
  
   function closeWindow(x)  // close this window and redirect main window
  {
  opener.location.href = x;
  window.close();
  }
 //**************************************************
 
 

function PopOpenAgreement(page)
{
  var MyWindow = window.open(page,'MyWindow','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=700,height=480,left=20,top=20'); 
  return false;
}


function openMoralPopup()
{

	var options;
	var newWindowHeight = 300;
	var newWindowWidth = 450;
	
	if (window.moralWindow && window.moralWindow.closed == false)
	{
		window.moralWindow.focus();
	}
	else
	{
		options = "status=no,scrollbars=yes,resizable=yes,location=no,menubar=no,toolbar=no,";
		options += "height=" + newWindowHeight + ",";
		options += "width=" + newWindowWidth + ",";
		options += "screenY=" + WindowTopForCenter(newWindowHeight) + ",";
		options += "top=" + WindowTopForCenter(newWindowHeight) + ",";
		options += "screenX=" + WindowLeftForCenter(newWindowWidth) + ",";
		options += "left=" + WindowLeftForCenter(newWindowWidth) + ",";

		moralWindow = window.open('', 'morallyObjectionable', options);
		moralWindow.document.open();
		moralWindow.document.clear();
		moralWindow.document.write('<html><head>');
		moralWindow.document.write('<title>Morally Objectionable Activities</title>');
		moralWindow.document.write('<style>');
		moralWindow.document.write('.border{background-color : #000000;}');
		moralWindow.document.write('.header{background-color : #cecece;}');
		moralWindow.document.write('.bodyText{font-size : 12px;	font-family : arial,helvetica;}');
		moralWindow.document.write('.cellPadding{padding : 8px;}');
		moralWindow.document.write('.superHeadingText{font-size : 16px;font-family : arial,helvetica,sanserif;font-weight : bold;}');
		moralWindow.document.write('</style>');
		moralWindow.document.write('</head><body><div align="center">');
		moralWindow.document.write('<table width="400px" border="0" cellspacing="0" cellpadding="1">');
		moralWindow.document.write('<tr>');
		moralWindow.document.write('	<td class="border" width="100%">');
		moralWindow.document.write('		<table width="100%" border="0" cellspacing="0" cellpadding="1">');
		moralWindow.document.write('			<tr>');
		moralWindow.document.write('				<td class="header" width="100%">');
		moralWindow.document.write('					<div class="cellPadding">');
		moralWindow.document.write('						<span class="superHeadingText">Morally Objectionable Activities</span>');
		moralWindow.document.write('					</div>');
		moralWindow.document.write('				</td>');
		moralWindow.document.write('			</tr>');
		moralWindow.document.write('			<tr>');
		moralWindow.document.write('				<td class="bodyText" bgcolor="#ffffff">');
		moralWindow.document.write('					<div class="cellPadding">');
		moralWindow.document.write('						Including but not limited to those which are:<br><br>');
		moralWindow.document.write('						&#149; Child pornographic<br>&#149; Harmful to minors<br>&#149; Defamatory<br>&#149; Abusive<br>&#149; Threatening<br>&#149; Harassing<br>&#149; Tortious<br>&#149; Obscene<br>&#149; Racially, ethnically, or otherwise objectionable; or<br>&#149; Involve hate crimes or terrorism');
		moralWindow.document.write('					</div>');
		moralWindow.document.write('		</table>');
		moralWindow.document.write('	</td>');
		moralWindow.document.write('</tr>');
		
		moralWindow.document.write('<tr><td colspan="3" align="center" class="bodyText"><a href="javascript:window.self.close();">close window</a></td></tr>');
		
		moralWindow.document.write('</table>');
		moralWindow.document.write('</div></body></html>');
		moralWindow.document.close();
		window.moralWindow.focus();
	}

}

function WindowTopForCenter(windowHeight)
{
	return (screen.availHeight - windowHeight) /2;
}

function WindowLeftForCenter(windowWidth)
{
	return (screen.availWidth - windowWidth) /2;
}


var moralWindow;

//************************** FORWARDING DOMAINS



		function buyNow() {
		  
		  var bUseMaskingOnly;
		  bUseMaskingOnly = useMaskingOnly();
		  
		  var bUseMasking;
		  bUseMasking = useMasking();


			if(document.ShoppingCartForm.chkForward.checked || bUseMasking || bUseMaskingOnly) 
			{	
				if(document.ShoppingCartForm.chkForward.checked)
				{	
					if(document.ShoppingCartForm.txtForward.value == '' || isNaN(document.ShoppingCartForm.txtForward.value))
					{
						alert("Quantity to Order of Domain Forwarding must be a number!");
						document.ShoppingCartForm.txtForward.select();
						document.ShoppingCartForm.txtForward.focus();
						return false;
					}
					else if(parseInt(parseFloat(document.ShoppingCartForm.txtForward.value)) <= 0)
					{
						alert("Quantity to Order of Domain Forwarding must be greater than zero!");
						document.ShoppingCartForm.txtForward.select();
						document.ShoppingCartForm.txtForward.focus();
						return false;
					}
					else
					{
						document.ShoppingCartForm.qty_1.value = document.ShoppingCartForm.txtForward.value;
					}
				}
					
				if (bUseMasking == true) 
				{ 
				  if(document.ShoppingCartForm.chkMask.checked)
				  {
				  	if(document.ShoppingCartForm.txtMask.value == '' || isNaN(document.ShoppingCartForm.txtMask.value))
				  	{
				  		alert("Quantity to Order of Forwarding with Masking must be a number!");
				  		document.ShoppingCartForm.txtMask.select();
				  		document.ShoppingCartForm.txtMask.focus();
				  		return false;
				  	}
				  	else if(parseInt(parseFloat(document.ShoppingCartForm.txtMask.value)) <= 0)
				  	{
				  		alert("Quantity to Order of Forwarding with Masking must be greater than zero!");
				  		document.ShoppingCartForm.txtMask.select();
				  		document.ShoppingCartForm.txtMask.focus();
				  		return false;
				  	}
				  	else 
				  	{
				  		document.ShoppingCartForm.qty_2.value = document.ShoppingCartForm.txtMask.value;
				  		document.ShoppingCartForm.qty_3.value = document.ShoppingCartForm.txtMask.value;
				  	}
				  }
        }
        				
				if (bUseMaskingOnly == true) 
				{ 
				  if(document.ShoppingCartForm.txtMaskOnly.value == '' || isNaN(document.ShoppingCartForm.txtMaskOnly.value))
				  {
				  	alert("Quantity to Order of Masking Only must be a number!");
				  	document.ShoppingCartForm.txtMaskOnly.select();
				  	document.ShoppingCartForm.txtMaskOnly.focus();
				  	return false;
				  }
				  else if(parseInt(parseFloat(document.ShoppingCartForm.txtMaskOnly.value)) <= 0)
				  {
				  	alert("Quantity to Order of Masking Only must be greater than zero!");
				  	document.ShoppingCartForm.txtMaskOnly.select();
				  	document.ShoppingCartForm.txtMaskOnly.focus();
				  	return false;
				  }
//				  else if (parseInt(document.ShoppingCartForm.txtMaskOnly.value) > parseInt(document.ShoppingCartForm.htxtMaskOnlyMax.value))
//				  {
//				  	alert("You cannot purchase more than " + document.ShoppingCartForm.htxtMaskOnlyMax.value + " masking only items as you only have " + document.ShoppingCartForm.htxtMaskOnlyMax.value + " forwarding items without masking!");
//				  	document.ShoppingCartForm.txtMaskOnly.value = document.ShoppingCartForm.htxtMaskOnlyMax.value;
//				  	document.ShoppingCartForm.txtMaskOnly.select();
//				  	document.ShoppingCartForm.txtMaskOnly.focus();
//				  	return false;
//				  }
				  else 
				  {
				  	document.ShoppingCartForm.qty_4.value = document.ShoppingCartForm.txtMaskOnly.value;
				  }
        }	
        			
				document.ShoppingCartForm.submit();
			}
			else
			{
				alert("You have not selected any items to purchase!");
				document.ShoppingCartForm.chkForward.focus();
				return false;
			}
			
		}
		function chkForward_check()
	  {
	    if (document.ShoppingCartForm.chkForward.checked)
	    {
	      if (document.ShoppingCartForm.txtForward.value == '' || isNaN(document.ShoppingCartForm.txtForward.value) || document.ShoppingCartForm.txtForward.value == 0)
	      {
	        document.ShoppingCartForm.txtForward.value = '1';
	      }
	    }
	  }  
		function chkMask_check()
	  {
	    if (document.ShoppingCartForm.chkMask.checked)
	    {
	      if (document.ShoppingCartForm.txtMask.value == '' || isNaN(document.ShoppingCartForm.txtMask.value) || document.ShoppingCartForm.txtMask.value == 0)
	      {
	        document.ShoppingCartForm.txtMask.value = '1';
	      }
	    }
	   }  
		function chkMaskOnly_check()
	  {
	    if (document.ShoppingCartForm.chkMaskOnly.checked)
	    {
	      if (document.ShoppingCartForm.txtMaskOnly.value == '' || isNaN(document.ShoppingCartForm.txtMaskOnly.value) || document.ShoppingCartForm.txtMaskOnly.value == 0)
	      {
	        document.ShoppingCartForm.txtMaskOnly.value = '1';
	      }
	    }
	   }  




//-->
