function confirmLink(theLink, Msg)
{
    // Confirmation is not required in the configuration file
    // or browser is Opera (crappy js implementation)
	confirmMsg='';
    if (Msg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed = confirm(Msg);
    if (is_confirmed) {
        theLink.href += '&is_js_confirmed=1';
    }

    return is_confirmed;
} // end of the 'confirmLink()' function

function ResetForm(form){
  document.detailed.property_id.value ="";	
  document.detailed.location.options[0].selected=true;
  document.detailed.type.options[0].selected =true;
  document.detailed.min_price.value ="";
  document.detailed.max_price.value ="";
  document.detailed.rooms.value ="";
  document.detailed.min_sq.value ="";
  document.detailed.max_sq.value ="";	
}


