// JavaScript Document
function placeVote(){
	win = window.open("", "_popup", "scrolling=no,width=468px,height=450px");
	document.getElementById("form_vota").submit();
}
function validar_mail(t){

 if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(t)){
 return (true);
 }
 else {
 return (false);
 }

}

function val1(){
	email = document.getElementById("email2");
	
	if (!validar_mail(email.value)){
		alert("La dirección de E-Mail no es válida."); return false;
	} else {
		document.getElementById("subsc_menu").submit();	
	}
}

function val2(){
	email = document.getElementById("email");
	
	if (!validar_mail(email.value)){
		alert("La dirección de E-Mail no es válida."); return false;
	} else {
		document.getElementById("subsc_sec").submit();	
	}
}

function _search(){
	document.getElementById("form_search").submit();	
}


function searchEscort(type,value){
	typ = document.getElementById("type");
	val = document.getElementById("value");


	typ.value = type;
	val.value = value;
	
	document.getElementById("SE").submit();
}
function goToEscort(id){

	data = id.split("|");
	ct = data[0]; id = data[1]; nom=data[2];
	var categoria=new Array();
	categoria[1]="";
	categoria[7]="-terapeuticas";
	categoria[8]="-sensuales";
	categoria[9]="-hombres";
	categoria[10]="-traviesas";
	document.location.href = "http://www.masajistasargentina.com/escorts_masajistas"+categoria[ct]+"/"+id+"-"+nom;	
}
