var myCount = 35;

function sf() {
	document.f.OSDomainName.focus();
}

function goS(loc){self.location="http://"+loc+".hostm.com/"
}
function goX(loc){self.location="http://www."+loc
}
function goR(loc){self.location="http://resources.hostm.com/"
}
function go(loc){self.location="http://www.hostm.com/"+loc
}

function disableButton(theButton){
	theButton.value="Processing, please wait...";
	theButton.disabled=true;
	theButton.form.submit()
}

function disableButtonCountdown(theButton){
	theButton.disabled=true;
	theButton.value="Processing, please wait...";
	theButton.form.submit()
	myCount = 35;
	setTimeout("myButtonCountDownNew(theButton)",1000);
}

function myButtonCountDownNew(theButton){
    if (myCount<=0)
    {
    theButton.value="Re-submitting, please wait...";
	theButton.form.submit();
    }
    else
    {
	theButton.value="Processing, please wait..."+myCount;
	myCount--;
	setTimeout("myButtonCountDownNew(theButton)",1000);
	}
}

function disableButtonCountdownOlder(theButton){
	myCount = 35;
	theButton.disabled=true;
	theButton.form.submit();
	while (myCount >= 0)
	{
	theButton.value="Processing, please wait..."+myCount;
	myCount--;
	}
	theButton.form.submit();
}



function myButtonCountDown(theButton,mySeconds){
    if (mySeconds>30)
    {
    theButton.value="Re-submitting, please wait...";
	theButton.form.submit()
    }
    else
    {
	theButton.value="Processing, please wait..."+mySeconds;
	mySeconds=mySeconds+1;
	setTimeout("myButtonCountDown(theButton,mySeconds)",1000)
	}
}

function openWindow(url, w, h){var options="width="+w+",height="+h+",";options+="resizable=no,scrollbars=no,status=no,";options+="menubar=no,toolbar=no,location=no,directories=no,";options+="top=30,left=30";var newWin=window.open(url, 'comparison', options);newWin.focus()}
function newImage(arg){rslt=new Image();rslt.src=arg;return rslt}
function bOver(image){document[image].src=eval(image+"_over.src")}
function bOn(image){document[image].src=eval(image+"_on.src")}
function bOut(image){document[image].src=eval(image+"_off.src")}
b0_off=newImage('/images/0_up.jpg');b0_over=newImage('/images/0_over.jpg');b0_on=newImage('/images/0_down.jpg');b1_off=newImage('/images/1_up.jpg');b1_over=newImage('/images/1_over.jpg');b1_on=newImage('/images/1_down.jpg');b2_off=newImage('/images/2_up.jpg');b2_over=newImage('/images/2_over.jpg');b2_on=newImage('/images/2_down.jpg');b3_off=newImage('/images/3_up.jpg');b3_over=newImage('/images/3_over.jpg');b3_on=newImage('/images/3_down.jpg');b4_off=newImage('/images/4_up.jpg');b4_over=newImage('/images/4_over.jpg');b4_on=newImage('/images/4_down.jpg');
