function openWin(coll,img_h,img_w, 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 countDown(campo, chars, counter) {

	if(campo.value.length >= chars) {
		campo.value=campo.value.substring(0,chars);
	}
	var left = (chars-parseInt(campo.value.length));
	document.getElementById(counter).innerHTML=left;
}
