//function SiteSearchPanel_ListingType_onChange(listingType){
//	PropertySearch_ListingType_OnSelectionChange(listingType, 
//																		HttpManager.Document.GetObject("categoryID").value, 
//																		document.isc.igid.value, 
//																		document.isc.egid.value, 
//																		document.isc.imgid.value, 
//																		document.isc.emgid.value );
//}


//HttpManager.Document.Forms.HtmlRadio.SetValue( document.isc.ListingType , HttpManager.Request.QueryString("listingtype") );
//SiteSearchPanel_ListingType_onChange( HttpManager.Document.Forms.HtmlRadio.GetCheckedItem( document.isc.ListingType )  );
HttpManager.Document.Forms.HtmlSelect.SelectedValue("isc","ListingType", HttpManager.Request.QueryString("listingtype") );
PropertySearch_ListingType_OnSelectionChange(document.isc.ListingType);




HttpManager.Document.Forms.HtmlSelect.SelectedValue("isc","minprice", HttpManager.Request.QueryString("minprice") );
HttpManager.Document.Forms.HtmlSelect.SelectedValue("isc","maxprice", HttpManager.Request.QueryString("maxprice") );
HttpManager.Document.Forms.HtmlSelect.SelectedValue("isc","pt", HttpManager.Request.QueryString("pt") );
HttpManager.Document.Forms.HtmlSelect.SelectedValue("isc","bedrooms", HttpManager.Request.QueryString("bedrooms") );
HttpManager.Document.Forms.HtmlSelect.SelectedValue("isc","area", HttpManager.Request.QueryString("area") );
HttpManager.Document.Forms.HtmlSelect.SelectedValue("isc","location", HttpManager.Request.QueryString("location") );
HttpManager.Document.GetObject("isc", "UMC", HttpManager.Request.QueryString("UMC") );
HttpManager.Document.Forms.HtmlSelect.SelectedValue("isc","igid", HttpManager.Request.QueryString("igid") );

//WK 15/07/2011 - Initialise search panel
if (HttpManager.Request.QueryString("categoryid") == 1 && HttpManager.Request.QueryString("listingtype") == 5){
	if ( document.getElementById("salesRadioButton") ){
		document.getElementById("salesRadioButton").checked = true;
		updateCategoryListingType(0);
	}


}else if (HttpManager.Request.QueryString("categoryid") == 1 && HttpManager.Request.QueryString("listingtype") == 6){
	if ( document.getElementById("lettingsRadioButton")){
		document.getElementById("lettingsRadioButton").checked = true;
		updateCategoryListingType(1);
	}


}else if (HttpManager.Request.QueryString("categoryid") == 2) {
	if ( document.getElementById("commercialRadioButton") ){
		document.getElementById("commercialRadioButton").checked = true;
		updateCategoryListingType(2);	
	}


//WK 15/07/2011 - Initialise search panel to seach "Residential Sales" by default
}else{
if ( document.getElementById("salesRadioButton") ){
	document.getElementById("salesRadioButton").checked = true;
	updateCategoryListingType(0);
}


}

HttpManager.Document.Forms.HtmlSelect.SelectedValue("isc","ListingType", HttpManager.Request.QueryString("listingtype") );
PropertySearch_ListingType_OnSelectionChange(document.isc.ListingType);
