function simLink(linkWhat) {
	var myTag = document.getElementById(linkWhat);
	{
		myTag.style.color  = "blue";
		myTag.style.textDecoration  = "underline";
		myTag.style.cursor  = "hand";
	}
}

function unSimLink(linkWhat) {
	var myTag = document.getElementById(linkWhat);
	{
		myTag.style.color  = "";
		myTag.style.textDecoration  = "";
		myTag.style.cursor  = "";
	}
}

function hide(hideWhat) { 
	var myTag = document.getElementById(hideWhat);
	{
		myTag.style.display  = "none";
	}
}

function show(showWhat) { 
	var myTag = document.getElementById(showWhat);
	{
		myTag.style.display  = "";
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  var win = window.open(theURL,winName,features);
  win.focus();
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

//count characters left in a form field
function textCounter(field, countfield, maxlimit) {
	
	if (field.value.length > maxlimit) // if too long...this trims it!
		field.value = field.value.substring(0, maxlimit);
	else // otherwise, update 'characters left' counter
		countfield.value = maxlimit - field.value.length;
}