function mOvr(src,clrOver,tdID) {
	if (!src.contains(event.fromElement)) {
		src.style.cursor = 'hand';
		src.background = clrOver;
	}
	if (document.all){
		var thestyle= eval ('document.all.'+tdID+'.style');
		thestyle.backgroundImage='url('+clrOver+')';
	 }
}  

function mOut(src,clrIn,tdID) {
	if (!src.contains(event.toElement)) {
		src.style.cursor = 'default';
		src.background = clrIn;
	}
	if (document.all){
		var thestyle= eval ('document.all.'+tdID+'.style');
		thestyle.backgroundImage='url('+clrIn+')';
	 }
}

function mClk(src,href) {
	if(event.srcElement.tagName=='TD'){          
		this.location.href= href ;          
	}
}


//Function to open pop up window
function openWin(theURL,winName,features) {

  	window.open(theURL,winName,features);
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		btn_background = newImage("/images/buttonactive-bg.gif");
		btn_right = newImage("/images/button-active-right.gif");
		preloadFlag = true;
	}
}


function checkFields(){
		if (document.contactus.First_Name.value == ""){
			alert("Your First Name is required");
			return false;
	}	
		if (document.contactus.Last_Name.value == ""){
			alert("Your Last Name is required");
			return false;
	}	
		if (document.contactus.Email_Address.value == "" || (document.contactus.Email_Address.value.indexOf("@",0) == -1||document.contactus.Email_Address.value.indexOf(".",0) == -1)) { 
			alert("Please enter a valid E-mail address");
			return false;
	}
		if (document.contactus.comments.value == ""){
			alert("Your Comments are required");
			return false;
	}	
}