switch ( HttpManager.Document.Forms.getType("isc", "listingtype") ){

	case HttpManager.Document.Forms.elementTypes.htmlRadio:
		HttpManager.Document.Forms.HtmlRadio.SetValue("isc","listingtype", HttpManager.Request.QueryString("listingtype") );
		
		PropertySearch_ListingType_OnSelectionChange(HttpManager.Document.Forms.HtmlRadio.GetSelectedItem("isc","listingtype"),
																							HttpManager.Document.GetObject("categoryID").value, 
																							document.isc.igid.value, 
																							document.isc.egid.value, 
																							document.isc.imgid.value,
																							document.isc.emgid.value );														
		var pnlLocation = document.getElementById("pnlLocation");	
		//generateLocationBox( pnlLocation,  HttpManager.Document.Forms.HtmlRadio.GetSelectedItem("isc","listingtype").value);
		break;
}

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.getType("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.Browser.events.addHandler("onload", window, function(){ 

	var gbsIds = [];
	if ( HttpManager.Request.QueryString("igid").length > 0 ){
		gbsIds = HttpManager.Request.QueryString("igid").split(",");
		for ( var i = 0; i < document.getElementsByTagName("*").igid.length; i ++ ){
			var oitem = document.getElementsByTagName("*").igid[i];
			for ( var ii = 0; ii < gbsIds.length; ii ++ ){
				if ( gbsIds[ii] == oitem.value ){
					oitem.click();
				}
			}
		}
	}

} );