	
	function VerifyForm() {
		if (document.frmContact.txtFName.value == "")
		  { alert("Please enter your first name.")
			document.frmContact.txtFName.focus(); }
		else if (document.frmContact.txtLName.value == "")
		  { alert("Please enter your last name.")
			document.frmContact.txtLName.focus(); }
		else if (document.frmContact.txtCompany.value == "")
		  { alert("Please enter your company name.")
			document.frmContact.txtCompany.focus(); }
		else if (document.frmContact.txtEmailAddress.value.indexOf("@") < 0)
		  { alert("Please enter a valid email address.")
			document.frmContact.txtEmailAddress.focus(); }
		else if (document.frmContact.txtTelNo.value == "")
		  { alert("Please enter your telephone number.")
			document.frmContact.txtTelNo.focus(); }
		else if (document.frmContact.lstHowDid.value == "")
		  { alert("Please enter how you heard about us.")
			document.frmContact.lstHowDid.focus(); }
		else
		  { document.frmContact.submit() ; }
		}
	
	
	
	
	function GetSelects(l,cid,ssid) {
		var l,cid,ssid;
		var c = document.frmPrices.lstCountries.value;
		var s = document.frmPrices.lstStates.value;
		document.location.href = "locations.asp?lnk=" + l + "&ssid=" + ssid + "&country=" + c + "&state=" + s + "&stage=1";
	}
	
	
	
	
	function LaunchWindow(x,y,page) { 
		var x,y,page;
		var OpenWin = this.open(page, "CentreWindow", "top=50,left=50,height=" + y + "px,width=" + x + "px,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes"); 
		OpenWin.focus();
		}
	
	
	
	
	function SubmitStage(cid) {
		var cid;
		document.getElementById('rdCID').value = cid;
		document.frmPrices.submit();
	}
	
	function SubmitStage2aWithOption(cid,frmType) {
	    var cid;
		var frmType;
		document.getElementById('rdCID').value = cid;
		document.getElementById('frmType').value = frmType;
		document.frmPrices.submit();
	}
	
	
	
	
	
	
	function SubmitStage2(cid) {
		var cid;
		window.opener.document.getElementById('rdCID').value = cid;
		window.opener.frmPrices.submit();
		window.close();
		}
	
	
	
	
	function switchPhoto(num,cn) { 
		var num,cn,last;
		var last = document.getElementById('lastImg').value;
	
		if (last != num)
			document.getElementById('SubPic' + num).src = 'images/btn' + num + '_off.gif';
			document.getElementById('SubPic' + last).src = 'images/btn' + last + '_on.gif';
			document.getElementById('MainPic').src = 'http://virtualoffices.regus.com/assets/global/images/centers/' + cn + '_0' + num + '.jpg';
			document.getElementById('lastImg').value = num;
		}
	
	
	
	
	function doShowForm(DivID){
		document.getElementById(DivID).style.display = "block";
		document.getElementById('feedback').style.display = "block";
		document.getElementById(DivID + '_terms').style.display = "block";
		document.getElementById(DivID + '_btn').src = 'images\\btn_' + DivID + '_on.gif';
	
		document.getElementById('frmType').value = DivID;
	
		if (DivID == 'enquiry')
			{ doHideForm('booking'); }
		else
			{ doHideForm('enquiry'); }
		}
	
	
	
	
	function doHideForm(DivID){
		if (document.getElementById(DivID).style.display != 'none' ) 
			{ 
				document.getElementById(DivID).style.display = "none";			
				document.getElementById(DivID + '_terms').style.display = "none";
				document.getElementById(DivID + '_btn').src = 'images\\btn_' + DivID + '.gif';
			}
		}
	
	
	
	
	function doShowDiv(DivID){
		var lastDiv = document.getElementById('lastDiv').value;
		document.getElementById(DivID).style.display = "block";
		document.getElementById(DivID + '_btn').src = 'images\\tab_' + DivID + '_on.gif';
	
		doHideDiv(lastDiv);
		document.getElementById('lastDiv').value = DivID;
		}
	
	
	
	
	function doHideDiv(DivID){
		if (document.getElementById(DivID).style.display != 'none' ) 
			{ 
				document.getElementById(DivID).style.display = "none";
				document.getElementById(DivID + '_btn').src = 'images\\tab_' + DivID + '_off.gif';
			}
		}
	
	
	
	
	function MenuHover(txt) {
		var txt ;
		menutext_td.innerHTML = txt ;
		}
	 