window.defaultStatus="GlobalAircraft.org";function submit(){var a=null;if(document.Searcher){a=document.Searcher}else{if(document.getElementById&&document.getElementById("Searcher")){a=document.getElementById("Searcher")}}if(a){a.SBox.value=a.SBox.value.toLowerCase();a.submit()}}function checkChange(a){var b=null;if(document.Searcher){b=document.Searcher}else{if(document.getElementById&&document.getElementById("Searcher")){b=document.getElementById("Searcher")}}if(b){if(a=="theWeb"){a="/index.pl";b.domain.value="outside"}else{b.domain.value="gac"}b.action="http://search.globalaircraft.org"+a}}function Start(a){var b;if(screen.width>700&&screen.height>500){b=this.open(a,"CtrlWindow","toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=700,height=500")}else{b=this.open(a,"CtrlWindow","toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=600,height=440")}}function preparePRINT(a){var c="toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=720,height=500";var b=window.open("http://www.globalaircraft.org/print_this.pl?Page2Print="+a+"","Print_Window",c)}function LaLaLand(a){var b;if(screen.width>=700||screen.height>=500){b=this.open(a,"CtrlWindow","toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=700,height=500")}else{b=this.open(a,"CtrlWindow","toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=600,height=440")}}function mailme(a,b){document.location="mailto:"+b+"@"+a+""}function loadXMLDoc(b,d,a,f,j,i,e){if(!i){if(typeof d=="undefined"||typeof d=="string"&&(!document.getElementById||!document.getElementById(d))){alert("loadXMLDoc:: Invalid frame target! ("+d+")");return}}var g=typeof d=="string"?document.getElementById(d):d;if(b===""||typeof b=="undefined"){alert("loadXMLDoc:: Invalid URL supplied!");return}if(!window.XMLHttpRequest&&!window.ActiveXObject){alert("loadXMLDoc:: No AJAX functionality found!");return}if(!a){a="GET"}if(!f){if(window.XMLHttpRequest){f=null}else{if(window.ActiveXObject){f=""}}}var c;if(window.XMLHttpRequest){c=new window.XMLHttpRequest()}else{if(window.ActiveXObject){c=new window.ActiveXObject("Microsoft.XMLHTTP")}}if(!c){alert("loadXMLDoc:: Could not load AJAX functionality!");return}if(e){g.innerHTML=""}c.onreadystatechange=function(){if(c.readyState>=3){clearTimeout(h)}if(c.readyState==4){if(c.status!=200){g.innerHTML="Error: "+c.status;if(c.status>0){alert("Problem retrieving data: "+c.statusText)}return}if(c.responseText.match(/^SCRIPT::safeReload/)){window.location.reload()}else{if(c.responseText.match(/^SCRIPT::redirect=/)){window.location=c.responseText.replace(/^SCRIPT::redirect=/,"")}else{if(i&&j!==""&&typeof j!="undefined"){var k=c.responseText.replace(/\'/g,"\\'");k=k.replace(/^while\(1\)\;/,"");if(j.indexOf(")")==-1){j+="('"+k+"')"}else{j=j.replace(")",", '"+k+"')")}}else{g.innerHTML=c.responseText}}}if(j!==""&&typeof j!="undefined"){setTimeout(j,100)}}};c.open(a,b,true);if(a=="POST"){c.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}c.send(f);timeoutAlert=function(){alert("The server has not yet responded to your request.  You may want to re-try it in a few moments.")};var h=setTimeout(timeoutAlert,7000)}function buildList(){var c=document.getElementById("VOTE");var a="/cgi-bin/vote.pl";var b="votechoice="+(c.votechoice[0].checked?c.votechoice[0].value:"")+(c.votechoice[1].checked?c.votechoice[1].value:"")+(c.votechoice[2].checked?c.votechoice[2].value:"");loadXMLDoc(a,"voteframe","POST",b)}function ouvreFerme(a){if(document.getElementById&&document.getElementById(""+a+"Open")){if(document.getElementById(""+a+"Open").style.display!="none"){document.getElementById(""+a+"Open").innerHTML="";document.getElementById(""+a+"Open").style.display="none"}else{loadXMLDoc("/newLeftBarBackend.pl?CAT="+a,a+"Open");document.getElementById(""+a+"Open").style.display="block"}}else{if(document.all&&document.all(""+a+"Open")){if(document.all(""+a+"Open").style.display!="none"){document.all(""+a+"Open").innerHTML="";document.all(""+a+"Open").style.display="none"}else{loadXMLDoc("/newLeftBarBackend.pl?CAT="+a,a+"Open");document.all(""+a+"Open").style.display="block"}}}}function hpBodySwapper(d,b,e){document.getElementById(e).innerHTML="<i>working ... </i>";loadXMLDoc(b,e);var a=["hpBodySwapaircraft","hpBodySwapinside","hpBodySwapforum","hpBodySwapdirectory"];for(var c=0;c<a.length;++c){document.getElementById(a[c]).setAttribute("class","FullRowFloaterTabBlurred");document.getElementById(a[c]).setAttribute("className","FullRowFloaterTabBlurred")}if(document.getElementById&&document.getElementById(d)){document.getElementById(d).setAttribute("class","FullRowFloaterTabFocused");document.getElementById(d).setAttribute("className","FullRowFloaterTabFocused")}}function writeOnDay(){loadXMLDoc("/tmiah/","","POST","mo="+new Date().getMonth(),"tmiahDisplay",1)}function tmiahDisplay(evtArray){var evts=eval(evtArray);var randNum=new Date().getDate()%(evts.length-1);if(document.getElementById("tmiah")!==null){document.getElementById("tmiah").innerHTML="<span class='reg1'>"+evts[randNum]+"</span>"}}function gactimes(b){loadXMLDoc("/gactimes.pl?type=json","","GET","","gactimesDisplay",1)}function gactimesDisplay(evtArray){var msgs=eval(evtArray);var allEvts="";for(var i=0;i<msgs.length;++i){switch(i){case 0:allEvts+=msgs[i]+"<br /><br />";break;case msgs.length-1:allEvts+="<i>"+msgs[i]+"</i>";break;default:allEvts+="<i>"+msgs[i]+"</i><br /><br />"}}if(document.getElementById("gactimes")!==null){document.getElementById("gactimes").innerHTML="<table width='275' border='0' class='reg1'><tr><td align='right'>"+allEvts+"</td></tr></table>"}}function addEvent(e,b,c){var a,d;if(e===""||typeof e=="undefined"){e=window}switch(b){case"onload":a=e.onload;break;case"onmouseover":a=e.onmouseover;break;case"onmouseout":a=e.onmouseout;break;case"onclick":a=e.onclick;break;case"onmousedown":a=e.onmousedown;break;case"onmouseup":a=e.onmouseup;break;case"onmousemove":a=e.onmousemove;break;case"onsubmit":a=e.onsubmit;break;case"onkeypress":a=e.onkeypress;break;case"onkeyup":a=e.onkeyup;break;case"onchange":a=e.onchange;break;case"onblur":a=e.onblur;break}d=function(){var f=false,g=false;if(a){f=a()}g=c();return(f&&g)};switch(b){case"onload":e.onload=d;break;case"onmouseover":e.onmouseover=d;break;case"onmouseout":e.onmouseout=d;break;case"onclick":e.onclick=d;break;case"onmousedown":e.onmousedown=d;break;case"onmouseup":e.onmouseup=d;break;case"onmousemove":e.onmousemove=d;break;case"onsubmit":e.onsubmit=d;break;case"onkeypress":e.onkeypress=d;break;case"onkeyup":e.onkeyup=d;break;case"onchange":e.onchange=d;break;case"onblur":e.onblur=d;break}}function attachEvent(c,a,b){var d="on"+a;if(c===""||typeof c=="undefined"){c=document}if(c.addEventListener){c.addEventListener(a,b,false)}else{addEvent(c,d,b)}}function addLoadEvent(a){attachEvent(window,"load",a)};

