var currentdiv="";

function showit(aDiv) { 

if (document.getElementById(aDiv)!=null) {
	var D = document.getElementById(aDiv).style; 
	D.display = D.display==''? 'none' : ''; 
	currentdiv=aDiv;
}

} 


function selecturb(urbid) { 

if (document.getElementById('urb')!=null) {
	//alert(urbid);
	document.getElementById('urb').value=urbid;
}

} 


function hideit() { 

if (document.getElementById('urb')!=null) {
	document.getElementById('urb').value='1000';
}

if (document.getElementById(currentdiv)!=null) {
	var D = document.getElementById(currentdiv).style; 
	D.display = D.display==''? 'none' : ''; 
	currentdiv="";
}

} 


function checkv(b) {
	if (b=="") {
		alert('No se puede elegir la seccion principal');
		//a=false;
	} 	
}


function verimagen(id,xxx,yyy) {
	if (window.verimagenx) {
		window.verimagenx.close(); 
	}
	verimagenx=window.open("verimagen.phtml?id="+id,"verimagenx","width="+xxx+",height="+yyy+",status=no,toolbar=no,menubar=no,location=no,scrollbars=no"); 
}