function Login_focus(e,o){
if(o.firstTime){return}
o.firstTime=true
o.value=""
}

function myReset() {
    alert('Reset Form');
}

var newWin = null;
function popUp(strURL, strType, strHeight, strWidth) {
 if (newWin != null && !newWin.closed)
   newWin.close();
 var strOptions="";
 if (strType=="console")
   strOptions="resizable,height="+
     strHeight+",width="+strWidth;
 if (strType=="fixed")
   strOptions="status,height="+
     strHeight+",width="+strWidth;
 if (strType=="elastic")
   strOptions="toolbar,menubar,scrollbars,"+
     "resizable,location,height="+
     strHeight+",width="+strWidth;
 newWin = window.open(strURL, 'newWin', strOptions);
 newWin.focus();
}

function openWin(strURL, dWidth, dHeight){
	var popLeft = 0, popTop = 0;
	if(screen.width) popLeft = (screen.width - dWidth) / 2;
	if(screen.height) popTop = (screen.height - dHeight) / 2;

	newapp = open(strURL,"What_it_is","resizable=1,status=350,location=0,scrollbars=1,width=" + dWidth + ",height=" + dHeight + ",left=" + popLeft + ",top=" + popTop);
	if(navigator.appName == "Netscape")
		newapp.focus();
}

function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...this trims it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
countfield.value = maxlimit - field.value.length;
}
