function openWin(coll,img_w,img_h, title) 
{
resiz = new String("'resizable=no,width=" +img_w+ ",height=" +img_h+"'");
 newin = window.open("", "newin",resiz);
 tit = new String ("alt='"+title+"'");
 newin.document.writeln("<html><body topmargin='0' leftmargin='0' marginheight='0' marginwidth='0' onblur='close()'><img src='"+coll+"' "+tit+"></body></html>"); 
 newin.document.close()
 newin.focus();
}

function UpdateCounter(maxInput, formName, fieldName, fieldCounter)
{		
	var fieldOne = eval("document."+formName+"."+fieldName) ;
	var fieldTwo = eval("document."+formName+"."+fieldCounter) ;
	var intValore = fieldOne.value.length;
	if (intValore > maxInput) {
		fieldOne.value = fieldOne.value.substring(0,maxInput);
		Disp = 0 
	} else { 
		Disp = maxInput - intValore;
	}
	fieldTwo.value = Disp;
}

