// scripts.js

function popWindow(choice,myWidth,myHeight,myScrollbars,myTop,myLeft,myMenubar) {
window.open (choice, "","width="+myWidth+",height="+myHeight+",scrollbars="+myScrollbars+",top="+myTop+",left="+myLeft+",menubar="+myMenubar+",bgcolor=#ffffff,resizable=yes");
}
function showDiv(div_info) {
	document.getElementById(div_info).style.display = 'block';
}
function hideDiv(div_info) {
	document.getElementById(div_info).style.display = 'none';
}
function dispStatus(text) {
	if ( ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3)) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) > 3)) ) {
		window.status = text;
	}
}

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

function loading() {
  document.getElementById('loading').style.display = 'block';
}
