function toContinue() {
	if($('terms_of_use').checked != true) {
		if ($('pagemsg')) {
			_UTIL_setPageMsg('You have to agree with our Terms of Use before you can continue!<br><br><input type="button" style="background:#FFFFFF none repeat scroll 0%; border:1px solid #bf1c24; color:#bf1c24; font-family:Verdana,Arial; font-size:10px; font-style:normal; font-variant:normal; font-weight:normal; height:20px; text-decoration:none; width:60px;" value="Ok!" name="ok" id="ok	" onclick="_UTIL_setPageMsg(null, true);">',true);
		}
		return false;
	} else {
		if($('reg_email')) {
			self,location="http://vmware-hosting.com/order.htm?"+window.location.search.substring(1) +"&reg_email="+$('reg_email').value;
		} else {
			self,location="http://vmware-hosting.com/order.htm?"+window.location.search.substring(1);
		}
	}
}

function hidePageMsg() {
	_UTIL_setPageMsg(null, true);
}

function changeStatus(presentStatus) {
	if(presentStatus == "OFF") {
		_UTIL_setPageMsg('You have the folowing option available:<br><br><input type="button" style="background:#FFFFFF none repeat scroll 0%; border:1px solid #bf1c24; color:#bf1c24; font-family:Verdana,Arial; font-size:10px; font-style:normal; font-variant:normal; font-weight:normal; height:20px; text-decoration:none; width:60px;" value="Turn ON" name="turnon" id="turnon" onclick="hidePageMsg();">',true);
	} else {
		_UTIL_setPageMsg('You have the folowing options available:<br><br><input type="button" style="background:#FFFFFF none repeat scroll 0%; border:1px solid #bf1c24; color:#bf1c24; font-family:Verdana,Arial; font-size:10px; font-style:normal; font-variant:normal; font-weight:normal; height:20px; text-decoration:none; width:60px;" value="Turn OFF" name="turnoff" id="turnoff" onclick="_UTIL_setPageMsg(null, true);">&nbsp;<input type="button" style="background:#FFFFFF none repeat scroll 0%; border:1px solid #bf1c24; color:#bf1c24; font-family:Verdana,Arial; font-size:10px; font-style:normal; font-variant:normal; font-weight:normal; height:20px; text-decoration:none; width:60px;" value="Reboot" name="reboot" id="reboot" onclick="hidePageMsg();">',true);
	}
}

function _UTIL_getAvailHeight(){
	var availHeight = 0;
	if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode'
		availHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible
		availHeight = document.body.clientHeight;
	}
	return availHeight;
}
function _UTIL_getScrollTop(){
	var scrOfY = 0;
	if( typeof( window.pageYOffset ) == 'number' ) { //Netscape compliant
		scrOfY = window.pageYOffset;
	} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { //DOM compliant
		scrOfY = document.body.scrollTop;
	} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { //IE6 standards compliant mode
		scrOfY = document.documentElement.scrollTop;
	}
	return scrOfY;
}
function _UTIL_setPageMsg(str,noclose){
	var objid = "pagemsg";
	var pagemsgobj = document.getElementById(objid);
	if (!pagemsgobj){
		if(typeof document.getElementsByTagName != 'undefined' && (document.getElementsByTagName('body')[0] != null || document.body != null)) {
			var pagemsgobj = document.createElement("div");
			pagemsgobj.setAttribute("id",objid);
			pagemsgobj.className="hide"
			document.body.appendChild(pagemsgobj);
		}
	}
	if (pagemsgobj){
		pagemsgobj.style.top = (_UTIL_getScrollTop() + _UTIL_getAvailHeight()/3)+"px";

		if (noclose){
			pagemsgobj.innerHTML = str;
		}else{
			pagemsgobj.innerHTML = str + "<br /><br /><input type=\"button\" onclick=\"_UTIL_setPageMsg('')\" value=\"OK\" />";
		}

		pagemsgobj.className = (str!=null) ? "show" : "hide";
		pagemsgobj.style.visibility = (str!=null) ? "visible" : "hidden";
		pagemsgobj.style.display="block";
	}
}
