function ContactForm(){
		if (document.contactus.First_Name.value == ""){
			alert("Your firstname is required");
			return false;
	}	
	    if (document.contactus.Last_Name.value == ""){
			alert("Your lastname is required");
			return false;
	}	
		if (document.contactus.Email.value == "" || (document.contactus.Email.value.indexOf("@",0) == -1||document.contactus.Email.value.indexOf(".",0) == -1)) { 
			alert("Please enter a valid E-mail address");
			return false;
	}
	   if (document.contactus.PhoneNumber.value == "" ) { 
			alert("Please enter your phone number.");
			return false;
	}
}

// functions to make png graphics with transparent show up properly in IE 5.5 to 6.*
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

function fixPNG(){
	for(i=0; i<document.images.length; i++){
		type = document.images[i].src;
		type = type.substring(type.length-3, type.length);
		if(type == "png"){
			if ((version >= 5.5) && (version < 7) && (document.body.filters)){
				document.images[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + document.images[i].src + "', sizingMethod='scale')"
				document.images[i].src = "/images/dotblank.gif"
			}
		}
	}
	
}
function changePNG(img, replace){
	if ((version >= 5.5) && (version < 7) && (document.body.filters)){
		document[img].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + replace + "', sizingMethod='scale')";
	} else {
		document[img].src = replace;
	}
}

function fixFlash(){
theObjects = document.getElementsByTagName("object"); 
for (var i = 0; i < theObjects.length; i++) { 
theObjects[i].outerHTML = theObjects[i].outerHTML; 
}
}
