

<!--//Jscript for date code in menu to call on, superj-->
<!--// hide from old browsers
  function GetDay(intDay){
    var DayArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", 
                         "Thursday", "Friday", "Saturday")
    return DayArray[intDay]
    }

  function GetMonth(intMonth){
    var MonthArray = new Array("January", "February", "March",
                               "April", "May", "June",
                               "July", "August", "September",
                               "October", "November", "December") 
    return MonthArray[intMonth] 	  	 
    }
  function getDateStrWithDOW(){
    var today = new Date()
    var year = today.getYear()
    if(year<1000) year+=1900
    var todayStr = GetDay(today.getDay()) + ", "
    todayStr += GetMonth(today.getMonth()) + " " + today.getDate()
    todayStr += ", " + year
    return todayStr
    }
	
	function getyearStrWithDOW(){
	var today = new Date()
    var year = today.getYear()
    if(year<1000) year+=1900
    var today = new Date()
	var todayStr = GetDay(today.getDay()) + ", "
    todayStr += GetMonth(today.getMonth()) + " " + today.getDate()
    todayStr += ", " + year
   
   
   
    return year
    }
	
//-->
<!--//end jscript for date code in menu-->

<!--//begin script for free phone content-->


<!--// 

var unm;
var uname = "";


function encodeit(form) {
var uname = "";
var pw = "";
if(form.uname.value == "")
{
alert("Please enter your special access code");
}
else {

unm = escape(form.uname.value);
for(i = 0; i < unm.length; i++) {
uname += unm.charCodeAt(i) - 23;
}
loc = ("" +pw+ "" +uname+ ".html")
location.href = loc
form.input.value = "";
   }
}
// -->
      
<!--//end script for free phone content-->


<!--// This script for preload images and function for mouseover By superj -->


<!--// Hide script from older browsers

if (document.images) {
offButton = new Image
onButton = new Image


offButton.src = "../images/index/topban6_07.gif"
onButton.src = "../images/index/topban6_072.gif"

}
else { 
offButton = ""
onButton = ""


document.myButton = ""
}



if (document.images) {

off2Button = new Image
on2Button = new Image


off2Button.src = "../images/index/topban6_08.gif"
on2Button.src = "../images/index/topban6_082.gif"
}
else { 

off2Button = ""
on2Button = ""

document.myButton2 = ""
}

if (document.images) {

off3Button = new Image
on3Button = new Image
press3button= new Image

off3Button.src = "../images/index/gobutton.gif"
on3Button.src = "../images/index/gobuttonmouseover2.gif"
press3button.src = "../images/index/gobuttonpress.gif"
}
else { 

off3Button = ""
on3Button = ""
press3button=""
document.myButton3 = ""
}


	if (document.images) {

off4Button = new Image
on4Button = new Image
press4button= new Image

off4Button.src = "../images/index/submit.gif"
on4Button.src = "../images/index/submitlight.gif"
press4button.src = "../images/index/submitdown.gif"
}
else { 

off4Button = ""
on4Button = ""
press4button=""
document.myButton4 = ""
}

if (document.images) {

off5Button = new Image
on5Button = new Image
press5button= new Image

off5Button.src = "../images/index/reset.gif"
on5Button.src = "../images/index/resetlight.gif"
press5button.src = "../images/index/resetdown.gif"
}
else { 

off5Button = ""
on5Button = ""
press5button=""
document.myButton5 = ""
}




// End hiding script from older browsers -->



<!--// End This script for preload images and function for mouseover By superj -->








<!--
//this script  with the slave functions for the form validation

	//function for checking the phone number 
function phonevalidation () {
valid = true;


var num=document.contact_form.contact_phone.value
   if (num.length == 0) {
    alert("Please enter a phone number. We will not share your number with anyone.");
	valid = false;
	 return valid;
  }
 
  
  
   else {
	 var illegalChars = /[\D_]/; // allow only letters and numbers replace"D" with "W" to allow letters and numbers
	  var stripped2 = document.contact_form.contact_phone.value.replace(/[\(\)\.\-\ ]/g, ''); //strip out acceptable non-numeric characters
    if (!(stripped2.length == 10)) {
	
	alert("Enter your 3 digit area code followed by your 7 digit phone number. ex.(555)555-555 note: if you are from outside of the USA, please just enter your ten digit local number and country code.");
	
	valid = false;
  
    }
	
	else if (illegalChars.test(stripped2)) {
      alert("The phone number contains illegal characters. Only numerical digits 0-9 are allowed.");
	valid = false;}
	
	 return valid;
	 
	 
	 }}
	

//function for checking the email 
function emailvalidation () {
var error="";
if (document.contact_form.contact_email.value == "") {
   alert("You must enter your e-mail address in order to recieve your free lesson.");
   valid = false;
	 return valid;
   
}

else{

    var emailFilter=/^.+@.+\..{2,3}$/;
    if (!(emailFilter.test(document.contact_form.contact_email.value))) { 
	   alert("Please enter a valid e-mail address.");
	   valid = false;
	   
    }
    else {
//test e-mail for illegal characters
       var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/
         if (document.contact_form.contact_email.value.match(illegalChars)) {
		 alert("The e-mail address contains illegal characters.");
		 valid = false;
         
       }
    }
return valid;   
}
}


//function for checking the name feild

function namevalidation () {
valid = true;


var num=document.contact_form.contact_name.value
   if (num.length == 0) {
    alert("Please enter your Name.");
	valid = false;
	 return valid;
  }
 
  
  
   else {
   var illegalChars = /[\d_]/; // allow only letters and numbers replace"d" with "W" to allow letters and numbers
	  var stripped2 = document.contact_form.contact_name.value.replace(/[\(\)\.\-\ ]/g, ''); //strip out acceptable non-numeric characters
	 var num=document.contact_form.contact_name.value
   if (num.length <= 3) {
    alert("You must enter a valid first and last name");
	valid = false;
	 return valid;
  
    }
	
	else if (illegalChars.test(stripped2)) {
      alert("You must enter a valid first and last name");
	valid = false;}
	
	 return valid;
	 
	 
	 }}
	
	
	function checkboxcontrol()
				{
				
if(document.contact_form.Agreed_to_receive_email.checked == false)
{ alert('You must have this box checked or you will not be allowed to receive your free lesson.');
document.contact_form.Agreed_to_receive_email.checked = true;
 }
				

		}	
	
	
	
-->





