 var all_forms = new Array('parking_form','hotel_form','lounge_form');
	function show_form(which_form){
		for(f in all_forms){
			doc_f = document.getElementById(all_forms[f]);
			if(all_forms[f] != which_form){
				doc_f.className = "inactive_form";
				document.getElementById(all_forms[f]+"_tab").className = "inactive_tab";
			}
		}
		if(which_form != 'lounge_form')
			switch_IDs();
		document.getElementById(which_form).className = "";
		document.getElementById(which_form+"_tab").className = "active_tab";
	}
	
	function ext_links(){
		var tc = document.getElementById("t_and_c");
		var pp = document.getElementById("pp");
		if(tc != null) tc.setAttribute("target","_blank");
		if(pp != null) pp.setAttribute("target","_blank");
	}
	
	function switch_IDs(){
		var ids = new Array("ddd", "ddm", "ddy", "rdd", "rdm", "rdy");
		for(var i in ids){
			var id = ids[i];
			var orig_ele = document.getElementById(id);
			var new_ele = document.getElementById(id+"2");
			if(orig_ele != null && new_ele != null){
				orig_ele.removeAttribute("id");
				orig_ele.removeAttribute("name");
				new_ele.setAttribute("id",id);
				new_ele.setAttribute("name", id);
				orig_ele.setAttribute("id",id+"2");
				orig_ele.setAttribute("name", id+"2");
			}
		}
	}
	
	function apCheck(formObj){
		if(formObj.ap.value == ""){
			alert("Please select an airport.");
			return false;
		}
	}
    
    function ddTod(){
        var mon = document.getElementById("m");
        if(mon != null){
            for(i = 0; i< mon.options.length; i++){
                switch(mon.options[i].value){
                    case "01":
                        mon[i].value = "Jan";
                        break;
                    case "02":
                        mon[i].value = "Feb";
                        break;
                    case "03":
                        mon[i].value = "Mar";
                        break;
                    case "04":
                        mon[i].value = "Apr";
                        break;
                    case "05":
                        mon[i].value = "May";
                        break;
                    case "06":
                        mon[i].value = "Jun";
                        break;
                    case "07":
                        mon[i].value = "Jul";
                        break;
                    case "08":
                        mon[i].value = "Aug";
                        break;
                    case "09":
                        mon[i].value = "Sep";
                        break;
                    case "10":
                        mon[i].value = "Oct";
                        break;
                    case "11":
                        mon[i].value = "Nov";
                        break;
                    case "12":
                        mon[i].value = "Dec";
                        break;
                    default:
                        mon[i].value = "Jan";
                        break;
                }
            }
        }
	}
	
	  //<![CDATA[

  function load() {
   if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById("map"));
    map.setCenter(new GLatLng(52.454545,-1.746311), 13);
		   map.addControl(new GLargeMapControl());
   map.addControl(new GMapTypeControl());
   }
  }

  //]]>