function Homepage() {
    document.location.href="index.php";
}
/*
function requestshow(month,day,year) {
    if (month<10) {
        var month0x=month.replace(/0/g, "");
        var month0="0"+month0x;
    } else {
        var month0=month;
    }
    if (day<10) {
        var day0x=day.replace(/0/g, "");
        var day0="0"+day0x;
    } else {
        var day0=day;
    }
    document.location.href="?pageName=requestshow&month="+month0+"&day="+day0+"&year="+year;
}
*/

function highlightshow(ID,Action) {
    if (Action == 'On') {
        document.getElementById(ID).style.background="#f1f1f1";
    } else {
        if (Action == 'Click') {
            document.location.href="index.php?pageName=ViewDetails&Page=Show&id="+ID;
        } else {
            document.getElementById(ID).style.background="#FFFFFF";
        }
    }
}

function Highlight(ID,Action) {
          var ThisID = document.getElementById(ID).value;
            if (Action == 'On') {
              if (ThisID == '###-###-####' || ThisID == 'Two Characters'  ) {
                document.getElementById(ID).value="";
              }
              document.getElementById(ID).style.background="#FFFFFF";
              document.getElementById(ID).style.fontWeight="bold";
            } else {
              document.getElementById(ID).style.background="#eaeaea";
              document.getElementById(ID).style.fontWeight="normal";
              }
          }
          function Required() {
          //document.submitForm.cDescribe.value="";
          
            if (document.getElementById("cNumber1").value=="###-###-####") {
              document.getElementById("cNumber1").value="";
             }
            
               document.getElementById("cFirstN").value = document.getElementById("cFirstN").value.replace(/-/g, "");
            
               document.getElementById("cZip").value = document.getElementById("cZip").value.replace(/-/g, "");
            
               document.getElementById("daterequested").value = document.getElementById("daterequested").value.replace(/-/g, "");
            
               document.getElementById("cType").value = document.getElementById("cType").value.replace(/-/g, "");
            
            var warning = "The following fields are required: "+"\n";
            
            if (document.submitForm.cFirstN.value=="") {
            warning = warning + " - First Name"+"\n";
            }
            
            if (document.submitForm.cLastN.value=="") {
            warning = warning + " - Last Name"+"\n";
            }
            
            if (document.submitForm.cEmail.value=="") {
            warning = warning + " - E-mail Address"+"\n";
            }
            
            if (document.submitForm.cEmail2.value=="") {
            warning = warning + " - Confirm E-mail"+"\n";
            }
            
            if (document.submitForm.cNumber1.value=="") {
            warning = warning + " - Phone Number"+"\n";
            }

            if (document.submitForm.cCity.value == "") {
                warning = warning + " - Your City" + "\n";
            }
            if (document.submitForm.cState.value == "" || document.submitForm.cState.value == "Two Characters") {
                warning = warning + " - Your State" + "\n";
            }
            if (document.submitForm.daterequested.value=="") {
            warning = warning + " - Date requested"+"\n";
            }
            
            if (document.submitForm.cType.value=="") {
            warning = warning + " - Show type"+"\n";
            }
            
              if (warning == "The following fields are required: "+"\n") {
                if (document.getElementById("cEmail").value==document.getElementById("cEmail2").value) {
                  document.submitForm.submit();
                } else {
                  alert("Your email address does not match");
                }
              } else {
                alert(warning);
                return false;
               }            
          }
