function enviado(cosa) {
	alert(document.getElementById(cosa).offsetHeight);
	setInterval("moure('"+cosa+"')",10)// cada quan s'ha de cridar la funció
}
function moure(nomCapa){
//	if(parseInt(document.getElementById(nomCapa).style.height)<400) {
	if(true) {
		valor=document.getElementById(nomCapa).offsetHeight;
		//alert(nomCapa);
		numero=parseInt(valor);
		numero-=5;
		document.getElementById('pichi').innerHTML = numero;
		document.getElementById(nomCapa).style.pixelHeight=numero;
	} else document.getElementById(nomCapa).style.overflow="auto";
}

function cierra(cosa) {
	document.getElementById(cosa).innerHTML="";
}
function envia(nomCapa) {
	document.getElementById(nomCapa).style.display = "none";
	document.getElementById('msg').style.display ="block";
}

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 

function icono(){
da_image = new Image();
da_image.src="favicon.ico";
}


