function builde(x, linkwords, classname) {
	var e, dom, td;
	dom = 'clinicrooms';
	td = 'com';
	e = x + '@' + dom + '.' + td;
	if (linkwords != '') {
		document.write('<a href="mailto:' + e + '?subject=Enquiry from Website" class="' + classname + '">' + linkwords + '</a>');
	} else {
		document.write('<a href="mailto:' + e + '?subject=Enquiry from Website" 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;
}
