var isolation=new Array();
var trimvout=new Array();
var hstransresp=new Array();
var parallelop=new Array();
var remoteonoff=new Array();
var autotrackseq=new Array();
var marginupdownctrl=new Array();
var firstSelection=true;
var busy=false;
function loadMenus(){
loadMenu(isolation,"isolation");
loadMenu(trimvout,"trimvout");
loadMenu(hstransresp,"hstransresp");
loadMenu(parallelop,"parallelop");
loadMenu(remoteonoff,"remoteonoff");
loadMenu(autotrackseq,"autotrackseq");
loadMenu(marginupdownctrl,"marginupdownctrl");
}
function loadMenu(_1,_2){
document.getElementById(_2).options[0].value="";
document.getElementById(_2).options[0].text="";
for(j=0;j<_1.length;j++){
document.getElementById(_2).options[j+1]=new Option(_1[j],_1[j]);
}
}
var selections="";
var lastValidIndex=null;
function resetButton(){
document.getElementById("vinexact").value="";
document.getElementById("vinButtonDiv").style.visibility="hidden";
loadMenus();
selections="";
getDCDCData();
document.getElementById("numResults").innerHTML="<img src=\"images/msg_updating.png\">";
document.getElementById("detailDiv").style.visibility="hidden";
}
function updateMessage(sh){
document.getElementById("updateMessageDiv").style.left=100;
document.getElementById("updateMessageDiv").style.top=200;
document.getElementById("updateMessageDiv").style.visibility=sh;
}
function menuOnMouseOver(e,_5){
eVin=document.getElementById("vinexact");
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){
if(_5==""){
if(eVin.value!=""){
getAvailableOptionsForMenu(e.id,_5+"vin="+eVin.value);
}else{
getAvailableOptionsForMenu(e.id,_5);
}
}else{
if(eVin.value!=""){
getAvailableOptionsForMenu(e.id,_5+"&vin="+eVin.value);
}else{
getAvailableOptionsForMenu(e.id,_5);
}
}
}
}
function menuOnClick(e){
document.getElementById("detailDiv").style.visibility="hidden";
lastValidIndex=e.selectedIndex;
}
var vinPrevValue="";
function menuOnChange(e){
var _8="";
if(e.options!=null){
if(e.options[e.selectedIndex].disabled){
e.selectedIndex=lastValidIndex;
}else{
document.getElementById("numResults").innerHTML="<img src=\"images/msg_updating.png\">";
if(e.options[0].value==""){
e.options[0]=null;
}
selections+="&"+e.id+"="+e.value;
if(selections.substring(0,1)=="&"){
selections=selections.substring(1);
}
}
}
if(document.getElementById("vinexact").value!=""){
document.getElementById("numResults").innerHTML="<img src=\"images/msg_updating.png\">";
if(selections!=""){
_8="&vin="+document.getElementById("vinexact").value;
}else{
_8="vin="+document.getElementById("vinexact").value;
}
getDCDCData(selections+_8);
}else{
getDCDCData(selections);
}
vinPrevValue=document.getElementById("vinexact").value;
document.getElementById("vinButtonDiv").style.visibility="hidden";
}
function vinexactOnKeyUp(e){
if(!isNaN(e.value)||e.value=="."){
if(vinPrevValue!=e.value){
document.getElementById("vinButtonDiv").style.visibility="visible";
}else{
document.getElementById("vinButtonDiv").style.visibility="hidden";
}
}else{
alert("Please enter a number for Vin");
document.getElementById("vinexact").value="";
}
}
function stopSubmitOnEnterKey(_a){
var _b=_a?_a.which:window.event.keyCode;
if(_b==13){
menuOnChange(document.getElementById("vinButton"));
}
return _b!=13;
}
document.onkeypress=stopSubmitOnEnterKey;
if(document.layers){
document.captureEvents(Event.KEYPRESS);
}

