<!-- 
// function to swap images by Name in nav.
if (document.images) { 
	img1on=new Image();
	img1on.src="images/nav_rental-on.gif";
	img2on=new Image();
	img2on.src="images/nav_review-on.gif";
	img3on=new Image();
	img3on.src="images/nav_vacations-on.gif";
	img4on=new Image();
	img4on.src="images/nav_consulting-on.gif";

	img1off=new Image();
	img1off.src="images/nav_rental-off.gif";
	img2off=new Image();
	img2off.src="images/nav_review-off.gif";
	img3off=new Image();
	img3off.src="images/nav_vacations-off.gif";
	img4off=new Image();
	img4off.src="images/nav_consulting-off.gif";
	}  


// fellow pilot forms - validation
function validatefpform() {
    if (document.fpform.sender.value.length < 1) {
		alert("Please enter your name.");
		document.fpform.sender.focus();
		return false;
		}
    if (document.fpform.fpname.value.length < 1) {
		alert("Please enter your fellow pilot's name.");
		document.fpform.fpname.focus();
		return false;
		}
	if (badEmail(document.fpform.fpemail.value)) {
		alert("Please enter a valid email address.");
		document.fpform.fpemail.focus();
		return false;
		}
	return true;
	}

// Search by N-Number - validation
function validatesformN() {
	 if (document.sformN.s_reg.value.length < 1) {
		alert("Please enter the N-number you want to search.");
		document.sformN.s_reg.focus();
		return false;
		}
	return true;
	}

// email validation function
function badEmail(email) {
	//if (email.length < 1) return false;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(email)) return false;
	else return true;
	}

function imgOn(imgName) { 
   if (document.images){ 
   document[imgName].src = eval(imgName + "on.src"); 
    } } 
function imgOff(imgName) { 
   if (document.images) { 
   document[imgName].src = eval(imgName + "off.src"); 
    } }


// function to open remote popup windows in different named windows.
function remote(url,name,parms) {
	var remote = window.open(url,name,parms); 
	remote.opener = self; 
	remote.focus();
	}


// function to link to URL in opener window and close popup.
// this is used in popup windows opened with remote function.
function linkthis(url){
	opener.location.href = url;
	window.close();
	}

// function to make option in form-select jump to hyperlink
function jumpMenu(targ,selObj,restore){
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function tS(){ x=new Date(tN().getUTCFullYear(),tN().getUTCMonth(),tN().getUTCDate(),tN().getUTCHours(),tN().getUTCMinutes(),tN().getUTCSeconds()); x.setTime(x.getTime()+0); return x; } 
function tN(){ return new Date(); } 
function lZ(x){ return (x>9)?x:'0'+x; } 
function y2(x){ x=(x<500)?x+1900:x; return String(x).substring(2,4) } 
function dT(){ if(fr==0){ fr=1; document.write('Zulu<br><span id="tP" class="zulu">'+eval(oT)+'</span></b>'); } document.getElementById('tP').innerHTML=eval(oT); setTimeout('dT()',1000); }
var dN=new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat'),fr=0,oT="dN[tS().getDay()]+' '+lZ((tS().getMonth()+1))+'-'+lZ(tS().getDate())+'-'+y2(tS().getYear())+'<br>'+' '+lZ(tS().getHours())+':'+lZ(tS().getMinutes())+':'+lZ(tS().getSeconds())+' '";


// -->
