<!-- suppress javascript errors -->
<!-- Begin
function blockError(){return true;}

function BusinessSearchValidate() {
   var x = document.getElementById("h77bl59")
   var str = x.value
   var len = str.length
   
   var pos = str.indexOf("%")
   while (pos==0) {
      if (len>1) {
        str = str.substr(1,len-1)
     } else {
       str = ""
     }
     x.value = str
     len = str.length
     pos = str.indexOf("%")
   }
   while (len>0 && (str.charAt(len-1)=="%" || str.charAt(len-1)==" ")) {
      str = str.substr(0,len-1)
     x.value = str
     len = str.length
   }
   str = str.toLowerCase()
   if (str.indexOf("keyword")>=0) {
      alert("LISTINGS SEARCH:\n\nPlease replace the [keyword] with your search word or phrase!")
     x.select()
      return false
   }
   else {
      if (len<=2) {
        alert("LISTINGS SEARCH:\n\nPlease enter more than 2 characters for search word or phrase!")
      x.focus()
      return false
     }
   }
}

function ContentSearchValidate() {
//   var x = document.getElementById("keyword")
   var x = document.getElementById("h77bl59")
   var str = x.value
   var len = str.length
   
   var pos = str.indexOf("%")
   while (pos==0) {
      if (len>1) {
        str = str.substr(1,len-1)
     } else {
       str = ""
     }
     x.value = str
     len = str.length
     pos = str.indexOf("%")
   }
   while (len>0 && (str.charAt(len-1)=="%" || str.charAt(len-1)==" ")) {
      str = str.substr(0,len-1)
     x.value = str
     len = str.length
   }
   str = str.toLowerCase()
   if (str.indexOf("topic")>=0) {
      alert("SITE SEARCH:\n\nPlease replace the [topic] with your search word or phrase!")
     x.select()
      return false
   }
   else {
      if (len<=2) {
        alert("SITE SEARCH:\n\nPlease enter more than 2 characters for search word or phrase!")
      x.focus()
      return false
     }
   }
}

function SearchValidate() {
   var x = document.getElementById("h77bl59")
   var str = x.value
   var len = str.length
   
   var pos = str.indexOf("%")
   while (pos==0) {
      if (len>1) {
        str = str.substr(1,len-1)
     } else {
       str = ""
     }
     x.value = str
     len = str.length
     pos = str.indexOf("%")
   }
   while (len>0 && (str.charAt(len-1)=="%" || str.charAt(len-1)==" ")) {
      str = str.substr(0,len-1)
     x.value = str
     len = str.length
   }
   if (len<=2) {
      alert("SEARCH:\n\nPlease enter more than 2 characters for search word or phrase!")
      x.focus()
      return false
   }
   str = str.toLowerCase()
   if (str.indexOf("keyword")>=0) {
      alert("SEARCH:\n\nPlease replace the [keyword] with your search word or phrase!")
      x.select()
      return false
   }
   if (str.indexOf("topic")>=0) {
      alert("SEARCH:\n\nPlease replace the [topic] with your search word or phrase!")
      x.select()
      return false
   }
   return true
}

function ContentSearch() {
   var x = document.getElementById("QuickSearch")
   var y = x.action
   //alert("Original action: " + y)
   if (SearchValidate()) {
       x.action = y.replace(/SiteSearch/i,"Searchresults2")
       //alert("Current action: " + x.action)
       x.submit()
   }
   else {
       if (y.indexOf("SiteSearch")<0)
          x.action = y.replace(/Searchresults2/i,"SiteSearch")
       //alert("Current action: " + x.action)
   }  
}

window.onerror = blockError;
//  End -->

function removetopframe() {
if (top != self) 
   top.location=self.location;
}
// End -->

