//3-state Highlight menu effect script: By Dynamicdrive.com
//For full source, Terms of service, and 100s DTHML scripts
//Visit http://www.dynamicdrive.com

function over_effect(e,state){
if (document.all)
source4=event.srcElement
else if (document.getElementById)
source4=e.target
if (source4.className=="subNav")
source4.style.borderStyle=state
else{
while(source4.tagName!="TABLE"){
source4=document.getElementById? source4.parentNode : source4.parentElement
if (source4.className=="subNav")
source4.style.borderStyle=state
}
}
}


// <!--
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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function validate() //validate form
{
x=document.f1
email=x.email.value.indexOf("@")||x.email.value.indexOf(".")
//ipod=x.promo_code.value
name=x.name.value
address=x.address.value
city=x.city.value
state=x.state.options
country=x.country.options
zip=x.zip.value
telephone=x.telephone.value
rehearsalD=x.rehearsal_date.value
eventD=x.event_date.value
//email=x.email.value

if (document.getElementById('promo_code') && document.getElementById('promo_code').value.length<1)
 {
 alert("Please enter a promo code")
 document.getElementById('promo_code').focus()
 return false
 }
if (name.length<1)
 {
 alert("Please enter a contact name")
 x.name.focus()
 return false
 }
if (address.length<1)
 {
 alert("Please enter an address")
 x.address.focus()
 return false
 }
if (city.length<1)
 {
 alert("Please enter a city")
 x.city.focus()
 return false
 }
if (state.selectedIndex==0)
 {
 alert("Please select a state")
 x.state.focus()
 return false
 }
if (country.selectedIndex==0)
 {
 alert("Please select a state")
 x.country.focus()
 return false
 }
if (zip.length<1)
 {
 alert("Please enter a zip")
 x.zip.focus()
 return false
 }
if (email == -1)
 {
 alert("Please enter a valid email address. Your email address should be in this format: xxx@xxx.com")
 x.email.focus()
 return false
 }
 if (telephone.length<1)
 {
 alert("Please enter a telephone number.")
 x.telephone.focus()
 return false
 }	 
}
// --> 