function SupportWindow() {
	window.open("http://support.stargate.com","Support","width=800,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function ControlPanel() {
	window.open("https://65.118.246.80/php/HTML_GUI/login/login_screen.php","Support","width=900,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function MoneybackWindow() {
	window.open("/us/popups/30day.htm","moneyback","width=450,height=510,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function getAppVersion() {
	appname= navigator.appName; 
	appversion = navigator.appVersion; 
	majorver = appversion.substring(0, 1); 
	
	if ( (appname == "Netscape") && ( majorver >= 3 ) ) return 1;
	if ( (appname == "Microsoft Internet Explorer") && (majorver >= 4) ) return 1;
	return 0;
}
	
function UptimeWindow() {
    window.open("/us/popups/uptime.htm","Uptime","width=345,height=650,resizable=yes,scrollbars=yes,toolbar=no,status=no")
}

function RegWindow() {
	window.open("/us/tutorials/register/reg-step1.asp","Registration","width=560,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function OCWindow() {
	window.open("/us/tutorials/OutlookCyborg/OCstep1.asp","Outlook","width=560,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function OLWindow() {
	window.open("/us/tutorials/OutlookLegolas/OLstep1.asp","Outlook","width=560,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function OECWindow() {
	window.open("/us/tutorials/OutlookECyborg/OECstep1.asp","OutlookExpress","width=560,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function OELWindow() {
	window.open("/us/tutorials/OutlookELegolas/OELstep1.asp","OutlookExpress","width=560,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function OEMWindow() {
	window.open("/us/tutorials/OutlookEMail3/OEMstep1.asp","OutlookExpress","width=560,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function OMWindow() {
	window.open("/us/tutorials/OutlookMail3/OMstep1.asp","OutlookExpress","width=560,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function OM4Window() {
	window.open("/us/tutorials/OutlookMail4/OMstep1.asp","OutlookExpress","width=560,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function OEM4Window() {
	window.open("/us/tutorials/OutlookEMail4/OEMstep1.asp","OutlookExpress","width=560,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function DXWindow() {
	window.open("/us/tutorials/Xpress/xpress-step1.asp","DomainXpress","width=560,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function Windowclose() {
	window.close();
	self.close();
	close();
}

function submitForm(form){
	document.frmRPM.submit(form);
}

function RegWhoisWindow(DomainName){
	URL="https://www.stargateinc.com/us/lookup.asp?DomainName=" + DomainName;
	window.open(URL,"Registration","width=560,height=600,resizable=no,scrollbars=yes,toolbar=no,status=no")
}

function AdminWindow() { 
	window.open ("/us/popups/Qadmin.htm","Administrator","width=300,height=200,resizable=yes,scrollbars=yes,toolbar=no,status=no")
}

function TechnicalWindow() { 
	window.open ("/us/popups/Qtech.htm","Technical","width=300,height=200,resizable=yes,scrollbars=yes,toolbar=no,status=no")
}

function BillingWindow() { 
	window.open ("/us/popups/Qbilling.htm","Billing","width=300,height=200,resizable=yes,scrollbars=yes,toolbar=no,status=no")
}

function DisputeWindow() {
	window.open("/us/popups/domaindispute.htm","DomainDispute","width=750,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function DisclaimerWindow() {
	window.open("/us/popups/disclaimer.htm","Disclaimer","width=750,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function RegitrationAgreementWindow() {
	window.open("/us/popups/registrationagreement.htm","RegistrationAgreement","width=750,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function HostingAgreementWindow() {
	window.open("/us/popups/hostingagreement.htm","HostingAgreement","width=750,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function TermsWindow() {
	window.open("/us/popups/policy.htm","TermsOfService","width=750,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function HostingCancellationWindow() {
	window.open("/us/popups/cancellationPolicy.htm","HostingCancellationPolicy","width=550,height=400,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}

function HostingTransferWindow() {
	window.open("/us/popups/hostingtransfer.htm","HostingTransfer","width=300,height=210,resizable=no,scrollbars=no,toolbar=no,status=no,screenX=400,screenY=400,left=400,top=400");
}

function GatekeyWindow() {
	window.open("/us/popups/gatekey.htm","HostingTransfer","width=300,height=180,resizable=no,scrollbars=no,toolbar=no,status=no,screenX=400,screenY=400,left=400,top=400");
}

function cvv2Window() {
	window.open("/us//cvv2.asp","cvv2","width=640,height=660,resizable=yes,scrollbars=yes,toolbar=no,status=no");
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

var formSubmitCount = 0;
function isItFirstFormSubmit() 
{	if (formSubmitCount == 0)
	{	formSubmitCount++;
		return true;
	}
	else 
		return false;
}

var tickerArray = new Array();
var tickerId = 0;
tickerArray[0] = '<font class=\"formLabel\"><a href=\"\\us\\hosting\\hostingTransfer.asp">Up to 4 Free Months of Hosting!!</a></font>';
tickerArray[1] = '<font class=\"formLabel\">Domain Transfers only $8.95</font>';
tickerArray[2] = '<font class=\"formLabel\">New Features Under My Account</font>';
tickerArray[3] = '<font class=\"formLabel\">Renew Your Domain Today!</font>';


function initializeTicker()
{	document.all.headline.innerHTML = tickerArray[tickerId++];
	setTimeout('cycleTransition(\'wipeLeft();\',\'wipeRight();\', 0);', 2000);
}

var transitionVal = 460;

function cycleTransition(called, reverse, lim)
{	if(transitionVal == lim)
		writeHeadline(called, reverse);
	else
		timerId = setTimeout(called, 20);
}

function writeHeadline(called, reverse)
{	if(tickerId >= tickerArray.length)
		tickerId = 0;
	if(called == 'wipeLeft();')
	{	document.all.headline.innerHTML = tickerArray[tickerId++];
		setTimeout(reverse, 100);
	}
	else
		setTimeout(reverse, 3600);
}

function wipeRight()
{	document.all.headline.style.clip = 'rect(0px, ' + transitionVal + 'px, 80px, 0px)';
	transitionVal += 4;
	cycleTransition('wipeRight();', 'wipeLeft();', 460);
}

function wipeLeft()
{	document.all.headline.style.clip = 'rect(0px, ' + transitionVal + 'px, 80px, 0px)';
	transitionVal -= 4;
	cycleTransition('wipeLeft();', 'wipeRight();', -4);
}
