//Start no_yellow.js

<!--
if(window.attachEvent)
window.attachEvent("onload",setListeners);
function setListeners(){
inputList = document.getElementsByTagName("INPUT");
for(i=0;i<inputList.length;i++){
inputList[i].attachEvent("onpropertychange",restoreStyles);
inputList[i].style.backgroundColor = "";
}
selectList = document.getElementsByTagName("SELECT");
for(i=0;i<selectList.length;i++){
selectList[i].attachEvent("onpropertychange",restoreStyles);
selectList[i].style.backgroundColor = "";
}
}
function restoreStyles(){
if(event.srcElement.style.backgroundColor != "")
event.srcElement.style.backgroundColor = "";
}//-->

//End no_yellow.js

//Start nomoreyellow.js

    if(window.attachEvent)
    {//Attach to onload event in IE
        window.attachEvent("onload",resetStyles);
    }
    else
    {//Attach to load event in Other Browser
        window.addEventListener("load",resetStyles,false);
     //Attach to focus event in other browsers to disable
     //background color change in tabbed browsing  
        window.addEventListener("focus",resetStyles,false);   
    }

    function resetStyles()
    {
        resetStyle('input');
        resetStyle('select');
    }

    function resetStyle(inputType)
    {
        var count=document.getElementsByTagName(inputType);
        for(var i=0;i<count.length;i++)
        {
            if(window.attachEvent)
            {//Attach to onpropertychange event in IE
                count[i].attachEvent('onpropertychange',resetBC);
            }
            else
            {//Apply the style reset onload
                resetOther(count[i]);
            }
        }
    }
    
    function resetOther(El)
    {
        if(El.style.backgroundColor!='')
            El.style.backgroundColor='';
    }
    function resetBC()
    {
        if(event.srcElement.style.backgroundColor!='')
            event.srcElement.style.backgroundColor='';
    }

//End nomoreyellow.js

/////////////////////////  START DROP DOWN MENU   //////////////////////////////

var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;

function mopen(id){	
mcancelclosetime();

if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
ddmenuitem = document.getElementById(id);
ddmenuitem.style.visibility = 'visible';
}

function mclose(){
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

function mclosetime(){
closetimer = window.setTimeout(mclose, timeout);
}

function mcancelclosetime(){
if(closetimer){
window.clearTimeout(closetimer);
closetimer = null;
}
}

document.onclick = mclose; 

//////////////////////////  END DROP DOWN MENU   ///////////////////////////////

/////////////////////  START POPUP FOR REQUEST QUOTE  //////////////////////////

function GetQuoteForm(department){
var URL = "http://www.executivebeechcraft.com/contact/quoteform.php?department=" + department + "";
winpops=window.open(URL,"","width=995,height=550,left=10,top=10,status=0,scrollbars=1,resizable=1,menubar=0,location=0,toolbar=0")
}

/////////////?////////  END POPUP FOR REQUEST QUOTE  ///////////////?///////////


