


function validar_email(mail){
// si es valido devuelve true 

	//var filter=/^[A-Za-z][A-Za-z0-9_.]*@[A-Za-z0-9_]+\.[A-Za-z0-9_.]+[A-za-z]$/;
	var filter=/^[A-Za-z_.-][A-Za-z0-9_.-]*@[A-Za-z0-9_.-]+\.[A-Za-z0-9_.-]+[A-za-z]$/;

	if (mail.length == 0){   
	
		// alert('es vacio'); 
		return false; 
	}


	if (filter.test(mail)){

//		alert('Es un correo valido: ' + mail);
		return true;

	}else{
	
//		alert('no es valido 2' + mail);
		return false;

	} 
	


}

function getConfirmarSimple(formulario) //confirm order delete
{

  var entrar = confirm("¿ Confirma ?");

	if (entrar){
			formulario.submit();
	}

}




	function confirmar(id, ask, url) //confirm order delete
	{
		temp = window.confirm(ask);
		if (temp) //delete
		{
			window.location=url;
		}
	}

	function open_window(link,w,h)
	{
		var win = "width="+w+",height="+h+",menubar=no,location=no,resizable=yes,scrollbars=yes";
		newWin = window.open(link,'newWin',win);
	}






// Deshabilitar click derecho 
/*
var message=" Patagonia Jobs ";

function click(e) { 

	if (document.all) {

		if (event.button==2||event.button==3) {
		
				alert(message);
				return false;
		}
	}

	if (document.layers) {

		if (e.which == 3) {
		
			alert(message);
			return false;
		}
	}
}

if (document.layers) {

	document.captureEvents(Event.MOUSEDOWN);
}
	document.onmousedown=click;

*/


 

