<!--

function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,copyhistory=no,resizable=1,width=400,height=500');");
}

function popUpWin(theurl,xwidth,yheight) {
   newWin = window.open("", 'new','height='+yheight+',width='+xwidth+',scrollbars=yes,status=yes,toolbar=no,copyhistory=no')
   newWin.location.href = theurl;
   newWin.focus();
}

function textCounter(field, cntfield, maxlimit) {
	if (field.value.length > maxlimit) {
		field.value = field.value.substring(0, maxlimit);
	} else {
		cntfield.value = maxlimit - field.value.length;
	}
}

function pageRedirect(targ,selObj,restore) {
	if (selObj.options[selObj.selectedIndex].value != "0")
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
}

//-->
