<!--
function checkBrowser(){
	//alert("hello");
	//detectitng browser
	DOM = (document.getElementById) ? true : false;
	//NS4 = (document.layers) ? true : false;
	//IE = (document.all) ? true : false;
	//IE4 = IE && !DOM;
	//NS = (navigator.appName=="Netscape") ? true : false;
	//NS6 = NS && DOM;
	//MAC = (navigator.appVersion.indexOf("Mac") != -1);
	// redirect users with older browsers
	if(!DOM){
		location.href="upgrade.html"
	}
}

function rollOver(imageName,newImageName){
	document[imageName].src = "/images/"+newImageName;
}

function rollOver2(imageName,newImageName){
	document[imageName].src = "/images/"+newImageName;
}

function oWin(w,h,nam) {
	    specs="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistor=no,width=" + w + ",height=" + h;
        var imgWin = window.open(nam,"imgWindow",specs)
}
//this function creates a mailto: link to help prevent address mining
function MailTo(ename,edomain,esubject,clickable,classname,imgdetail) {
	thislink = "mailto:" + ename + "@" + edomain;
	esubject.length != 0 ? thislink += "?subject=" + esubject : thislink = thislink;
	thistext = ename + "@" + edomain;
	if (clickable == 1) {
		if (imgdetail == ''){
			if (classname ==''){
				return thistext.link(thislink);
			} else {
				thisclasslink =  "<a href='" + thislink + "' class='" + classname + "'>" + thistext + "</a>"
				return thisclasslink;
			}
		} else {
			thisimglink = "<a href='" + thislink + "'><img " + imgdetail + "></a>";
			return thisimglink;
		}
	} else {
		return thistext;
	}
}
function isEmail(string) {
	    if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
	        return true;
	    else
	        return false;
	}

function CheckAndSend()
{
if (isEmail(document.ContactQuestionFrm.email.value)==true)
    {document.ContactQuestionFrm.submit()}
else
   {
   alert("The Email address you supllied does not look valid, please check and try again.")
   document.ContactQuestionFrm.email.value='';
   }
}
// -->