function abre(url){open(url,"_self","");}

function inicio(){open("inicio.php","_top","");}

function popup(cual,width,height){
	w2=width/2;
	h2=height/2;
	parametros="width="+width+",height="+height+",menubar=no";
	hija = open(cual,'temp',parametros)
	x = (screen.width/ 2)- w2;
	y = (screen.height/2) - h2; 
	hija.moveTo(x, y); 
}

function ayuda1(){
	open("http://directorioveracruz.com/tutorial/","_blank","")
}
	
$(function() {/*  menu top */
	$("ul#menu span").css("opacity","0");
	$("ul#menu span").hover(function () {
		$(this).stop().animate({opacity: 1}, 'fast');
	},
	function () {
		$(this).stop().animate({opacity: 0}, 'fast');
	});
});




function enviar_forma(forma,dx,rst){
	var avalidar= new Array;
	var msj="";
	var titulo="";
	if(dx!=""){
		avalidar= dx.split(",");
		for(var i=0;i<avalidar.length;i++){
			if(document.getElementById(avalidar[i]).value==""){
				titulo=document.getElementById(avalidar[i]).title;
				msj=msj+" » "+titulo+"\n";
			}
		}
	}
	if(document.getElementById("correo").value!=""){
	if ((document.getElementById("correo").value.indexOf("@") == -1)||(document.getElementById("correo").value.indexOf(".") == -1)){
 		msj=msj+" » un correo electronico válido\n";
	}
	}
	if(msj!=""){ alert("No se puede continuar, por favor indique:\n"+msj);}
	else {
		document.forms[forma].submit();
	}
}
