function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function petsasmap() {
			window.open("cypruscarrentalpetsas.asp","","toolbar=no,location=no,status=no,directories=no,menubar=no,width=500,height=255");						
			}
function contactus() {
			window.open("cypruscarhirecontact.asp","","toolbar=no,location=no,status=no,directories=no,menubar=no,width=500,height=255");						
			}
function aboutus() {
			window.open("cypruscarhireaboutus.asp","","toolbar=no,location=no,status=no,directories=no,menubar=no,width=500,height=375");						
			}
function faq() {
			window.open("cypruscarrentalfaq.asp","","toolbar=no,scrollbars=yes,location=no,status=no,directories=no,menubar=no,width=500,height=350");						
			}
function cypruslinks() {
			window.open("cypruscarhirelinks.asp");						
			}
function summpage() {						
			window.open("stg2.htm","","toolbar=no,scrollbars=yes,location=no,status=no,directories=no,menubar=no,width=740,height=450");						

			}

    
	
	function newWindow(winURL,winName,height ) 
{
  theWin = window.open( winURL, winName, 'width=500,height=350,scrollbars=yes,resizable=1' )
  theWin.focus()
  }


  function isnumerical1(str)
{
var cnt=0;var sp=0;var dot=0;var dot=0;
	for(var ii=0;ii<str.value.length;ii++)
	{	for(j=0;j<10;j++)
		{if(str.value.charAt(ii)==j)
			cnt++;
		}
		{if(str.value.charAt(ii)==' ')
		sp++;
		}
		{if(str.value.charAt(ii)==".")
		dot++;
		}
	}		
	cnt=cnt-sp-dot
   	if(cnt<str.value.length)
	{alert("Please Enter a Numerical Value");str.value="";str.focus();}
}

function isOK()
{
if(document.frm.fullname.value==0)
	{
	alert("Please Enter A NAME !");
	document.frm.fullname.focus();
	}
else if(document.frm.ageofdriver.value=="")
	{
	alert("Please Enter Age of Driver !");
	document.frm.ageofdriver.focus();
	}
else if(document.frm.noofyrslicense.value=="")
	{
	alert("Please Enter Number Of Years Held Full Driving Licence !");
	document.frm.noofyrslicense.focus();
	}

else if(document.frm.address.value=="")
	{
	alert("Please Enter Address !");
	document.frm.address.focus();
	}
else if(document.frm.email.value=="")
	{
	alert("Please Enter Email !");
	document.frm.email.focus();
	}
else if(document.frm.telephoneno.value=="")
	{
	alert("Please Enter Telephone No !");
	document.frm.telephoneno.focus();
	}

else
	{
	document.frm.submit();
	}
}

function isnumerical(str)
{
var cnt=0;var sp=0;var dot=0;var dot=0;
	for(var ii=0;ii<str.value.length;ii++)
	{	for(j=0;j<10;j++)
		{if(str.value.charAt(ii)==j)
			cnt++;
		}
		{if(str.value.charAt(ii)==' ')
		sp++;
		}
		{if(str.value.charAt(ii)==".")
		dot++;
		}
	}		
	cnt=cnt-sp+dot
   	if(cnt<str.value.length)
	{alert("Please Enter a Numerical Value");str.value="";str.focus();}
	if (dot>1) 
    {alert("Please Enter a Number in Proper Format");str.value="";str.focus();}
}   
function emailcheck()
{
  str=document.frm.email.value 
  if(str.length>0)
   {
	var cnt=0;
	var cntp=0;
	var p=0;
	var q=0;
	var s=str.length;
	for(var ii=0;ii<str.length;ii++)
	{	if(str.charAt(ii)==".")
			{
				cnt++;
				p=ii;
			}
			if(str.charAt(ii)=="@")
			{
				cntp++;
				q=ii;
			}
	}
	if ( cntp!=1 || p<q || q==0 ||p-q<2 || p==s-1)
	{
	alert("Please enter email address in proper format !")
	document.frm.email.value="";
	document.frm.email.focus();
	}		
 }
}

function airportholidayparking() {
			window.open("http://www.airportholidayparking.co.uk");						
			}
function flightsandinsurance() {
			window.open("http://www.flightsandinsurance.co.uk");						
			}
function chw() {
			window.open("http://www.car-hire-worldwide.com");						
			}
function tchg() {
			window.open("http://www.carhiregroup.co.uk");						
			}
function ukal() {
			window.open("http://www.airport-car-parking-uk.net");						
			}
function ageofdriver() {
			window.open("ageofdriver.html","","toolbar=no,location=no,status=no,directories=no,menubar=no,width=670,height=340");						
			}
			function locationdetails() {
			window.open("locationdetails.htm");						
			}
