// JavaScript Document


function checkFields() {
name = document.contact_form.name.value;
email = document.contact_form.email.value;

if ((name == "") && (email == "") ) {
alert("Please enter your name or your email address.");
return false;
}
else return true;
}

function popup_reserve (mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=600,height=500,scrollbars=yes,statusbar=no');
return false;
}

function popup_quote(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=500,height=500,scrollbars=yes,statusbar=no');
return false;
}


function popup_contact(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
//window.open(href, windowname, 'width=400,height=200,scrollbars=no');
//window.open(href, windowname, 'width=600,height=300,scrollbars=no');
window.open(href, windowname, 'width=600,height=350,scrollbars=no');
return false;
}


function popup_search_price(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=550,height=500,scrollbars=yes,statusbar=no');
return false;
}


function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
//window.open(href, windowname, 'width=400,height=200,scrollbars=no');
window.open(href, windowname, 'width=600,height=300,scrollbars=no');
return false;
}

// Originally from drop-down css js menu 
//startList = function() {
//if (document.all&&document.getElementById) {
//navRoot = document.getElementById("nav");
//for (i=0; i<navRoot.childNodes.length; i++) {
//node = navRoot.childNodes[i];
//if (node.nodeName=="LI") {
//node.onmouseover=function() {
//this.className+=" over";
//  }
//  node.onmouseout=function() {
//  this.className=this.className.replace(" over", "");
//   }
//   }
//  }
// }
//}
//window.onload=startList;
