function search_validation_lounges()
{	
	DocF=document.search;
	if ((DocF.ap.value) == "0")
		{
		 alert("Plese specify the airport name!");
		 DocF.ap.focus();
		 return false;
		}

   var agreewin=dhtmlmodal.open("agreebox", "iframe", "loungesloading.php", "", "width=420px,height=210px,center=1,resize=0,scrolling=0", "recal")

agreewin.onclose=function(){ //Define custom code to run when window is closed
	var theform=this.contentDoc.getElementById("eula") //Access form with id="eula" inside iframe
	var yesbox=theform.eulabox[0] //Access the first radio button within form
	var nobox=theform.esulabox[1] //Access the second radio button within form
	if (yesbox.checked==true)
		alert("You agreed to the terms")
	else if (nobox.checked==true)
		alert("You didn't agree to the terms")
	return true //Allow closing of window in both cases
}	
	  
  return true;
  

}


function search_validation_lounges1()
{	
	DocF=document.searchlounges;
	if ((DocF.ap.value) == "0")
		{
		 alert("Plese specify the airport name!");
		 DocF.ap.focus();
		 return false;
		}

   var agreewin=dhtmlmodal.open("agreebox", "iframe", "loungesloading.php", "", "width=420px,height=210px,center=1,resize=0,scrolling=0", "recal")

agreewin.onclose=function(){ //Define custom code to run when window is closed
	var theform=this.contentDoc.getElementById("eula") //Access form with id="eula" inside iframe
	var yesbox=theform.eulabox[0] //Access the first radio button within form
	var nobox=theform.esulabox[1] //Access the second radio button within form
	if (yesbox.checked==true)
		alert("You agreed to the terms")
	else if (nobox.checked==true)
		alert("You didn't agree to the terms")
	return true //Allow closing of window in both cases
}	
	  
  return true;
  

}
