function OKCancel(question) {
	if (confirm(question)) {
		return true;
	} else {
		return false;
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function builde(x, linkwords, classname, subject) {
	var e, dom, td;
	dom = 'peterbrownneac';
	td = 'com';
	e = x + '@' + dom + '.' + td;
	
	if (subject == ''){
		subject = 'Enquiry from Website'
	}
	
	if (linkwords != '') {
		document.write('<a href="mailto:' + e + '?subject=' + subject + '" class="' + classname + '">' + linkwords + '</a>');
	} else {
		document.write('<a href="mailto:' + e + '?subject=' + subject + '" class="' + classname + '">' + e + '</a>');
	}
}

function textCounter(field,cntfield,maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
//cntfield.value = 'Fred'
cntfield.value = maxlimit - field.value.length;
//document.getElementById('PropertyDescShortCounter').value = maxlimit - field.value.length;
}

function textCounterId(field,cntfield,maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
cntfield.value = maxlimit - field.value.length;
//document.getElementById('PropertyDescShortCounter').value = maxlimit - field.value.length;
}

function confirmThis(i, gotoPage) {
	var message=new Array();
	message[0]="Are you sure you want to delete this record?";

	var r=confirm(message[i]);
	if (r==true) {
		window.location = gotoPage;
	} else {
		return false;
	}
}

