//------------------------------------------
function blockError(){return true;}
window.onerror = blockError;

function cerrar(){
w=window;
v=(w.self.opener=w.self);
v.close();
}

function ir(url)
{
	document.location=url
}

function cClass(obj,newClass)
{
		obj.className = newClass;
}
//------------------------------------------
var vfoto
var sfoto

function verFoto(id){
	vfoto = window.open("verFoto.php?id=" + id,"fx1","width=400,height=400,top=20,left=20,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=no,location=no")
	vfoto.focus()
}

function verPedigree(id){
	vfoto = window.open("verPedigree.php?id=" + id,"fx1","width=400,height=400,top=20,left=20,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=no,location=no")
	vfoto.focus()
}

function subirImagen(){
	sfoto = window.open("uploader_i.php","fx2","width=480,height=200,top=20,left=20,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no")
	sfoto.focus()
}

function subirImagen2(){
	sfoto = window.open("uploader_i2.php","fx2","width=480,height=200,top=20,left=20,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no")
	sfoto.focus()
}

function mdImg(fn){
	opener.document.frte.subirImg.value = fn
	window.close()
}

function mdImg2(fn){
	opener.document.frte.subirImg2.value = fn
	window.close()
}
