
function launch (url, w, h, scr) 
{
	var posw = ((screen.width - w) / 2);
	var posh = ((screen.height - h) / 2); 

	if (navigator.appName.indexOf("Microsoft")>=0)
		{c = ', left='+posw+', top='+posh;}
	else
		{c = ', screenX='+posw+', screenY='+posh;}

	mysettings = 'toolbar=no,location=no,directories=no,menubar=no,scrollbars='+scr+',resizable=no,status=no,width='+w+',height='+h+c;
	
	open(url,"pagereservas", mysettings);
}


function validate()
{
	if (myform.nombre.value == "")
 	   {alert("Campo Obligatorio NOMBRE"); myform.nombre.focus(); return false;}	     

	else if (myform.apellidos.value == "")
 	   {alert("Campo Obligatorio APELLIDOS"); myform.apellidos.focus(); return false;}	  
	   
	else if (myform.email.value ==  "")
 	   {alert("Campo Obligatorio EMAIL"); myform.email.focus(); return false;}	     
	   
	else if (myform.consulta.value == "")
 	   {alert("Campo Obligatorio CONSULTA"); myform.consulta.focus(); return false;}	         

		
	return true;
	
}


