function focusName(element) {  if (element.value == " name...") {    element.value = "";  }}function blurName(element) {  if (element.value == "") {    element.value = " name...";  }}function focusEmail(element) {  if (element.value == " email...") {    element.value = "";  }}function blurEmail(element) {  if (element.value == "") {    element.value = " email...";  }}function checkName(str){        var vname = str		if (vname == " name...")             return false;        if (vname == "")             return false;        return true;}function checkEmail(str){        var apos = str.indexOf("@");        var dpos = str.indexOf(".");        var epos = str.indexOf("]");        var fpos = str.indexOf("[");             if (apos<=0 || dpos<=0 || epos>0 || fpos>0 )             return false;        if (dpos+1>=str.length)             return false;        return true;}function ValidateForm(){        if (!checkName(document.theForm.name.value)){                alert("Please enter your first name.");                return false;        }		if (!checkEmail(document.theForm.email.value)){                alert("Please enter a valid email address.");                return false;        }	return true;}//netscape css fixfunction WM_netscapeCssFix() {   if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth || document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) {    document.location = document.location;  }}function WM_netscapeCssFixCheckIn() {  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {    if (typeof document.WM == 'undefined'){      document.WM = new Object;    }    if (typeof document.WM.WM_scaleFont == 'undefined') {      document.WM.WM_netscapeCssFix = new Object;      document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;      document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;    }    window.onresize = WM_netscapeCssFix;  }}WM_netscapeCssFixCheckIn()//prevents window from capture in framesif (top.location != self.location) {        top.location = self.location}//popup windows for referencesfunction popupWindow(referenceHTML, w, h) {	var winl = (screen.width - w) / 2;	var wint = (screen.height - h) / 2;	windowProperties = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable'	reference = window.open(referenceHTML, 'refName', windowProperties)	if (parseInt(navigator.appVersion) >= 4) { reference.window.focus(); }	}function PrintThisPage() { 	var w = 700;	var h = 450;	var winl = (screen.width - w) / 2;	var wint = (screen.height - h) / 2;	var sOption = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable'   	var sWinHTML = document.getElementById('contentarea').innerHTML;    	var winprint=window.open("","",sOption);       winprint.document.open();        winprint.document.write('<html><head><title>Hart Aviation</title>');        winprint.document.write('<link rel=stylesheet href=http://www.yourdomain.com.au/cms/inc/cmsprint.css type=text/css></head>');        winprint.document.write('<body><a name="top"></a>');        winprint.document.write('<table width=100% cellpadding=0 cellspacing=0><tr><td align=left>Hart Aviation - 61 (0) 3 9347 5444</td><td align=right><span class=txtNBlack10>[<a href=javascript:window.close() class=lnkNBlack10HL>close window</a>]</span></td></tr></table>');        winprint.document.write(sWinHTML);                 winprint.document.write('</body></html>');        winprint.document.close();        winprint.focus(); }