/**
 * DHTML textbox character counter (IE4+) script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
 */

function taLimit() {
	var taObj=event.srcElement;
	if (taObj.value.length==taObj.maxLength*1) return false;
}

function taCount(visCnt) { 
	var taObj=event.srcElement;
	if (taObj.value.length>taObj.maxLength*1) taObj.value=taObj.value.substring(0,taObj.maxLength*1);
	if (visCnt) visCnt.innerText=taObj.maxLength-taObj.value.length;
}
<!--
function beginrefresh() {
	if (!document.images) {
		return;
	}
	if (parselimit == 1) {
		window.location.reload();
	} else { 
		parselimit -= 1;
		curmin = Math.floor(parselimit / 60);
		cursec = parselimit % 60;
		if (curmin != 0) {
			curtime = curmin + " minutos y " + cursec + " segundos para la actualizacion de la pagina.";
		} else {
			curtime = cursec + " segundos para la actualizacion de la pagina.";
			window.status = curtime;
			setTimeout("beginrefresh()", 1000);
		}
	}
}
var procedenciaValida = new Array(
"listreview",
"listassign",
"listbudget",
"listdelivery"
);
var ok = false;
for(i in procedenciaValida) {
	if(document.location.href.indexOf(procedenciaValida[i]) > -1) {
		ok = true; /* Hemos encontrado un referer bueno, ponemos ok a true */ 
	}
}
if (ok) {
	//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
	var limit = "1:30";
	if (document.images) {
		var parselimit = limit.split(":");
		parselimit = parselimit[0] * 60 + parselimit[1] * 1;
	}
	window.onload = beginrefresh();
}
//-->

