<!--
function builde(x, linkwords, classname, subject) {
	var e, dom, td;
	dom = 'westernmech';
	td = 'co.uk';
	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;
}
//-->
