function varitext(text){
		text=document
		print(text)
	}

//--------------- Start User Validate -------------------
function Validate() {
	var strUserName
	var strPassword
	
	var strUserName = frmLogin.txtUserName
	var strPassword = frmLogin.txtPassword
	
	if (strUserName.length < 2) {
		alert("Please enter your Username.");
		return false;
		strUserName.focus();
	}
	
	if (strPassword.length < 2) {
		alert("Please enter your Password.");
		return false;
		strPassword.focus();
	}
}
//--------------- End User Validate -------------------


//--------------- Start Browser detect -----------------
browsername = navigator.appName
browserversion = navigator.appVersion

agt=navigator.userAgent.toLowerCase();
ie=(document.all) ? 1:0
ie4=(agt.indexOf('msie 4')!=-1) ? 1:0
ie5=(agt.indexOf('msie 5')!=-1) ? 1:0
ie6=(agt.indexOf('msie 6')!=-1) ? 1:0
ns4=(document.layers && parseInt(navigator.appVersion)>=4) ? 1:0
win=( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) )
mac=(agt.indexOf("mac")!=-1);
imgs=(document.images) ? 1:0

if (browsername.indexOf("Netscape")!=-1)
	{
	alert("This website was designed to work with Internet Explorer 6.0 and use advanced xml technologies not supported by Netscape. It was detected that you are using a different version of browser. To view this website correctly, it is highly suggested that you use Internet Explorer 6.0. If you do not have Internet Explorer, you can download it from the Microsoft website.")
	}
//--------------- End Browser detect -----------------


// -------------- Begin quick links ------------------
function formHandler(form){
	var URL = selSite.options[selSite.selectedIndex].value;
	window.location.href = URL;
}
// -------------- End quick links -------------------

// -------------- Start Favourites ------------------
var bookmarkurl="http://www.Spatial.co.za"
var bookmarktitle="Spatial Technologies"
// -------------- End Favourites --------------------

// -------------- Start bookmark --------------------
function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
// ---------------- End bookmark --------------------


//---------------- Start location map ----------------
function GetSP() {
alert("This link will take you to our Leisuremap website.");
//document.body.style.cursor="wait"
Spatial = "Spatial"
window.open('http://196.38.50.2:8080/mi2gocommand/servlet/builder?action=session&command=http://196.38.50.2/Leisuremap/LeisuremapNew/initLocationSpatial800.xml&Spatial=spatial');
return true;
}
//---------------- End location map ----------------

//----------- Start right click ----------------------------
am = "© Spatial Technologies.  All rights reserved. ";

bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;
//----------- End right click ----------------------------


//---------- Start TD show -------------------------------
function changeTDOver(t){
t.style.background='#EEEEEE';
}

function changeTDOut(t) {
t.style.background='#FFFFFF';

}
//-------- End TD show ----------------------------------

