﻿// JScript File
//JScript File
var winOpen;
var index = 1;

var enableCache = false;
var jsCache = new Array();
var getvalue = new Array();
var AjaxObjects = new Array();


var enableCache2 = false;
var jsCache2 = new Array();
var AjaxObjects2 = new Array();
var getvalue2 = new Array();
        
var enableCache1 = false;
var jsCache1 = new Array();
var AjaxObjects1 = new Array();

var style_cookie_name = "style" ;
var style_cookie_duration = 30 ;

var Addr_enableCache = false;
var Addr_jsCache = new Array();
var Addr_AjaxObjects = new Array();


function openUpdateWindow(pageurl)
{
//	winOpen = new Window('Taxis', {className: "alphacube", title: "",top:0, left:0, width:600, height:350, minimizable: false, maximizable: false,
//	resizable: true, url: pageurl, showEffect:Effect.SlideDown, hideEffect:Effect.Fade, showEffectOptions: {duration:0}});        
//	winOpen.showCenter(true);
//	jQuery.facebox({ ajax: pageurl })
}   

// *** END OF CUSTOMISABLE SECTION ***

function switch_style ( css_title )
{
// You may use this script on your site free of charge provided
// you do not remote this notice or the URL below. Script from
// http://www.thesitewizard.com/javascripts/change-style-sheets.shtml
  var i, link_tag ;
  for (i = 0, link_tag = document.getElementsByTagName("link") ;
    i < link_tag.length ; i++ ) {
    if ((link_tag[i].rel.indexOf( "stylesheet" ) != -1) &&
      link_tag[i].title) {
      link_tag[i].disabled = true ;
      if (link_tag[i].title == css_title) {
        link_tag[i].disabled = false ;
      }
    }
    set_cookie( style_cookie_name, css_title,
      style_cookie_duration );
  }
}
function set_style_from_cookie()
{
  var css_title = get_cookie( style_cookie_name );
  if (css_title.length) {
    switch_style( css_title );
  }
}
function set_cookie ( cookie_name, cookie_value,
    lifespan_in_days, valid_domain )
{
    // http://www.thesitewizard.com/javascripts/cookies.shtml
    var domain_string = valid_domain ?
                       ("; domain=" + valid_domain) : '' ;
    document.cookie = cookie_name +
                       "=" + encodeURIComponent( cookie_value ) +
                       "; max-age=" + 60 * 60 *
                       24 * lifespan_in_days +
                       "; path=/" + domain_string ;
}
function get_cookie ( cookie_name )
{
    // http://www.thesitewizard.com/javascripts/cookies.shtml
    var cookie_string = document.cookie ;
    if (cookie_string.length != 0) {
        var cookie_value = cookie_string.match (
                        '(^|;)[\s]*' +
                        cookie_name +
                        '=([^;]*)' );
        return decodeURIComponent ( cookie_value[2] ) ;
    }
    return '' ;
}

	function Validate()
	{
		var Accno = document.getElementById("txt_account").value;
		var pwd = document.getElementById("txt_pword").value;
		
		if ((Accno !='') && (pwd !=''))
		{
			return true;
		}
		else
		{
			if ((Accno==''))
			{
				alert("Please enter the Account No!");
				document.getElementById("txt_account").focus();
				return false;
			}
			else if ((pwd==''))
			{
				alert("Please enter the Password!");
				document.getElementById("txt_pword").focus();
				return false;
			}
		}
		
		
	}

	function onload()
	{
		if (document.getElementById("txt_pword"))
		{
			if (document.getElementById("txt_pword").value=='')
			{
				document.getElementById("txt_pword").value='password';
			}
		}
	}

function SetPickupTime()
	{
		var Get_App_Hour;
		var Get_App_Min;
		var Sel_Hour_Index = document.getElementById("ctl00_SA_YellowCab_Content_Drp_Appointment_Time_hours").selectedIndex;
		var Selected_Hour_text = document.getElementById("ctl00_SA_YellowCab_Content_Drp_Appointment_Time_hours").options[Sel_Hour_Index].value;
		var Selected_App_Hour_text = document.getElementById("ctl00_SA_YellowCab_Content_Drp_Appointment_Time_hours").options[Sel_Hour_Index].text;
		
		if (Selected_App_Hour_text!='Select One')
		{
			var Sel_Min_Index = document.getElementById("ctl00_SA_YellowCab_Content_Drp_AppointmentTime_Min").selectedIndex;
			var Selected_Min_text = document.getElementById("ctl00_SA_YellowCab_Content_Drp_AppointmentTime_Min").options[Sel_Min_Index].value;
			
			Get_App_Hour=Selected_Hour_text;
			Get_App_Min=Selected_Min_text;
			
			var teaTime = new Date();
			teaTime.setHours(Get_App_Hour); // 17 means 5 o'clock in the evening
			teaTime.setMinutes(Get_App_Min);
		
			var minutes = teaTime.getMinutes();
			var Hours = teaTime.getHours();
			Hours -= 1;           // Minus 1 Hours to the time
			minutes -= 30;           // Minus 30 minutes to the time
			teaTime.setHours(Hours);
			teaTime.setMinutes(minutes);
			
			var Get_Pickup_minutes = teaTime.getMinutes();
			var Get_Pickup_Hours = teaTime.getHours();
			
			//Get_Pickup_Hours = leadingZeros(Get_Pickup_Hours,2,"0");
			Get_Pickup_minutes = leadingZeros(Get_Pickup_minutes,2,"0");
		
			document.getElementById("ctl00_SA_YellowCab_Content_Drp_Pickup_Time_Hour").value=Get_Pickup_Hours;
			document.getElementById("ctl00_SA_YellowCab_Content_Drp_Pickup_Time_Min").value=Get_Pickup_minutes;
		}
		else
		{
			document.getElementById("ctl00_SA_YellowCab_Content_Drp_Pickup_Time_Hour").value="";
			document.getElementById("ctl00_SA_YellowCab_Content_Drp_Pickup_Time_Min").value="00";		
		}
	}
	
	function leadingZeros(num, totalChars, padWith) {
	num = num + "";
	padWith = (padWith) ? padWith : "0";
	if (num.length < totalChars) {
		while (num.length < totalChars) {
			num = padWith + num;
		}
	} else {}
 
	if (num.length > totalChars) { //if padWith was a multiple character string and num was overpadded
		num = num.substring((num.length - totalChars), totalChars);
	} else {}
 
	return num;
}
	    
	function textCounter() {
	    var field	    
		field = document.getElementById('ctl00_SA_YellowCab_Content_Txt_Other_Special_Req');
			    
		if (field.value.length > 160) {	
			field.value = field.value.substring(0, 160);
		} else 	{
			charsLeft = 160 - field.value.length;
			countfield = document.getElementById('special_requests_limit')
			countfield.innerHTML = charsLeft;
		}
	}
	
	function isNumberKey(evt) {
		if(evt.which!=0) 
		{
			var charCode = (evt.which) ? evt.which : evt.keyCode
			if (charCode > 57)
			{
				return false;
			}
			else
			{
				return true;
			}
		}
	}
	
	function closediv()
        {
          if (document.getElementById("ctl00_SA_YellowCab_Content_Div_PickUp_LandMark"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_PickUp_LandMark").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_PickUp_LandMark").style.display="none";
            }            
          if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Dest_LandMark"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Dest_LandMark").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Dest_LandMark").style.display="none";
            }   
          if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Dep_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Dep_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Dep_City").style.display="none";
            }      
          if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Dest_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Dest_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Dest_City").style.display="none";
            }        
          if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Home_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Home_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Home_City").style.display="none";
            }    
          if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_City").style.display="none";
            }   
         if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav1_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav1_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav1_City").style.display="none";
            }   
         if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav2_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav2_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav2_City").style.display="none";
            }     
          if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_Details_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_Details_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_Details_City").style.display="none";
            }     
        if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_Details1_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_Details1_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_Details1_City").style.display="none";
            }  
        if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Bank_Name1_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Bank_Name1_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Bank_Name1_City").style.display="none";
            }  
        if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Bank_Name2_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Bank_Name2_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Bank_Name2_City").style.display="none";
            }  
        if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Bank_Name3_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Bank_Name3_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Bank_Name3_City").style.display="none";
            }        
         if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_Address_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_Address_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_Address_City").style.display="none";
            }  
        if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav1_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav1_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav1_City").style.display="none";
            }
        if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav2_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav2_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav2_City").style.display="none";
            }
            
        if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Home_Address_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Home_Address_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Home_Address_City").style.display="none";
            }             
		if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_Address_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_Address_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Company_Address_City").style.display="none";
            }  
        if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav1_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav1_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav1_City").style.display="none";
            }
        if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav2_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav2_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Fav2_City").style.display="none";
            }
                  
         if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Permanent_Address_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Permanent_Address_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Permanent_Address_City").style.display="none";
            }
            
         if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Employer1_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Employer1_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Employer1_City").style.display="none";
            }
         if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Employer2_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Employer2_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Employer2_City").style.display="none";
            }
         if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Employer3_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Employer3_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Employer3_City").style.display="none";
            }
          if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Employer4_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Employer4_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_Employer4_City").style.display="none";
            }
            
         if (document.getElementById("ctl00_SA_YellowCab_Content_Div_References1_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_References1_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_References1_City").style.display="none";
            }
         if (document.getElementById("ctl00_SA_YellowCab_Content_Div_References2_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_References2_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_References2_City").style.display="none";
            }
         if (document.getElementById("ctl00_SA_YellowCab_Content_Div_References3_City"))
            {
                document.getElementById("ctl00_SA_YellowCab_Content_Div_References3_City").style.display="";
                document.getElementById("ctl00_SA_YellowCab_Content_Div_References3_City").style.display="none";
            }
         
        }
        
    function Check_PickUp_Type()
         {
			if(document.getElementById("ctl00_SA_YellowCab_Content_Rdo_PickUp_LandMark").checked==true) 
			{
				document.getElementById("ctl00_SA_YellowCab_Content_Div_TD_Pickup_LandMark").style.display="";
				document.getElementById("ctl00_SA_YellowCab_Content_Div_TD_PickUp_Address").style.display="none";
			} 
			else if(document.getElementById("ctl00_SA_YellowCab_Content_Rdo_PickUp_Address").checked==true) 
			{
				document.getElementById("ctl00_SA_YellowCab_Content_Div_TD_PickUp_Address").style.display="";
				document.getElementById("ctl00_SA_YellowCab_Content_Div_TD_Pickup_LandMark").style.display="none";
			}
		 }
		 
	function Check_Dest_Type()
         {
			if(document.getElementById("ctl00_SA_YellowCab_Content_Rdo_Dest_LandMark").checked==true) 
			{
				document.getElementById("ctl00_SA_YellowCab_Content_Div_TD_Dest_LandMark").style.display="";
				document.getElementById("ctl00_SA_YellowCab_Content_Div_TD_Dest_Address").style.display="none";
			} 
			else if(document.getElementById("ctl00_SA_YellowCab_Content_Rdo_Dest_Address").checked==true) 
			{
				document.getElementById("ctl00_SA_YellowCab_Content_Div_TD_Dest_Address").style.display="";
				document.getElementById("ctl00_SA_YellowCab_Content_Div_TD_Dest_LandMark").style.display="none";
			}
		 }


    function changemenu(id,classname) 
        {
			//alert(id);
		    document.getElementById(id).className = classname;
		}
        
         function PutTextBox(Value,Type,page)
        {
			//alert(page);
			//alert(Type);
			//alert(Value);
			if (Type=='PickUp')
			{
				document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value =Value;
				document.getElementById("ctl00_SA_YellowCab_Content_Div_PickUp_LandMark").style.display="none";
			}
			else if (Type=='Dest')
			{
				document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_LandMark").value =Value;
				document.getElementById("ctl00_SA_YellowCab_Content_Div_Dest_LandMark").style.display="none";
			}
			
			if (page=="order")
			{
			    var url = "";
			
			    url = "GetLandMarkDetails.aspx?Type=findblocked";
			    if ((document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark")) && (document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_LandMark")))
		        {
		            if (Type=='PickUp'){
		                GetAjaxDetails('Ajax_Content', 'GetValues.aspx?LandmarkName=','Dep');
		            } else if (Type=='Dest')
		            {
		                GetAjaxDetails('Ajax_Content', 'GetValues.aspx?LandmarkName=','Dest');
		            }
		        }	
		        
			    //alert(url);
			    CheckBlocked('ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark',url)
			    
			} else if(page=="fair")
			{			
			    if ((document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark")) && (document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_LandMark")))
		        {
		            if (Type=='PickUp'){
		                GetAjaxDetails_FareEstimator('Ajax_Content', 'GetValues.aspx?LandmarkName=','Dep');
		            } else if (Type=='Dest')
		            {
		               GetAjaxDetails('Ajax_Content', 'GetValues.aspx?LandmarkName=','Dest');
		            }
		        }			
			}
        }
        
        function ShowDivContent(Type, ajaxIndex, url) 
        {
//			alert(Type);
//			alert(ajaxIndex);
//			alert(url);
			if (Type=='PickUp')
			{
				if (AjaxObjects[ajaxIndex].response == ""){
			        closediv()
			        return false;
		        }
		        else
		        {
		            document.getElementById("ctl00_SA_YellowCab_Content_Div_PickUp_LandMark").innerHTML = AjaxObjects[ajaxIndex].response;
			    }
			}
			else if (Type=='Dest')
			{
				 if (AjaxObjects[ajaxIndex].response == ""){
			        closediv()
			        return false;
		        }
		        else
		        {
		           document.getElementById("ctl00_SA_YellowCab_Content_Div_Dest_LandMark").innerHTML = AjaxObjects[ajaxIndex].response;
			    }
			}
            
            //alert(AjaxObjects[ajaxIndex].response);
            
            if (enableCache) {
                jsCache[url] = AjaxObjects[ajaxIndex].response;
            }
            AjaxObjects[ajaxIndex] = false;
            //document.getElementById(divId).style.display = '';
            if (Type=='PickUp')
            {
				document.getElementById("ctl00_SA_YellowCab_Content_Div_PickUp_LandMark").style.display="block";
            }
            else if (Type=='Dest')
            {
				document.getElementById("ctl00_SA_YellowCab_Content_Div_Dest_LandMark").style.display="block";
            }
            
        }

		function CallAjax(Type, url) 
		{
		
		//alert(Type);
		//alert(url);
			if (Type=='PickUp')
			{
			    if (document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value == ""){
			        closediv()
			        return false;
			    }
				url = url + escape(document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value) + '&Type=' + Type;
			}
			else if (Type=='Dest')
			{
			    if (document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_LandMark").value == ""){
			        closediv()
			        return false;
			    }
				url = url + escape(document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_LandMark").value) + '&Type=' + Type;
			}
			
			
            if (enableCache && jsCache[url]) {
            //alert("");
                document.getElementById(divId).innerHTML = jsCache[url];
                return;
            }
			
            var ajaxIndex = AjaxObjects.length;
            AjaxObjects[ajaxIndex] = new sack();
            AjaxObjects[ajaxIndex].requestFile = url;
           // alert("");
            AjaxObjects[ajaxIndex].onCompletion = function() { ShowDivContent(Type, ajaxIndex, url); };
            AjaxObjects[ajaxIndex].runAJAX();
             //alert("");
        }
        
              

       function ShowContent(divId, ajaxIndex2, url, Type) {           
            var returnvalue = AjaxObjects2[ajaxIndex2].response;
			var getvalue2 = returnvalue.split("||");
			var control = document.getElementById("ctl00_SA_YellowCab_Content_blockedcontent");
			var GetLandMarkName;
			if (document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark"))
			{
				if (document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value!='undefined')
				{
					GetLandMarkName = document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value;
				}
			}
			if (returnvalue != "")
			{
			    if (Type == 'Dep')
			    {					         
			        if(getvalue2[5]=='True')
			        {	 			
						//alert(GetLandMarkName);            
		                reason=getvalue2[6];
		                if (GetLandMarkName!='' && GetLandMarkName !='undefined')
		                {		                    	        
							document.getElementById("ctl00_SA_YellowCab_Content_Div_Reason").innerHTML = "Landmark Name : " + GetLandMarkName + "<br>" +  reason ;   
							document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value = '';   
						}
		                document.getElementById("ctl00_SA_YellowCab_Content_txt_Dep_houseno").value = '';
				        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_Street").value = '';
    //				    document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_City").value = getvalue2[2];			
				        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_City").value = '';			
				        document.getElementById("ctl00_SA_YellowCab_Content_drp_Dep_State").value = '0';
				        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_Zip").value ='';  
				        document.getElementById("ctl00_SA_YellowCab_Content_lbldest_img").value = '';
				        document.getElementById("ctl00_SA_YellowCab_Content_lbldept_img").value = '';   
				       
				        if (document.getElementById("ctl00_SA_YellowCab_Content_blockedcontent"))
				        {
							document.getElementById("ctl00_SA_YellowCab_Content_blockedcontent").style.display = "none";  
				        }            				        
				        
				        if (document.getElementById("ctl00_SA_YellowCab_Content_lblInfo"))
				        {
							//document.getElementById("ctl00_SA_YellowCab_Content_lblInfo").innerHTML = 'If you need service from a different landmark or want to type in a different pickup address <a href="Order.aspx" class="link">press here</a>';   
							document.getElementById("ctl00_SA_YellowCab_Content_lblInfo").style.display = "block";  
							
				        }
				        
				        if (document.getElementById("ctl00_SA_YellowCab_Content_a_focus"))
				        {
							document.getElementById("ctl00_SA_YellowCab_Content_a_focus").focus();   
				        }
				        
			        }
			        else
			        {			      
						//alert('no');      
						//alert(GetLandMarkName);      
						if (document.getElementById("ctl00_SA_YellowCab_Content_blockedcontent"))
						{
							document.getElementById("ctl00_SA_YellowCab_Content_blockedcontent").style.display = "";
						}
						
			            document.getElementById("ctl00_SA_YellowCab_Content_Div_Reason").innerHTML = '';
				        document.getElementById("ctl00_SA_YellowCab_Content_txt_Dep_houseno").value = getvalue2[0];
				        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_Street").value = getvalue2[1];
    //				    document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_City").value = getvalue2[2];			
				        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_City").value = getvalue2[2];			
				        document.getElementById("ctl00_SA_YellowCab_Content_drp_Dep_State").value = getvalue2[3];
				        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_Zip").value = getvalue2[4];
				        if (document.getElementById("ctl00_SA_YellowCab_Content_lblInfo"))
				        {
							//document.getElementById("ctl00_SA_YellowCab_Content_lblInfo").innerHTML = '';   
							document.getElementById("ctl00_SA_YellowCab_Content_lblInfo").style.display = "none";  
						}
				        //document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value = GetLandMarkName;
				     }

			    }
			    /////////////////////////////////////////////////////////////////Hotel///////////////////////////////////////////////////////
			    else if (Type == 'Hotel')
			    {			        
		        	//alert('no');      
					//alert(GetLandMarkName);      
					if (document.getElementById("ctl00_SA_YellowCab_Content_blockedcontent"))
					{
						document.getElementById("ctl00_SA_YellowCab_Content_blockedcontent").style.display = "";
					}
					
		            //document.getElementById("ctl00_SA_YellowCab_Content_Div_Reason").innerHTML = '';
			        document.getElementById("ctl00_SA_YellowCab_Content_txt_Dep_houseno").value = getvalue2[0];
			        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_Street").value = getvalue2[1];
//				    document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_City").value = getvalue2[2];			
			        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_City").value = getvalue2[2];			
			        document.getElementById("ctl00_SA_YellowCab_Content_drp_Dep_State").value = getvalue2[3];
			        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_Zip").value = getvalue2[4];
			        document.getElementById('ctl00_SA_YellowCab_Content_Txt_Phone_No').value=getvalue2[7];
			        document.getElementById('ctl00_SA_YellowCab_Content_Hid_Pickup_LandMark_ID').value=getvalue2[8];
			        document.getElementById('ctl00_SA_YellowCab_Content_Hid_Pickup_Latitude').value=getvalue2[9];
			        document.getElementById('ctl00_SA_YellowCab_Content_Hid_Pickup_Longitude').value=getvalue2[10];
			        if (document.getElementById("ctl00_SA_YellowCab_Content_lblInfo"))
			        {
						//document.getElementById("ctl00_SA_YellowCab_Content_lblInfo").innerHTML = '';   
						document.getElementById("ctl00_SA_YellowCab_Content_lblInfo").style.display = "none";  
					}
			        //document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value = GetLandMarkName;
			        document.getElementById("ctl00_SA_YellowCab_Content_lbl_Address").innerHTML ='<b>Hotel Physical Address</b> : ' + getvalue2[0] + ' ' + getvalue2[1] + ' ' +  getvalue2[2] + ' ' + getvalue2[3] + ' ' + getvalue2[4] + '. Ph# : ' + getvalue2[7];    

			    }
			    /////////////////////////////////////////////////////////////////Hotel///////////////////////////////////////////////////////
			    else
			    {
					//alert();
			            document.getElementById("ctl00_SA_YellowCab_Content_txt_Dest_houseno").value = getvalue2[0];
				        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_Street").value = getvalue2[1];
    //				    document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_City").value = getvalue2[2];			
				        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_City").value = getvalue2[2];			
				        document.getElementById("ctl00_SA_YellowCab_Content_drp_Dest_State").value = getvalue2[3];
				        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_Zip").value = getvalue2[4];	
				        document.getElementById("ctl00_SA_YellowCab_Content_lbldest_img").value = '';
				        document.getElementById("ctl00_SA_YellowCab_Content_lbldept_img").value = '';    
			    }
				    
			} 

            if (enableCache2) {
                jsCache2[url] = AjaxObjects2[ajaxIndex2].response;
            }
            AjaxObjects2[ajaxIndex2] = false;
            document.getElementById(divId).style.display = '';
            //showEffect:Effect.SlideDown, hideEffect:Effect.Fade, showEffectOptions: {duration:0}}
            //Dialog.info($("content").innerHTML, { className: "alphacube", width: 450, showEffect: Effect.SlideDown, hideEffect: Effect.Fade, showEffectOptions: { duration: 0 }, id: "d" + index })
            if (document.getElementById("ctl00_SA_YellowCab_Content_Div_Reason"))
            {
				if (Trim(document.getElementById("ctl00_SA_YellowCab_Content_Div_Reason").innerHTML)!='')
				{
					document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value = ''; 
				}
				else
				{
					if (document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark"))
					{
						document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value = GetLandMarkName; 
					}
				}      
            }
        }

       


        function ShowBlockedContent(divId,ajaxIndex,url)
        {
            var isblocked;
            var landmark_id;
            var Reason;
            var response;
            response = AjaxObjects1[ajaxIndex].response;
            var retvalue = response.split("<br>");
            Reason = retvalue[0];
            landmark_id = retvalue[2];
            isblocked = retvalue[1];
            /*//alert(isblocked);
            if (isblocked == "True") {
                if (document.getElementById("ctl00_SA_YellowCab_Content_blockedcontent"))
                {
                    document.getElementById("ctl00_SA_YellowCab_Content_blockedcontent").style.display = "none";
                }
                document.getElementById("ctl00_SA_YellowCab_Content_lblReason").innerHTML = Reason;
           }else{
           
                if (document.getElementById("ctl00_SA_YellowCab_Content_blockedcontent"))
                {
                    document.getElementById("ctl00_SA_YellowCab_Content_blockedcontent").style.display = "block";
                }
                document.getElementById("ctl00_SA_YellowCab_Content_lblReason").innerHTML = "";
            }*/
	        if(enableCache1){
		        jsCache1[url] = AjaxObjects1[ajaxIndex].response;
	        }
	        AjaxObjects1[ajaxIndex] = false;
	   }

        function CheckBlocked(id,url)
        {
          if(document.getElementById(id).value != "" && document.getElementById(id).value.length > 4)
            {
                url +=  "&LandMarkName=" + escape(document.getElementById(id).value);
                if(enableCache1 && jsCache1[url]){
		            document.getElementById(divId).innerHTML = jsCache1[url];
		            return;
	            }	
	            var ajaxIndex1 = AjaxObjects1.length;
	            AjaxObjects1[ajaxIndex1] = new sack();
	            AjaxObjects1[ajaxIndex1].requestFile = url;
	            AjaxObjects1[ajaxIndex1].onCompletion = function(){ ShowBlockedContent(id,ajaxIndex1,url); };
	            AjaxObjects1[ajaxIndex1].runAJAX();
	        }
        }
        
        function GetAjaxDetails(divId, url, Type) 
		{        
        //alert(divId);
			if (Type == 'Dep')
			{
			     if (document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value == ""){
			        closediv()
			        return false;
			    }
				url = url + escape(document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value);
			}
			else if (Type == 'Hotel')
			{
			     if (document.getElementById("ctl00_SA_YellowCab_Content_Drp_PickUp_LandMark").value == "")
			     {
			        closediv()
			        return false;
			     }
			     else if(document.getElementById("ctl00_SA_YellowCab_Content_Drp_PickUp_LandMark").value == "-- Select One --")
			     {
					document.getElementById('ctl00_SA_YellowCab_Content_txt_Dep_houseno').value="";
					document.getElementById('ctl00_SA_YellowCab_Content_Txt_Dep_Street').value="";
					document.getElementById('ctl00_SA_YellowCab_Content_Txt_PickUpAddr_Apt_No').value="";
					document.getElementById('ctl00_SA_YellowCab_Content_Txt_Dep_Zip').value="";
					document.getElementById('ctl00_SA_YellowCab_Content_Txt_Dep_City').value="San Antonio";
					document.getElementById('ctl00_SA_YellowCab_Content_drp_Dep_State').value="TX";
					document.getElementById("ctl00_SA_YellowCab_Content_lbl_Address").innerHTML="";
					return false;
			     }
				 url = url + escape(document.getElementById("ctl00_SA_YellowCab_Content_Drp_PickUp_LandMark").value);
			}
			else
			{
			     if (document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_LandMark").value == ""){
			        closediv()
			        return false;
			    }
				url = url + escape(document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_LandMark").value);
			}
			
			//alert(url);
            if (enableCache2 && jsCache2[url]) {
                document.getElementById(divId).innerHTML = jsCache2[url];
                return;
            }

            var ajaxIndex2 = AjaxObjects2.length;
            //document.getElementById(divId).innerHTML = '<img src=images/movewait.gif width=16 height=16 hspace=10 vspace=10 />';
            AjaxObjects2[ajaxIndex2] = new sack();
            AjaxObjects2[ajaxIndex2].requestFile = url;
            AjaxObjects2[ajaxIndex2].onCompletion = function() { ShowContent(divId, ajaxIndex2, url, Type); };
            AjaxObjects2[ajaxIndex2].runAJAX();
}

function Check_App_Or_Cancelled(obj)
{
	var GetId;
	GetId = obj.id;

	var GetCheckedValue;
	GetCheckedValue=obj.checked;
			
	if (GetCheckedValue == true)
	{
		if (GetId.endsWith('Approved'))
		{
			GetId = GetId.replace('Approved','Cancelled');
			document.getElementById(GetId).checked=false;
		}
		else if (GetId.endsWith('Cancelled'))
		{
			GetId = GetId.replace('Cancelled','Approved');
			document.getElementById(GetId).checked=false;
		}
		
	}
}
function ShowAddress(GetajaxIndex,url,Type)
{
	var GetReturnValue = Addr_AjaxObjects[GetajaxIndex].response;
	var GetArrVal = GetReturnValue.split(",");
	if (GetReturnValue != "")
	{
	   if (Type == 'Dep')
	    {
		    document.getElementById("ctl00_SA_YellowCab_Content_txt_Dep_houseno").value = GetArrVal[0];
		    document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_Street").value = GetArrVal[1];
		    document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUpAddr_Apt_No").value = GetArrVal[2];
		    document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_City").value = GetArrVal[3];			
		    document.getElementById("ctl00_SA_YellowCab_Content_drp_Dep_State").value = GetArrVal[4];
		    document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_Zip").value = GetArrVal[5];
	    }
	    else
	    {
		    document.getElementById("ctl00_SA_YellowCab_Content_txt_Dest_houseno").value = GetArrVal[0];
		    document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_Street").value = GetArrVal[1];
		    document.getElementById("ctl00_SA_YellowCab_Content_Txt_DestAddr_AptNo").value = GetArrVal[2];;
		    document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_City").value = GetArrVal[3];			
		    document.getElementById("ctl00_SA_YellowCab_Content_drp_Dest_State").value = GetArrVal[4];
		    document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_Zip").value = GetArrVal[5];
	    }
	} 

    if(Addr_enableCache){
        Addr_jsCache[url] = Addr_AjaxObjects[GetajaxIndex].response;
    }
    Addr_AjaxObjects[GetajaxIndex] = false;
}

function GetAddress(url,Type)
{
    if(Addr_enableCache && Addr_jsCache[url]){
        //document.getElementById(divId).innerHTML = Addr_jsCache[url];
        return;
    }	
    var ajaxAddressIndex = Addr_AjaxObjects.length;
    Addr_AjaxObjects[ajaxAddressIndex] = new sack();
    Addr_AjaxObjects[ajaxAddressIndex].requestFile = url;
    Addr_AjaxObjects[ajaxAddressIndex].onCompletion = function(){ ShowAddress(ajaxAddressIndex,url,Type); };
    Addr_AjaxObjects[ajaxAddressIndex].runAJAX();
}

function GetAddressWithType(Obj,Type)
{	
    //alert(Obj);	
	var Str;
	Str = Obj;
	
    //alert(Str.toUpperCase());
    Str=Str.toUpperCase()
    if (Str=='OTHER' || Str=='YES' || Str=='NO')
    {
		if (Type == 'Dep')
		{
			document.getElementById("ctl00_SA_YellowCab_Content_txt_Dep_houseno").value = '';
			document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_Street").value = '';
			document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUpAddr_Apt_No").value = '';
			document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_City").value = '';			
			document.getElementById("ctl00_SA_YellowCab_Content_drp_Dep_State").value = '0';
			document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_Zip").value = '';
		}
		else
		{
			document.getElementById("ctl00_SA_YellowCab_Content_txt_Dest_houseno").value = '';
			document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_Street").value = '';
			document.getElementById("ctl00_SA_YellowCab_Content_Txt_DestAddr_AptNo").value = '';
			document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_City").value = '';			
			document.getElementById("ctl00_SA_YellowCab_Content_drp_Dest_State").value = '0';
			document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_Zip").value = '';
	    }
	    Str='';
		return true;
    }
    else
    {
		GetAddress('GetAddressValues.aspx?addr_type='+Str,Type)
		Str='';
		return true;
	}
    
    
}

function CheckPreferredCabNo(evt,id) 
{
    if(evt.which!=0)
    {
        var charCode = (evt.which) ? evt.which : evt.keyCode
        if (charCode == '32')
        {
            document.getElementById(id).focus();
            return false;
        }
        else
        {
            var charCode = (evt.which) ? evt.which : event.keyCode
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
                return true;
        }
    }
}
var timer = 8000;
var timer_flag = true;
function blinktext() {
	if(timer_flag) {
		document.getElementById("ctl00_SA_YellowCab_Content_Div_Reason").style.display = "";
		timer_flag = false;
		timer = 8000;
	} else {
		document.getElementById("ctl00_SA_YellowCab_Content_Div_Reason").style.display = "none";
		timer_flag = true;
		timer = 2000;
	}
	timer_event = setTimeout("blinktext()",timer);
}

function Trim(s) {
  while ((s.substring(0,1) == ' ') || (s.substring(0,1) == '\n') || (s.substring(0,1) == '\r')) {
	s = s.substring(1,s.length);
  }
  while ((s.substring(s.length-1,s.length) == ' ') || (s.substring(s.length-1,s.length) == '\n') || (s.substring(s.length-1,s.length) == '\r')) {
	s = s.substring(0,s.length-1);
  }
  return s;
}
var timer = 8000;
var timer_flag = true;
function blinktext() {
	if(timer_flag) {
		document.getElementById("ctl00_SA_YellowCab_Content_Div_Reason").style.display = "";
		timer_flag = false;
		timer = 8000;
	} else {
		document.getElementById("ctl00_SA_YellowCab_Content_Div_Reason").style.display = "none";
		timer_flag = true;
		timer = 2000;
	}
	timer_event = setTimeout("blinktext()",timer);
}

function Trim(s) {
  while ((s.substring(0,1) == ' ') || (s.substring(0,1) == '\n') || (s.substring(0,1) == '\r')) {
	s = s.substring(1,s.length);
  }
  while ((s.substring(s.length-1,s.length) == ' ') || (s.substring(s.length-1,s.length) == '\n') || (s.substring(s.length-1,s.length) == '\r')) {
	s = s.substring(0,s.length-1);
  }
  return s;
}

function ShowContent_FareEstimator(divId, ajaxIndex2, url, Type) {   
            
    var returnvalue = AjaxObjects2[ajaxIndex2].response;
	var getvalue2 = returnvalue.split("||");
	var control = document.getElementById("ctl00_SA_YellowCab_Content_blockedcontent");
	var GetLandMarkName;
	if (document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value!='undefined')
	{
		GetLandMarkName = document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value;
	}
	 var Hid_IsBlocked= '';	
	 document.getElementById("ctl00_SA_YellowCab_Content_Hid_IsBlocked").value=''
	if (returnvalue != ""){

	    if (Type == 'Dep')
	    { 
	        if(getvalue2[5]=='True')
	        {	 			
				//alert(GetLandMarkName);            
				           
                reason=getvalue2[6];
                Hid_IsBlocked= getvalue2[5];
                       
                document.getElementById("ctl00_SA_YellowCab_Content_Hid_IsBlocked").value=Hid_IsBlocked;
                
                if (GetLandMarkName!='' && GetLandMarkName !='undefined')
                {		                    	        
					//document.getElementById("ctl00_SA_YellowCab_Content_Div_Reason").innerHTML = "Landmark Name : " + GetLandMarkName + "<br>" +  reason ;   
					//document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value = '';   
				}
                
		        
		        document.getElementById("ctl00_SA_YellowCab_Content_Div_Reason").innerHTML = '';
		        document.getElementById("ctl00_SA_YellowCab_Content_txt_Dep_houseno").value = getvalue2[0];
		        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_Street").value = getvalue2[1];
		        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_City").value = getvalue2[2];			
		        document.getElementById("ctl00_SA_YellowCab_Content_drp_Dep_State").value = getvalue2[3];
		        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_Zip").value = getvalue2[4];
		      
		       				        
	        }
	        else
	        {			      
				//alert('no');      
				//alert(GetLandMarkName);      
				if (document.getElementById("ctl00_SA_YellowCab_Content_blockedcontent"))
				{
					document.getElementById("ctl00_SA_YellowCab_Content_blockedcontent").style.display = "";
				}
				
	            document.getElementById("ctl00_SA_YellowCab_Content_Div_Reason").innerHTML = '';
		        document.getElementById("ctl00_SA_YellowCab_Content_txt_Dep_houseno").value = getvalue2[0];
		        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_Street").value = getvalue2[1];
//				    document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_City").value = getvalue2[2];			
		        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_City").value = getvalue2[2];			
		        document.getElementById("ctl00_SA_YellowCab_Content_drp_Dep_State").value = getvalue2[3];
		        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dep_Zip").value = getvalue2[4];
		        if (document.getElementById("ctl00_SA_YellowCab_Content_lblInfo"))
		        {
					//document.getElementById("ctl00_SA_YellowCab_Content_lblInfo").innerHTML = '';   
					document.getElementById("ctl00_SA_YellowCab_Content_lblInfo").style.display = "none";  
				}
		        //document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value = GetLandMarkName;
		     }

	    }
	    else
	    {
			
	            document.getElementById("ctl00_SA_YellowCab_Content_txt_Dest_houseno").value = getvalue2[0];
		        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_Street").value = getvalue2[1];
//				    document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_City").value = getvalue2[2];			
		        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_City").value = getvalue2[2];			
		        document.getElementById("ctl00_SA_YellowCab_Content_drp_Dest_State").value = getvalue2[3];
		        document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_Zip").value = getvalue2[4];	
		        document.getElementById("ctl00_SA_YellowCab_Content_lbldest_img").value = '';
		        document.getElementById("ctl00_SA_YellowCab_Content_lbldept_img").value = '';    
	    }
		    
	} 

    if (enableCache2) {
        jsCache2[url] = AjaxObjects2[ajaxIndex2].response;
    }
    AjaxObjects2[ajaxIndex2] = false;
    document.getElementById(divId).style.display = '';
    //showEffect:Effect.SlideDown, hideEffect:Effect.Fade, showEffectOptions: {duration:0}}
    //Dialog.info($("content").innerHTML, { className: "alphacube", width: 450, showEffect: Effect.SlideDown, hideEffect: Effect.Fade, showEffectOptions: { duration: 0 }, id: "d" + index })
    if (Trim(document.getElementById("ctl00_SA_YellowCab_Content_Div_Reason").innerHTML)!='')
    {
		document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value = ''; 
    }
    else
    {
		document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value = GetLandMarkName; 
    } 
}      


function GetAjaxDetails_FareEstimator(divId, url, Type) 
{        
	//alert(divId);
	if (Type == 'Dep')
	{
	     if (document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value == ""){
	        closediv()
	        return false;
	    }
		url = url + escape(document.getElementById("ctl00_SA_YellowCab_Content_Txt_PickUp_LandMark").value);
	}
	else
	{
	     if (document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_LandMark").value == ""){
	        closediv()
	        return false;
	    }
		url = url + escape(document.getElementById("ctl00_SA_YellowCab_Content_Txt_Dest_LandMark").value);
	}
	
	//alert(url);
    if (enableCache2 && jsCache2[url]) {
        document.getElementById(divId).innerHTML = jsCache2[url];
        return;
    }

    var ajaxIndex2 = AjaxObjects2.length;
    //document.getElementById(divId).innerHTML = '<img src=images/movewait.gif width=16 height=16 hspace=10 vspace=10 />';
    AjaxObjects2[ajaxIndex2] = new sack();
    AjaxObjects2[ajaxIndex2].requestFile = url;
    AjaxObjects2[ajaxIndex2].onCompletion = function() { ShowContent_FareEstimator(divId, ajaxIndex2, url, Type); };
    AjaxObjects2[ajaxIndex2].runAJAX();
}

