function getSuburbList(){
document.form1.suburb_id.options[0].text="Loading......";
value=document.form1.area_id.value;
frames['process_frame1'].location.href="./java.php?toget=suburbs&area_id="+value;
}

function getPriceRange(){
document.form1.type_pricerange.options[0].text="Loading......";
type=document.form1.type_id.value;
frames['process_frame2'].location.href="./java.php?type="+ type + "&toget=pricerange";
}

function getCategory(){
document.form1.category.options[0].text="Loading......";
type=document.form1.type_id.value;
frames['process_frame3'].location.href="./java.php?type="+ type + "&toget=category";
}

function populatePriceCats(){
getPriceRange();
getCategory();
}


function OpenSpecWindow(url, width, height){
	window.open(url,'',"left=200,top=100,width=" + width + ",height=" + height +", status=no,menubar=no,resizable,directories=no,location=no , scrollbars");
	}
	
function confirmMultipleDelete(msg){
var is_confirmed = confirm(msg);
    if (!is_confirmed) {
        return false;
		}
}	
	
function calendar(NAVURL,FNAME,FFIELD){
	win="";
			NEWNAVURL=NAVURL+"?fname="+FNAME+"&ffield="+FFIELD;
			if (win && win.open && !win.closed){
			win.focus();
			win.document.location.href=NEWNAVURL;
			}

win=window.open(NEWNAVURL,'calender',"width=243,height=230,left=200,top=100,toolbar=no,scrollbars=no,menubar=0;statusbar=0;border=0;frameborder=0");

// Add this
// <button class="CalButton" onclick= "calendar('/calendar_inc/calendar_server_date.php','FORM NAME','FIELD NAME')">: :</button>
}

function navto(url){
	window.location.href=url;
}