
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 = field.value.length;
}



function HighlightAll(theField) {
var copytoclip=1;

	var tempval=eval("document."+theField)
	tempval.focus()
	tempval.select()
		if (document.all&&copytoclip==1){
			therange=tempval.createTextRange()
			therange.execCommand("Copy")
			window.status="Contents highlighted and copied to clipboard!"
			setTimeout("window.status=''",1800)
		}
}
