
function Popup(popupURL) {
	var popup = window.open(popupURL,"ArticlePopup",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=640,height=520');
	if( navigator.appName.substring(0,8) == "Netscape" ){ popup.location = popupURL; }
}

function PopUp2(popupURL) {
	var popup = window.open(popupURL,"ArticlePopup",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=640,height=520');
	if( navigator.appName.substring(0,8) == "Netscape" ){ popup.location = popupURL; }
}

function popUp1(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=600,left = 340,top = 100');");
}

 function FormFocus(goForm, goField) {
  if (document.forms.length > 0) {
   document.forms[goForm].elements[goField].focus();
  }
 }

function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}
