var W3cDom = (document.getElementById) ? true : false;
var IE4 = (document.all) ? true : false;
var NS4 = (document.layers) ? true : false;

//document.images updateable image support
//standard W3C DOM support
//document.all Microsoft DOM support
//document.layers Netscape 4 DOM support
//navigator.plugins["plugin-name"] plugin-name plugin is installed (works on Netscape only)
//parent.document.URL browser understands the URL object
//navigator.javaEnabled() checks if java support is enabled


function GetElement(strID){
	if (W3cDom) {return document.getElementById(strID)} 
	if (IE4) {return document.all(strID)}
	if (NS4) {return document.getElementById(strID)}//bob need to work on this
}

function SupportsValidators(){
	return ((navigator.appName.indexOf("Microsoft")>-1) || (navigator.appName.indexOf("MSIE")>-1))
	//return (document.all)
}

function getBrowserName(){
	if(navigator.appName.indexOf("Netscape")>-1){
		return "Netscape";
	}
	else if((navigator.appName.indexOf("Microsoft")>-1) || (navigator.appName.indexOf("MSIE")>-1)){
		return "Microsoft Internet Explorer";
	}
	else if(navigator.appName.indexOf("Opera")>-1){
		return "Opera";
	}
	else{
		return navigator.appName;
	}
	//version=parseInt(navigator.appVersion);
}