// checks the numbers etc for call back
function send(){

realname = document.callback.realname.value
   if (realname.length <1) {
      alert('Please enter your full name.')
	 // good = false
   callback.realname.focus()
   callback.realname.select()
    return false;
   }  

area = document.callback.area.value
   if (area.length <1) {
      alert('Please enter your area code number.')
	 // good = false
   callback.area.focus()
   callback.area.select()
    return false;
   }     
var stripped = area.replace(/[\(\)\.\-\ ]/g, ''); //strip out acceptable non-numeric characters
    if (isNaN(parseInt(stripped))) {
       alert('Thats not an area code number. Re-enter digits only please.')
  callback.area.focus()
   callback.area.select()
    return false;
    }
    if (stripped.length >3) {
	alert('The area code number is the wrong length. Area codes usually have 3 digits.')
    callback.area.focus()
   	callback.area.select()
    return false;
	}

phone = document.callback.phone.value
   if (phone.length <1) {
      alert('Please enter your telephone number.')
	 // good = false
   callback.phone.focus()
   callback.phone.select()
    return false;
   }     

var stripped = phone.replace(/[\(\)\.\-\ ]/g, ''); //strip out acceptable non-numeric characters
    if (isNaN(parseInt(stripped))) {
       alert('Thats not a telephone number. Re-enter digits only please.')
    callback.phone.focus()
   callback.phone.select()
    return false;
    }
    if (stripped.length >10) {
	alert('The phone number you entered is too large. Put the number only, not the area code.')
    callback.phone.focus()
   callback.phone.select()
    return false;
	}
}  
//--> 


function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

//-->
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function openWindow(addresses)
{
    NewWin=window.open (addresses, '', 'top=5,left=160,scrollbars=1,resize=0,width=518,height=505');
}
function openW(agents)
{
    NewWin=window.open (agents, '', 'top=5,left=160,scrollbars=1,resize=0,width=500,height=600');
}
function openWt(terms)
{
    NewWin=window.open (terms, '', 'top=5,left=160,scrollbars=1,resize=0,width=650,height=600');
}

function openMap(map)
{
    NewWin=window.open (map, '', 'top=10,left=120,scrollbars=1,resize=0,width=710,height=500');
}

function openBooking(booking)
{
    NewWin=window.open (booking, '', 'top=5,left=160,scrollbars=1,resize=0,width=650,height=600');
}
function openPhone(phone)
{
    NewWin=window.open (phone, '', 'top=5,left=160,scrollbars=1,resize=0,width=650,height=600');
}
function OnTop()
{
	if(NewWin.open)
    {
    	NewWin.focus();
        Timer=setTimeout('OnTop()',1000)
    }
    else
    {
        clearTimeout(Timer)
    }
}
function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

<!--
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->

function MM_displayStatusMsg(msgStr) { //displays status
  status=msgStr;
  document.MM_returnValue = true;
}
//-->
<!--
function checkEmailAddress(email) {
// Note: The next expression must be all on one line...
//       allow no spaces, linefeeds, or carriage returns!
var goodEmail = formFback.email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
if (goodEmail){
   //good = true
} else {
   alert('Please enter a valid e-mail address.')
   formFback.email.focus()
   formFback.email.select()
   //good = false
   }
}

function send()
{
	name = document.formFback.name.value
   if (name.length <1) {
      alert('Please enter your full name.')
	 // good = false
   formFback.name.focus()
   formFback.name.select()
   return false;
   }
   email = document.formFback.email.value
   if (email.length <1) {
      alert('Please enter your email address.')
	 // good = false
   formFback.email.focus()
   formFback.email.select()
   return false;
   }
   // good = true
   checkEmailAddress(document.formFback.email) // calls checkEmailAddress function
} 