﻿// JScript File
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/*****************************************************************************
**function populate_Page(type)
**add by daniel for redirect anthor page
**06/21/2006 
*****************************************************************************/
function populate_Page(localtype) {

var value=parseInt(document.getElementById("ctl00_ddlDropDownList").selectedIndex);

if (localtype=="1"){
    switch(value){
        case 1:            
            document.location.href='install.aspx';
            break;  
        case 2:
            document.location.href='webride/orderform.aspx';
            break;     
        case 3:
            document.location.href='webride/orderform.aspx';
            break;  
        case 4:
            document.location.href='webride/rideinquiry.aspx';
            break;   
        case 5:
            document.location.href='webride/rideinquiry.aspx';
            break;   
        case 6:
            document.location.href='webride/rideinquiry_shuttle.aspx';
            break;   
        case 7:
            document.location.href='webride/ridehistory.aspx';
            break;   
        case 8:
            document.location.href='webride/userprofile.aspx';
            break;   
        case 9:
            document.location.href='clogin.aspx';
            break;    
        case 10:            
            document.location.href='glogin.aspx';
            break;  
        case 11:
            document.location.href='Frequentride.aspx';
            break;     
        case 12:
            document.location.href='PickupInstructions.aspx';
            break;  
        case 13:
            document.location.href='EventS.aspx';
            break;   
        case 14:
            document.location.href='CorporateSIRF.aspx';
            break;   
        case 15:
            document.location.href='Fleet.aspx';
            break;   
        case 16:
            document.location.href='FAQ.aspx';
            break;                                                                                                          
        default:
            break;
    }
  }
  
if (localtype=="2"){
    switch(value){
        case 1:            
            document.location.href='../install.aspx';
            break;  
        case 2:
            document.location.href='orderform.aspx';
            break;     
        case 3:
            document.location.href='orderform.aspx';
            break;  
        case 4:
            document.location.href='rideinquiry.aspx';
            break;   
        case 5:
            document.location.href='rideinquiry.aspx';
            break;   
        case 6:
            document.location.href='rideinquiry_shuttle.aspx';
            break;   
        case 7:
            document.location.href='ridehistory.aspx';
            break;   
        case 8:
            document.location.href='userprofile.aspx';
            break;   
        case 9:
            document.location.href='../clogin.aspx';
            break;    
        case 10:            
            document.location.href='../glogin.aspx';
            break;  
        case 11:
            document.location.href='../Frequentride.aspx';
            break;     
        case 12:
            document.location.href='../PickupInstructions.aspx';
            break;  
        case 13:
            document.location.href='../EventS.aspx';
            break;   
        case 14:
            document.location.href='../CorporateSIRF.aspx';
            break;   
        case 15:
            document.location.href='../Fleet.aspx';
            break;   
        case 16:
            document.location.href='../FAQ.aspx';
            break;                                                                                                          
        default:
            break;
    }
  }  
}     
/*****************************************************************************
**function populate_Page(type)
**add by daniel for redirect anthor page
**06/21/2006 
*****************************************************************************/
 /*function populate_Page(localtype) {
alert('aa');
var value=parseInt(document.getElementById("ctl00_ddlDropDownList").selectedIndex);

if (localtype=="1"){
    switch(value){
        case 1:
            alert('aa');
            document.location.href='install.aspx';
            break;
         
        default:
            break;
    }
   if (type=="1"){
        
        //document.location.href='install.aspx';  //Install Price Quote
    }
    if (type=="2"){
        window.location="webride/orderform.aspx"    //Make a reservation
    }
    if (type=="3"){
        window.location="webride/orderform.aspx"     //Frequent Rider Mileage
    }
    if (type=="4"){
        window.location="webride/rideinquiry.aspx"   //Change Yur Reservation
    }
    if (type=="5"){
        window.location="webride/rideinquiry.aspx"   //View All Open Trips
    }
    if (type=="6"){
        window.location="webride/rideinquiry_shuttle.aspx"   //View All Cancelled Trips
    }
    if (type=="7"){
        window.location="webride/ridehistory.aspx"   //Get a Receipt
    }  
    if (type=="8"){
        window.location="webride/userprofile.aspx"   //Update passenger profile
    } 
    if (type=="9"){
        window.location="clogin.aspx"   //corporate login
    } 
    if (type=="10"){
        window.location="glogin.aspx"   //group reservation login
    } 
    if (type=="11"){
        window.location="Frequentride.aspx"   //the frequent ride program
    }      
    if (type=="12"){
        window.location="PickupInstructions.aspx"
    }
    if (type=="13"){
        window.location="EventS.aspx"
    }
    if (type=="14"){
        window.location="CorporateSIRF.aspx"
    }
    if (type=="15"){
        window.location="Fleet.aspx"
    }
    if (type=="16"){
        window.location="FAQ.aspx"
    }   
   }
if (localtype=="2"){
    if (type=="1"){
        window.location="../install.aspx"  //Install Price Quote
    }
    if (type=="2"){
        window.location="orderform.aspx"    //Make a reservation
    }
    if (type=="3"){
        window.location="orderform.aspx"     //Frequent Rider Mileage
    }
    if (type=="4"){
        window.location="rideinquiry.aspx"   //Change Yur Reservation
    }
    if (type=="5"){
        window.location="rideinquiry.aspx"   //View All Open Trips
    }
    if (type=="6"){
        window.location="rideinquiry_shuttle.aspx"   //View All Cancelled Trips
    }
    if (type=="7"){
        window.location="ridehistory.aspx"   //Get a Receipt
    }  
    if (type=="8"){
        window.location="userprofile.aspx"   //Update passenger profile
    } 
    if (type=="9"){
        window.location="../clogin.aspx"   //corporate login
    } 
    if (type=="10"){
        window.location="../glogin.aspx"   //group reservation login
    } 
    if (type=="11"){
        window.location="../Frequentride.aspx"   //the frequent ride program
    }      
    if (type=="12"){
        window.location="../PickupInstructions.aspx"
    }
    if (type=="13"){
        window.location="../EventS.aspx"
    }
    if (type=="14"){
        window.location="../CorporateSIRF.aspx"
    }
    if (type=="15"){
        window.location="../Fleet.aspx"
    }
    if (type=="16"){
        window.location="../FAQ.aspx"
    } 
   }
}*/
