function CheckLength(MessageMax) {	     
        alert("M&aacute;ximo n&uacute;mero de caracteres: " + MessageMax + "\nUtilizados: " + document.newsarea.post.value.length);
}
function abrir(imagen){
		alto=460;
		ancho=720;
		var pizquierda= (screen.availWidth/2)-(ancho/2);
		var parriba= (screen.availHeight/2)-(alto/2);
		var dimensiones= "height=" + alto + ",width=" + ancho + ",left=" + pizquierda + ",top=" + parriba;
		nv=open("","NewWindow",dimensiones);
		titulo="Imagen de la: " + imagen;
		nv.document.write("<HEAD><TITLE>",titulo,"</TITLE></HEAD>");
		nv.document.bgColor="black";
		nv.document.write("<center><IMG SRC=camping/",imagen, ".jpg></center>");
		nv.document.write("<CENTER><FORM><INPUT TYPE='BUTTON' VALUE='Cerrar'" + "onClick='self.close()'></FORM><CENTER>");
		nv.opener.close();
		nv.focus();
}
function ventanaSecundaria (URL,ancho,alto){
	var pizquierda= (screen.availWidth/2)-(ancho/2);
	var parriba= (screen.availHeight/2)-(alto/2);
	var dimensiones= "height=" + alto + ",width=" + ancho + ",left=" + pizquierda + ",top=" + parriba;
	nv=open(URL,"ventana1",dimensiones);
}
function high(which2){
	theobject= which2;
	highlighting= setInterval("highlightit(theobject)",50);	
}
function low(which2){
	clearInterval(highlighting);
	which2.filters.alpha.opacity=50;
}
function highlightit(cur2){
	if(cur2.filters.alpha.opacity<100)
		cur2.filters.alpha.opacity+=5
	else if(window.highlighting)
		clearInterval(highlighting)
}
function cortina(){ 
    	clip_bottom += 1 
    	if (clip_bottom==maximo_clip_bottom){ 
       		clip_bottom = 0 
   			imagen_actual += 1 
       		if (imagen_actual == capas_images.length){ 
          		imagen_actual=0 
       		} 
      		xZIndex(capas_images[imagen_actual],contador_zindex) 
       		contador_zindex ++ 
    	} 
   		xClip (capas_images[imagen_actual], clip_top, clip_right, clip_bottom, clip_left) 
    	setTimeout("cortina()",velocidad) 
}
function ocultarCorreo(nombre, dominio, loQueVe, clase, asunto, alt){
	conector="@"
	document.write("<a class=" + clase + " href='mailto:" + nombre + conector + dominio + "?subject=" + asunto +"' title=" + alt + ">" + loQueVe + "</a>")
}
