function init()
{

	if (searchMode == "weekly")
	{
		setCalendarDates(1)
	}
	else
	{
		setCalendarDates(0)
	}

    // initialize    
    if (!(queryString("city") == "false"))
    {
        city = textReplace(unescape(queryString("city")), "+", " ")
        zip = textReplace(unescape(queryString("zip")), "+", " ")
    	
	    var combo = ucSearch_RadComboBox1;
	    combo.SetText(city)
	    combo.SetValue(city +"--"  +zip)
	}
	
	// set the departure date to the query string value
	departDateQS = queryString("departdate")
	
	// check that the query string is not empty
	if (departDateQS != "false")
	    document.getElementById("ucSearch_txtEndDate").value = queryString("departdate")
	
}