<!--
function builde(x, linkwords, classname, subject) {
	var e, dom, td;
	dom = 'newenglishartclub';
	td = 'co.uk';
	e = x + '@' + dom + '.' + td;
	
	if (subject == ''){
		subject = 'Enquiry from NEAC 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 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 addBookmark() {
bookmarkURL = "http://www.newenglishartclub.co.uk/drawing_school.asp"
bookmarkTitle = "NEAC Drawing School"

if (document.all) {
	window.external.AddFavorite(bookmarkURL,bookmarkTitle)
	}
}

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;
}
//-->
