﻿	function openCalendar(FormElement){
	   var calendarwindow;
	   url = "calendar.htm?formname=form1&amp;formelement=" + FormElement;
	   calendarwindow = window.open(url,"thewindow","toolbar=no,LEFT=300,TOP=250,WIDTH=170,HEIGHT=140,status=no,scrollbars=no,resize=no,menubar=no");
	   calendarwindow.focus();
	}
	
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////		
	
	function FormHandler(idName) {
	    var URL = document.getElementById(idName).options[document.getElementById(idName).selectedIndex].value;
	    if(URL != ""){
			document.location = URL;
		}
	}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////	
/*
    var Category=new Array();
    Category[0] = new Option("--------------All Locations--------------", "");
    Category[1] = new Option("International Drive", "Combo1");
    Category[2] = new Option("Lake Buena Vista", "Combo2");
    Category[3] = new Option("Universal Boulevard", "Combo3");

    var Combo1=new Array();
    Combo1[0] = new Option("SELECT A HOTEL ", "");
    Combo1[1] = new Option("Rosen Centre", "http://www.rosencentre.com");
    Combo1[2] = new Option("Rosen Plaza", "http://www.rosenplaza.com");
    Combo1[3] = new Option("Rosen Quality Inn International", "http://orlandoqualityinn.com");
    Combo1[4] = new Option("Rosen Quality Inn Plaza", "http://qualityinn-orlando.com");
    Combo1[5] = new Option("Rosen Rodeway Inn International", "http://rodewayinnorlando.com");
    Combo1[6] = new Option("BACK TO LOCATIONS", "");

    var Combo2=new Array();
    Combo2[0] = new Option("SELECT A HOTEL ", "");
    Combo2[1] = new Option("Rosen Comfort Inn Lake Buena Vista", "http://www.comfortinnorlando.com");
    Combo2[2] = new Option("BACK TO LOCATIONS", "");

    var Combo3=new Array();
    Combo3[0] = new Option("SELECT A HOTEL ", "");
    Combo3[1] = new Option("Rosen Shingle Creek", "http://www.rosenshinglecreek.com");
    Combo3[2] = new Option("BACK TO LOCATIONS", "");

    var CurLevel=1;
    //var CacheObj=document.FindAHotel2.HotelID2;
    var CacheObj = document.getElementById("HotelID2");
    
    function Populate(x) {
        for (m=CacheObj.options.length-1;m>0;m--) {
            CacheObj.options[m]=null;
            selectedarray=eval(x);
            }
        for (i=0;i<selectedarray.length;i++) {
            CacheObj.options[i]=new Option(selectedarray[i].text,selectedarray[i].value);
            CacheObj.options[0].selected=true;
            }
    }

    function DisplayOption(){
        if (CurLevel==1) {
            Populate(CacheObj.options[CacheObj.selectedIndex].value);
            CurLevel=2;
        }
        else {
            GoThere();
        }
    }

    function GoThere() {
        if (CurLevel==2) {
            if (CacheObj.selectedIndex==CacheObj.options.length-1) {
                CurLevel=1;
                Populate(Category);
            }
            else {
                location=CacheObj.options[CacheObj.selectedIndex].value;
            }
        }
    }

    //SHOW categories by default
    Populate(Category); */