// JavaScript Document
function OpenNewSite(newLocation) {
    newwin=window.open(newLocation, "dispwin","width=800,height=800,scrollbars,resizable,menubar,location");
}
/***********************************************
* Textarea Maxlength script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}

function QuickSearch() {
		var form = document.quicksearch;
		var bRequired = true;
		if (!bRequired) return false;
		//form.province_sel.value = form.province.selectedIndex;
		//form.type_sel.value = form.type.selectedIndex;
		form.submit();
}
function txtCount(f, countf, max) {
  if (f.value.length > max) f.value = f.value.substring(0, max);
  else countf.value = max - f.value.length;
}
