<!-- hide script from old browsers 

function open_vid(){window.open('http://www.msnbc.com/news/wld/graphics/why_we_snore_dw.htm', 'vid', 'left=0,top=0,menubar=0,location=0,scrollbars=1,resizable=1,status=0,width=550,height=450') ;}
function open_contact(){window.open('contact.html', 'contact', 'left=0,top=0,menubar=0,location=0,scrollbars=1,resizable=1,status=0,width=375,height=400') ;}
function open_links(){window.open('links.html', 'links', 'left=0,top=0,menubar=0,location=0,scrollbars=1,resizable=1,status=0,width=444,height=400') ;}
function open_map(){window.open('map.html', 'map', 'left=0,top=0,menubar=0,location=0,scrollbars=1,resizable=1,status=0,width=538,height=530') ;}
function open_apneavideo(){window.open('apneavideo.html', 'apneavideo', 'left=0,top=0,menubar=0,location=0,scrollbars=0,resizable=1,status=0,width=390,height=440') ;}
function open_apneavideo2(){window.open('apneavideo2.html', 'apneavideo2', 'left=0,top=0,menubar=0,location=0,scrollbars=0,resizable=1,status=0,width=390,height=440') ;}
function open_insurdoc(){window.open('insurdoc.html', 'insurdoc', 'left=0,top=0,menubar=0,location=0,scrollbars=1,resizable=1,status=0,width=630,height=540') ;}
function open_newguide(){window.open('new-guidelines.html', 'newguide', 'left=0,top=0,menubar=0,location=0,scrollbars=1,resizable=1,status=0,width=630,height=540') ;}

function validate() {
var theMessage = "Before sending this request: \n--------------------------------------\n";
var noErrors = theMessage
if (document.form1.name.value=="") {theMessage = theMessage + "\n > Please enter your name";}
if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.form1.email.value)){
theMessage = theMessage + "\n > Enter a valid email address";}
if (document.form1.phone.value=="") {theMessage = theMessage + "\n > Enter your phone number";}
if (document.form1.city.value=="") {theMessage = theMessage + "\n > Enter your city & state";}
if (document.form1.time.value=="") {theMessage = theMessage + "\n > Choose best time to call you";}
if (theMessage == noErrors) {return true;
} else {
alert(theMessage);
return false;
}
}


// end hiding script from old browsers -->

