function foto(url){
	document.img.src=url;
}
var newwindow="";
function ver(sURL,ancho,alto){
 if (sURL!="") {
  if( newwindow != "" ) newwindow.close();
  newwindow=open(sURL,"El_Tiempo","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,status=yes,width="+ancho+",height="+alto+",top=30,left=30");
  newwindow.focus();
 }
 else window.alert("Debe de marcar un municipio");
}

function webcam(sURL,ancho,alto){
  if( newwindow != "" ) newwindow.close();
  newwindow=open(sURL,"WebCam","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,status=yes,width="+ancho+",height="+alto+",top=30,left=30");
  newwindow.focus();
}

function mostrar(div){
 document.getElementById("alo").style.visibility="hidden";
 document.getElementById("res").style.visibility="hidden";
 document.getElementById("act").style.visibility="hidden";
 document.getElementById(div).style.visibility="visible";
}
function cerrar(div){
 document.getElementById(div).style.visibility="hidden";
}

/*
function off(obj,n){
		var aux = eval("img"+n);
		obj.src = aux.src;
}
function on(obj,n){
		var aux = eval("m"+n);
		obj.src = aux.src;
}

function compEncuesta(){
	for( j=0;j<document.forms[0].length;j++ ){
			if( document.forms[0].item(j).type == "textarea"  document.forms[0].item(j).type == "text" ){
					if( document.forms[0].item(j).value != "" ){
							encuesta.submit();
							return;
					}
			}
			else{
					 if( document.forms[0].item(j).checked ){
					 		 encuesta.submit();
							 return;
					}
			}
	}
  window.alert("Debe de marcar al menos una respuesta");
}
*/
