
// JavaScript Document
function lluvias(URL){
   window.open(URL,"Reporte_de_lluvias","width=1024,height=700,scrollbars=yes,menubar=no")
}

function pdf(URL,TITULO){
			window.open(URL,TITULO,"scrollbars,resizable,width=1024,height=700,menubar=false,location=false,top=20,left=80")
}
function regform_Validator(f) {
	if (f.p.value.length < 2) {
		  alert("Inserte la palabra clave.");
		  f.p.focus();
		  return(false);
	}
}

function contratos(URL,TITULO){
   window.open(URL,TITULO,"width=1024,height=600,scrollbars=yes,menubar=no")
}

   function emergente(URL,TITULO){
   window.open(URL,TITULO,"width=700,height=700,scrollbars=yes,menubar=no")
}

/*function noticias(URL,TITULO){
   window.open(URL,TITULO,"width=700,height=600,scrollbars=yes,menubar=no")
}
*/
   function noticias(URL){
   window.open(URL,"ALGO MAS","width=700,height=600,scrollbars=yes,menubar=no")
}

   
   function quejas(URL,TITULO){
   window.open(URL,TITULO,"width=700,height=550,scrollbars=no,menubar=no")
}

function verMapa(img,tit,x,y){

	wincal=window.open("",tit, "toolbar=0,status=0,menubar=0,fullscreen=no,width="+(x+20)+",height="+y+",resizable=0,top=200,left=200");
	doc=wincal.document;
	doc.open();

		doc.writeln("<html><head><link rel=\"stylesheet\" href=\"../estilos/sacm.css\"><title>"+tit+"</title></head>");
	doc.writeln("<body  ><img name=\"imagen\" src=\"../img/mapas/"+img+"\"><br><a href=\"javascript:window.close()\" class=\"azulpeque\">CERRAR</a></body></html>"); 
	doc.close();

 //window.open(img,tit,"width="+(x+20)+",height="+y+",scrollbars=no,menubar=no,fullscreen=no, resizable=0,top=200,letf=200")

}

