function vendimia()
{
winsersoc=open("http://www.munisurco.gob.pe/distrito/otros/vendimia.pdf","Vendimia","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=1024,height=768,left=0,top=0")
}


function popup(url,name,ancho,alto){
window.open(url, name, 'width='+ancho+',height='+alto+'');
}

function openVentana(url,cont,x,y,scrolls) {
	win = window.open(url,cont,"status=no,toolbar=no,location=no,menu=-no,scrollbars="+scrolls+"yes,resizable=yes,width="+x+",height="+y+",top=10,left=10");
}

function openVentanaPlano(url,cont,x,y,scrolls,valor) {
	var url2=url+'?parametro='+valor;
	win = window.open(url2,cont,"status=no,toolbar=no,location=no,menu=-no,scrollbars="+scrolls+"yes,resizable=no,width="+x+",height="+y+",top=10,left=10");
}

function getVar(nomb){  
var url = document.location.href  
if ( url.indexOf(nomb) != -1 ) {  
	posiBeg = url.indexOf("=", url.indexOf(nomb))  
	barre = url.indexOf("&", posiBeg)  
	posiEnd = (barre != -1 ? barre : url.length)  
	var parRecibido=url.substring(posiBeg + 1,posiEnd);
	document.dato.recibeVar.value=parRecibido;
	//return parRecibido
	//return url.substring(posiBeg + 1,posiEnd)  
	} else {      
        //informa de la ausencia del parametro  
      return 'Parámetro no encontrado.'  
      }  
} 
