 
            function Validate()
            {
                var lbError = false;
                var lsAlert = '';
                var loFocusControl;

                var loListcampus_Cal_University_of_PA = document.getElementById('_tdmcontrolcampus_Cal_University_of_PA');
if(loListcampus_Cal_University_of_PA.selectedIndex == 0 || loListcampus_Cal_University_of_PA.selectedIndex == -1)
{
lsAlert += fnValidateAlert(lbError, 'Please select a value for Select Campus.');
loFocusControl = fnValidateFocus(loFocusControl, loListcampus_Cal_University_of_PA);
lbError = true;
}
				var jsArrcampus_Cal_University_of_PA = new Array(1);
				jsArrcampus_Cal_University_of_PA[0] = new Array(2);
				jsArrcampus_Cal_University_of_PA[0][0] = "Online";
				jsArrcampus_Cal_University_of_PA[0][1] = "1";

				var loTxtcampus_Cal_University_of_PA = document.getElementById('_tdmcontrolcampus_Cal_University_of_PA');
				ctr = document.frmContactForm._tdmcontrolcampus_Cal_University_of_PA.selectedIndex;
				if (ctr > 0){
				 if (jsArrcampus_Cal_University_of_PA[ctr - 1][0] == document.frmContactForm._tdmcontrolcampus_Cal_University_of_PA.options[ctr].text && jsArrcampus_Cal_University_of_PA[ctr - 1][1] != "1")
				{
				lsAlert += fnValidateAlert(lbError, 'Please select another value for Select Campus.');
				loFocusControl = fnValidateFocus(loFocusControl, loTxtcampus_Cal_University_of_PA);
				lbError = true;
				}}
var loTxtfirstname_First_Name_50 = document.getElementById('_tdmcontrolfirstname_First_Name_50');
if(jsTrim(loTxtfirstname_First_Name_50.value) == '')
{
lsAlert += fnValidateAlert(lbError, 'Please, enter a value into First Name.');
loFocusControl = fnValidateFocus(loFocusControl, loTxtfirstname_First_Name_50);
lbError = true;
}
var loTxtlastname_Last_Name_50 = document.getElementById('_tdmcontrollastname_Last_Name_50');
if(jsTrim(loTxtlastname_Last_Name_50.value) == '')
{
lsAlert += fnValidateAlert(lbError, 'Please, enter a value into Last Name.');
loFocusControl = fnValidateFocus(loFocusControl, loTxtlastname_Last_Name_50);
lbError = true;
}
var loTxtstreet1_Street_Address_50 = document.getElementById('_tdmcontrolstreet1_Street_Address_50');
if(jsTrim(loTxtstreet1_Street_Address_50.value) == '')
{
lsAlert += fnValidateAlert(lbError, 'Please, enter a value into Street Address.');
loFocusControl = fnValidateFocus(loFocusControl, loTxtstreet1_Street_Address_50);
lbError = true;
}
var loTxtcity_City_50 = document.getElementById('_tdmcontrolcity_City_50');
if(jsTrim(loTxtcity_City_50.value) == '')
{
lsAlert += fnValidateAlert(lbError, 'Please, enter a value into City.');
loFocusControl = fnValidateFocus(loFocusControl, loTxtcity_City_50);
lbError = true;
}
var loListstate_State_2_Letter_Abbreviation = document.getElementById('_tdmcontrolstate_State_2_Letter_Abbreviation');
if(loListstate_State_2_Letter_Abbreviation.selectedIndex == 0 || loListstate_State_2_Letter_Abbreviation.selectedIndex == -1)
{
lsAlert += fnValidateAlert(lbError, 'Please select a value for State.');
loFocusControl = fnValidateFocus(loFocusControl, loListstate_State_2_Letter_Abbreviation);
lbError = true;
}
				var jsArrstate_State_2_Letter_Abbreviation = new Array(51);
				jsArrstate_State_2_Letter_Abbreviation[0] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[0][0] = "AK";
				jsArrstate_State_2_Letter_Abbreviation[0][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[1] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[1][0] = "AL";
				jsArrstate_State_2_Letter_Abbreviation[1][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[2] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[2][0] = "AR";
				jsArrstate_State_2_Letter_Abbreviation[2][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[3] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[3][0] = "AZ";
				jsArrstate_State_2_Letter_Abbreviation[3][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[4] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[4][0] = "CA";
				jsArrstate_State_2_Letter_Abbreviation[4][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[5] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[5][0] = "CO";
				jsArrstate_State_2_Letter_Abbreviation[5][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[6] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[6][0] = "CT";
				jsArrstate_State_2_Letter_Abbreviation[6][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[7] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[7][0] = "DC";
				jsArrstate_State_2_Letter_Abbreviation[7][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[8] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[8][0] = "DE";
				jsArrstate_State_2_Letter_Abbreviation[8][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[9] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[9][0] = "FL";
				jsArrstate_State_2_Letter_Abbreviation[9][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[10] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[10][0] = "GA";
				jsArrstate_State_2_Letter_Abbreviation[10][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[11] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[11][0] = "HI";
				jsArrstate_State_2_Letter_Abbreviation[11][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[12] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[12][0] = "IA";
				jsArrstate_State_2_Letter_Abbreviation[12][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[13] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[13][0] = "ID";
				jsArrstate_State_2_Letter_Abbreviation[13][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[14] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[14][0] = "IL";
				jsArrstate_State_2_Letter_Abbreviation[14][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[15] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[15][0] = "IN";
				jsArrstate_State_2_Letter_Abbreviation[15][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[16] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[16][0] = "KS";
				jsArrstate_State_2_Letter_Abbreviation[16][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[17] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[17][0] = "KY";
				jsArrstate_State_2_Letter_Abbreviation[17][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[18] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[18][0] = "LA";
				jsArrstate_State_2_Letter_Abbreviation[18][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[19] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[19][0] = "MA";
				jsArrstate_State_2_Letter_Abbreviation[19][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[20] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[20][0] = "MD";
				jsArrstate_State_2_Letter_Abbreviation[20][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[21] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[21][0] = "ME";
				jsArrstate_State_2_Letter_Abbreviation[21][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[22] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[22][0] = "MI";
				jsArrstate_State_2_Letter_Abbreviation[22][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[23] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[23][0] = "MN";
				jsArrstate_State_2_Letter_Abbreviation[23][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[24] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[24][0] = "MO";
				jsArrstate_State_2_Letter_Abbreviation[24][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[25] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[25][0] = "MS";
				jsArrstate_State_2_Letter_Abbreviation[25][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[26] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[26][0] = "MT";
				jsArrstate_State_2_Letter_Abbreviation[26][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[27] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[27][0] = "NC";
				jsArrstate_State_2_Letter_Abbreviation[27][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[28] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[28][0] = "ND";
				jsArrstate_State_2_Letter_Abbreviation[28][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[29] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[29][0] = "NE";
				jsArrstate_State_2_Letter_Abbreviation[29][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[30] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[30][0] = "NH";
				jsArrstate_State_2_Letter_Abbreviation[30][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[31] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[31][0] = "NJ";
				jsArrstate_State_2_Letter_Abbreviation[31][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[32] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[32][0] = "NM";
				jsArrstate_State_2_Letter_Abbreviation[32][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[33] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[33][0] = "NV";
				jsArrstate_State_2_Letter_Abbreviation[33][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[34] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[34][0] = "NY";
				jsArrstate_State_2_Letter_Abbreviation[34][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[35] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[35][0] = "OH";
				jsArrstate_State_2_Letter_Abbreviation[35][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[36] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[36][0] = "OK";
				jsArrstate_State_2_Letter_Abbreviation[36][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[37] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[37][0] = "OR";
				jsArrstate_State_2_Letter_Abbreviation[37][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[38] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[38][0] = "PA";
				jsArrstate_State_2_Letter_Abbreviation[38][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[39] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[39][0] = "RI";
				jsArrstate_State_2_Letter_Abbreviation[39][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[40] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[40][0] = "SC";
				jsArrstate_State_2_Letter_Abbreviation[40][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[41] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[41][0] = "SD";
				jsArrstate_State_2_Letter_Abbreviation[41][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[42] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[42][0] = "TN";
				jsArrstate_State_2_Letter_Abbreviation[42][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[43] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[43][0] = "TX";
				jsArrstate_State_2_Letter_Abbreviation[43][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[44] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[44][0] = "UT";
				jsArrstate_State_2_Letter_Abbreviation[44][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[45] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[45][0] = "VA";
				jsArrstate_State_2_Letter_Abbreviation[45][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[46] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[46][0] = "VT";
				jsArrstate_State_2_Letter_Abbreviation[46][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[47] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[47][0] = "WA";
				jsArrstate_State_2_Letter_Abbreviation[47][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[48] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[48][0] = "WI";
				jsArrstate_State_2_Letter_Abbreviation[48][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[49] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[49][0] = "WV";
				jsArrstate_State_2_Letter_Abbreviation[49][1] = "1";
				jsArrstate_State_2_Letter_Abbreviation[50] = new Array(2);
				jsArrstate_State_2_Letter_Abbreviation[50][0] = "WY";
				jsArrstate_State_2_Letter_Abbreviation[50][1] = "1";

				var loTxtstate_State_2_Letter_Abbreviation = document.getElementById('_tdmcontrolstate_State_2_Letter_Abbreviation');
				ctr = document.frmContactForm._tdmcontrolstate_State_2_Letter_Abbreviation.selectedIndex;
				if (ctr > 0){
				 if (jsArrstate_State_2_Letter_Abbreviation[ctr - 1][0] == document.frmContactForm._tdmcontrolstate_State_2_Letter_Abbreviation.options[ctr].text && jsArrstate_State_2_Letter_Abbreviation[ctr - 1][1] != "1")
				{
				lsAlert += fnValidateAlert(lbError, 'Please select another value for State.');
				loFocusControl = fnValidateFocus(loFocusControl, loTxtstate_State_2_Letter_Abbreviation);
				lbError = true;
				}}
var loTxtzip_Zip_Code_5 = document.getElementById('_tdmcontrolzip_Zip_Code_5');
if(jsTrim(loTxtzip_Zip_Code_5.value) == '')
{
lsAlert += fnValidateAlert(lbError, 'Please, enter a value into Zip Code.');
loFocusControl = fnValidateFocus(loFocusControl, loTxtzip_Zip_Code_5);
lbError = true;
}
var loTxtemail_Email_Address_50 = document.getElementById('_tdmcontrolemail_Email_Address_50');
if(jsTrim(loTxtemail_Email_Address_50.value) == '')
{
lsAlert += fnValidateAlert(lbError, 'Please, enter a value into E-mail Address.');
loFocusControl = fnValidateFocus(loFocusControl, loTxtemail_Email_Address_50);
lbError = true;
}
var loTxtphone1_main_phone_10_1234567890 = document.getElementById('_tdmcontrolphone1_main_phone_10_1234567890');
if(jsTrim(loTxtphone1_main_phone_10_1234567890.value) == '')
{
lsAlert += fnValidateAlert(lbError, 'Please, enter a value into Main Phone (Please Include Area Code, Numeric Value Only i.e.1234567890).');
loFocusControl = fnValidateFocus(loFocusControl, loTxtphone1_main_phone_10_1234567890);
lbError = true;
}
var loListhighest_level_of_ed_Cal_University_of_PA = document.getElementById('_tdmcontrolhighest_level_of_ed_Cal_University_of_PA');
if(loListhighest_level_of_ed_Cal_University_of_PA.selectedIndex == 0 || loListhighest_level_of_ed_Cal_University_of_PA.selectedIndex == -1)
{
lsAlert += fnValidateAlert(lbError, 'Please select a value for Highest Level of Education.');
loFocusControl = fnValidateFocus(loFocusControl, loListhighest_level_of_ed_Cal_University_of_PA);
lbError = true;
}
				var jsArrhighest_level_of_ed_Cal_University_of_PA = new Array(7);
				jsArrhighest_level_of_ed_Cal_University_of_PA[0] = new Array(2);
				jsArrhighest_level_of_ed_Cal_University_of_PA[0][0] = "Associates Degree";
				jsArrhighest_level_of_ed_Cal_University_of_PA[0][1] = "1";
				jsArrhighest_level_of_ed_Cal_University_of_PA[1] = new Array(2);
				jsArrhighest_level_of_ed_Cal_University_of_PA[1][0] = "Bachelors Degree";
				jsArrhighest_level_of_ed_Cal_University_of_PA[1][1] = "1";
				jsArrhighest_level_of_ed_Cal_University_of_PA[2] = new Array(2);
				jsArrhighest_level_of_ed_Cal_University_of_PA[2][0] = "Current High School Student";
				jsArrhighest_level_of_ed_Cal_University_of_PA[2][1] = "0";
				jsArrhighest_level_of_ed_Cal_University_of_PA[3] = new Array(2);
				jsArrhighest_level_of_ed_Cal_University_of_PA[3][0] = "Doctorate Degree";
				jsArrhighest_level_of_ed_Cal_University_of_PA[3][1] = "1";
				jsArrhighest_level_of_ed_Cal_University_of_PA[4] = new Array(2);
				jsArrhighest_level_of_ed_Cal_University_of_PA[4][0] = "HS Grad/GED";
				jsArrhighest_level_of_ed_Cal_University_of_PA[4][1] = "1";
				jsArrhighest_level_of_ed_Cal_University_of_PA[5] = new Array(2);
				jsArrhighest_level_of_ed_Cal_University_of_PA[5][0] = "Masters degree";
				jsArrhighest_level_of_ed_Cal_University_of_PA[5][1] = "1";
				jsArrhighest_level_of_ed_Cal_University_of_PA[6] = new Array(2);
				jsArrhighest_level_of_ed_Cal_University_of_PA[6][0] = "Some College";
				jsArrhighest_level_of_ed_Cal_University_of_PA[6][1] = "1";

				var loTxthighest_level_of_ed_Cal_University_of_PA = document.getElementById('_tdmcontrolhighest_level_of_ed_Cal_University_of_PA');
				ctr = document.frmContactForm._tdmcontrolhighest_level_of_ed_Cal_University_of_PA.selectedIndex;
				if (ctr > 0){
				 if (jsArrhighest_level_of_ed_Cal_University_of_PA[ctr - 1][0] == document.frmContactForm._tdmcontrolhighest_level_of_ed_Cal_University_of_PA.options[ctr].text && jsArrhighest_level_of_ed_Cal_University_of_PA[ctr - 1][1] != "1")
				{
				lsAlert += fnValidateAlert(lbError, 'Please select another value for Highest Level of Education.');
				loFocusControl = fnValidateFocus(loFocusControl, loTxthighest_level_of_ed_Cal_University_of_PA);
				lbError = true;
				}}
var loListprograminterest_Cal_University_of_PA = document.getElementById('_tdmcontrolprograminterest_Cal_University_of_PA');
if (loListprograminterest_Cal_University_of_PA.selectedIndex == -1 || loListprograminterest_Cal_University_of_PA[loListprograminterest_Cal_University_of_PA.selectedIndex].value == '')
{
lsAlert += fnValidateAlert(lbError, 'Please select a value for Program of Interest.');
loFocusControl = fnValidateFocus(loFocusControl, loListprograminterest_Cal_University_of_PA);
lbError = true;
}
Array.prototype.addDim = function(x,y,z) {
 for (var i = 0; i < x; i++) {
  this[i] = []
  for (var j = 0; j < y; j++) {
     this[i][j] = []
      for (var k = 0; k < z; k++) {
      this[i][j][k] = []
     }}}
 return this
}

				var jsArrprograminterest_Cal_University_of_PA = [].addDim(7, 72, 0)

				jsArrprograminterest_Cal_University_of_PA[0][0][0] = "Bachelor of Science in Science and Technology:  Legal Studies";
				jsArrprograminterest_Cal_University_of_PA[0][0][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[0][1][0] = "Bachelor of Science Sport Management: Fitness and Wellness";
				jsArrprograminterest_Cal_University_of_PA[0][1][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][0][0] = "Graduate Certificate in Sports Counseling";
				jsArrprograminterest_Cal_University_of_PA[1][0][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][1][0] = "Master of Arts Teaching / Advance Studies in Secondary Education";
				jsArrprograminterest_Cal_University_of_PA[1][1][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][2][0] = "Master of Arts Tourism Planning and Development";
				jsArrprograminterest_Cal_University_of_PA[1][2][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][3][0] = "Master of Education / Administrative Program for Principals K12 Principal";
				jsArrprograminterest_Cal_University_of_PA[1][3][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][4][0] = "Master of Education / Administrative Program K12 Principal Certification";
				jsArrprograminterest_Cal_University_of_PA[1][4][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][5][0] = "Master Of Education In English As A Second Language (ESL)";
				jsArrprograminterest_Cal_University_of_PA[1][5][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][6][0] = "Master Of Education In National Board Teacher Certification Preparation";
				jsArrprograminterest_Cal_University_of_PA[1][6][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][7][0] = "Master of Education in Technology Education";
				jsArrprograminterest_Cal_University_of_PA[1][7][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][8][0] = "Master of Education Tracks in Early Childhood Education and Early Childhood Cert Only";
				jsArrprograminterest_Cal_University_of_PA[1][8][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][9][0] = "Master of Science Legal Studies: Law and Public Policy / Homeland Security";
				jsArrprograminterest_Cal_University_of_PA[1][9][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][10][0] = "MS Exercise Science and Health Promotion - Performance Enhancement and Injury Prevention";
				jsArrprograminterest_Cal_University_of_PA[1][10][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][11][0] = "MS Exercise Science and Health Promotion - Rehabilition Science";
				jsArrprograminterest_Cal_University_of_PA[1][11][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][12][0] = "MS Exercise Science and Health Promotion - Sport Psychology";
				jsArrprograminterest_Cal_University_of_PA[1][12][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][13][0] = "MS Exercise Science and Health Promotion - Wellness and Fitness";
				jsArrprograminterest_Cal_University_of_PA[1][13][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][14][0] = "MS Exercise Science and Health Promotion / Post Master Cert - Performance Enhancement";
				jsArrprograminterest_Cal_University_of_PA[1][14][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][15][0] = "MS Exercise Science and Health Promotion / Post Master Cert - Rehabilition Science";
				jsArrprograminterest_Cal_University_of_PA[1][15][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][16][0] = "MS Exercise Science and Health Promotion / Post Master Cert - Sport Psychology";
				jsArrprograminterest_Cal_University_of_PA[1][16][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][17][0] = "MS Exercise Science and Health Promotion / Post Master Cert - Wellness and Fitness";
				jsArrprograminterest_Cal_University_of_PA[1][17][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][18][0] = "MS Legal Studies: Law and Public Policy";
				jsArrprograminterest_Cal_University_of_PA[1][18][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][19][0] = "MS Sport Management Studies - Intercollegiate Athletic Administration";
				jsArrprograminterest_Cal_University_of_PA[1][19][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][20][0] = "MS Sport Management Studies - Sport Management";
				jsArrprograminterest_Cal_University_of_PA[1][20][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[1][21][0] = "Superintendent Letter of Eligibility";
				jsArrprograminterest_Cal_University_of_PA[1][21][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[2][0][0] = "Bachelor of Science in Science and Technology:  Legal Studies";
				jsArrprograminterest_Cal_University_of_PA[2][0][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[2][1][0] = "Bachelor of Science Sport Management: Fitness and Wellness";
				jsArrprograminterest_Cal_University_of_PA[2][1][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][0][0] = "Graduate Certificate in Sports Counseling";
				jsArrprograminterest_Cal_University_of_PA[3][0][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][1][0] = "Master of Arts Teaching / Advance Studies in Secondary Education";
				jsArrprograminterest_Cal_University_of_PA[3][1][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][2][0] = "Master of Arts Tourism Planning and Development";
				jsArrprograminterest_Cal_University_of_PA[3][2][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][3][0] = "Master of Education / Administrative Program for Principals K12 Principal";
				jsArrprograminterest_Cal_University_of_PA[3][3][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][4][0] = "Master of Education / Administrative Program K12 Principal Certification";
				jsArrprograminterest_Cal_University_of_PA[3][4][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][5][0] = "Master Of Education In English As A Second Language (ESL)";
				jsArrprograminterest_Cal_University_of_PA[3][5][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][6][0] = "Master Of Education In National Board Teacher Certification Preparation";
				jsArrprograminterest_Cal_University_of_PA[3][6][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][7][0] = "Master of Education in Technology Education";
				jsArrprograminterest_Cal_University_of_PA[3][7][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][8][0] = "Master of Education Tracks in Early Childhood Education and Early Childhood Cert Only";
				jsArrprograminterest_Cal_University_of_PA[3][8][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][9][0] = "Master of Science Legal Studies: Law and Public Policy / Homeland Security";
				jsArrprograminterest_Cal_University_of_PA[3][9][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][10][0] = "MS Exercise Science and Health Promotion - Performance Enhancement and Injury Prevention";
				jsArrprograminterest_Cal_University_of_PA[3][10][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][11][0] = "MS Exercise Science and Health Promotion - Rehabilition Science";
				jsArrprograminterest_Cal_University_of_PA[3][11][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][12][0] = "MS Exercise Science and Health Promotion - Sport Psychology";
				jsArrprograminterest_Cal_University_of_PA[3][12][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][13][0] = "MS Exercise Science and Health Promotion - Wellness and Fitness";
				jsArrprograminterest_Cal_University_of_PA[3][13][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][14][0] = "MS Exercise Science and Health Promotion / Post Master Cert - Performance Enhancement";
				jsArrprograminterest_Cal_University_of_PA[3][14][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][15][0] = "MS Exercise Science and Health Promotion / Post Master Cert - Rehabilition Science";
				jsArrprograminterest_Cal_University_of_PA[3][15][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][16][0] = "MS Exercise Science and Health Promotion / Post Master Cert - Sport Psychology";
				jsArrprograminterest_Cal_University_of_PA[3][16][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][17][0] = "MS Exercise Science and Health Promotion / Post Master Cert - Wellness and Fitness";
				jsArrprograminterest_Cal_University_of_PA[3][17][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][18][0] = "MS Legal Studies: Law and Public Policy";
				jsArrprograminterest_Cal_University_of_PA[3][18][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[3][19][0] = "Superintendent Letter of Eligibility";
				jsArrprograminterest_Cal_University_of_PA[3][19][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[4][0][0] = "Bachelor of Science in Science and Technology:  Legal Studies";
				jsArrprograminterest_Cal_University_of_PA[4][0][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[4][1][0] = "Bachelor of Science Sport Management: Fitness and Wellness";
				jsArrprograminterest_Cal_University_of_PA[4][1][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][0][0] = "Graduate Certificate in Sports Counseling";
				jsArrprograminterest_Cal_University_of_PA[5][0][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][1][0] = "Master of Arts Teaching / Advance Studies in Secondary Education";
				jsArrprograminterest_Cal_University_of_PA[5][1][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][2][0] = "Master of Arts Tourism Planning and Development";
				jsArrprograminterest_Cal_University_of_PA[5][2][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][3][0] = "Master of Education / Administrative Program for Principals K12 Principal";
				jsArrprograminterest_Cal_University_of_PA[5][3][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][4][0] = "Master of Education / Administrative Program K12 Principal Certification";
				jsArrprograminterest_Cal_University_of_PA[5][4][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][5][0] = "Master Of Education In English As A Second Language (ESL)";
				jsArrprograminterest_Cal_University_of_PA[5][5][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][6][0] = "Master Of Education In National Board Teacher Certification Preparation";
				jsArrprograminterest_Cal_University_of_PA[5][6][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][7][0] = "Master of Education in Technology Education";
				jsArrprograminterest_Cal_University_of_PA[5][7][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][8][0] = "Master of Education Tracks in Early Childhood Education and Early Childhood Cert Only";
				jsArrprograminterest_Cal_University_of_PA[5][8][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][9][0] = "Master of Science Legal Studies: Law and Public Policy / Homeland Security";
				jsArrprograminterest_Cal_University_of_PA[5][9][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][10][0] = "MS Exercise Science and Health Promotion - Performance Enhancement and Injury Prevention";
				jsArrprograminterest_Cal_University_of_PA[5][10][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][11][0] = "MS Exercise Science and Health Promotion - Rehabilition Science";
				jsArrprograminterest_Cal_University_of_PA[5][11][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][12][0] = "MS Exercise Science and Health Promotion - Sport Psychology";
				jsArrprograminterest_Cal_University_of_PA[5][12][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][13][0] = "MS Exercise Science and Health Promotion - Wellness and Fitness";
				jsArrprograminterest_Cal_University_of_PA[5][13][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][14][0] = "MS Exercise Science and Health Promotion / Post Master Cert - Performance Enhancement";
				jsArrprograminterest_Cal_University_of_PA[5][14][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][15][0] = "MS Exercise Science and Health Promotion / Post Master Cert - Rehabilition Science";
				jsArrprograminterest_Cal_University_of_PA[5][15][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][16][0] = "MS Exercise Science and Health Promotion / Post Master Cert - Sport Psychology";
				jsArrprograminterest_Cal_University_of_PA[5][16][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][17][0] = "MS Exercise Science and Health Promotion / Post Master Cert - Wellness and Fitness";
				jsArrprograminterest_Cal_University_of_PA[5][17][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][18][0] = "MS Legal Studies: Law and Public Policy";
				jsArrprograminterest_Cal_University_of_PA[5][18][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][19][0] = "MS Sport Management Studies - Intercollegiate Athletic Administration";
				jsArrprograminterest_Cal_University_of_PA[5][19][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][20][0] = "MS Sport Management Studies - Sport Management";
				jsArrprograminterest_Cal_University_of_PA[5][20][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[5][21][0] = "Superintendent Letter of Eligibility";
				jsArrprograminterest_Cal_University_of_PA[5][21][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[6][0][0] = "Bachelor of Science in Science and Technology:  Legal Studies";
				jsArrprograminterest_Cal_University_of_PA[6][0][1] = "1";
				jsArrprograminterest_Cal_University_of_PA[6][1][0] = "Bachelor of Science Sport Management: Fitness and Wellness";
				jsArrprograminterest_Cal_University_of_PA[6][1][1] = "1";

				var loTxtprograminterest_Cal_University_of_PA = document.getElementById('_tdmcontrolprograminterest_Cal_University_of_PA');
				ctrParent = document.frmContactForm._tdmcontrolhighest_level_of_ed_Cal_University_of_PA.selectedIndex;
				ctr = document.frmContactForm._tdmcontrolprograminterest_Cal_University_of_PA.selectedIndex;
				if (ctr > 0){
				 if (jsArrprograminterest_Cal_University_of_PA[ctrParent-1][ctr - 1][0] == document.frmContactForm._tdmcontrolprograminterest_Cal_University_of_PA.options[ctr].text && jsArrprograminterest_Cal_University_of_PA[ctrParent-1][ctr - 1][1] != "1")
				{
				lsAlert += fnValidateAlert(lbError, 'Please select another value for Program of Interest.');
				loFocusControl = fnValidateFocus(loFocusControl, loTxtprograminterest_Cal_University_of_PA);
				lbError = true;
				}}


                if(lbError)
                {
                    if (typeof loFocusControl != 'undefined')
                    {
                        loFocusControl.focus();
                    }
                    if (jsTrim(lsAlert) != '')
                    {
                        window.alert(lsAlert);
                    }
                    return(false);
                }
                else
                {
                	document.getElementById('btnSubmit').disabled = true;
                	document.getElementById('btnSubmit').value = "Processing...";
                	document.frmContactForm.submit();
                    return(true);
                }

            }

            function fnValidateAlert(pbError, psMessage)
            {
              if (pbError)
              {
                return("\n" + psMessage);
              }
              else
              {
                return("" + psMessage);
              }
            }

            function fnValidateFocus(poControlFocus, poControl)
            {
              if (typeof poControlFocus == "undefined")
              {
                return(poControl);
              }
              else
              {
                return(poControlFocus);
              }
            }

            function jsTrim(sf_string)
            {
              sf_string = sf_string.replace(/ +/g, " ");
              sf_string = sf_string.replace(/^ /, "");
              sf_string = sf_string.replace(/ $/, "");
              return(sf_string);
            }

            function fnValidateMail(psValue)
            {
                var reEmail = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
                if (reEmail.test(psValue))
                {
                    return (true);
                }
                else
                {
                    return (false);
                }
            }

            function fnValidatePhone(psValue)
            {
                //var rePhone = /^(\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}$/;
                var rePhone = /^(?:\([2-9]\d{2}\)\ ?|[2-9]\d{2}(?:\-?|\ ?))[2-9]\d{2}[- ]?\d{4}$/
                if (rePhone.test(psValue))
                {
                    return (true);
                }
                else
                {
                    return (false);
                }
            }

            function fnValidateZipCode(psValue)
            {
                var reZipCode = /^\d{5}((-|\s)?\d{4})?$/;
                if (reZipCode.test(psValue))
                {
                    return (true);
                }
                else
                {
                    return (false);
                }
            }

            function fnChangeList (strChildID, elParent) {

            	var elChild = document.getElementById(strChildID);

				var arrListValue = new Array();

				//arrListValue[0] = new Array("A", "B", "C");
				//arrListValue[1] = new Array("E", "F", "G");

				arrListValue[0] = new Array("","Bachelor of Science in Science and Technology:  Legal Studies","Bachelor of Science Sport Management: Fitness and Wellness");
arrListValue[1] = new Array("","Graduate Certificate in Sports Counseling","Master of Arts Teaching / Advance Studies in Secondary Education","Master of Arts Tourism Planning and Development","Master of Education / Administrative Program for Principals K12 Principal","Master of Education / Administrative Program K12 Principal Certification","Master Of Education In English As A Second Language (ESL)","Master Of Education In National Board Teacher Certification Preparation","Master of Education in Technology Education","Master of Education Tracks in Early Childhood Education and Early Childhood Cert Only","Master of Science Legal Studies: Law and Public Policy / Homeland Security","MS Exercise Science and Health Promotion - Performance Enhancement and Injury Prevention","MS Exercise Science and Health Promotion - Rehabilition Science","MS Exercise Science and Health Promotion - Sport Psychology","MS Exercise Science and Health Promotion - Wellness and Fitness","MS Exercise Science and Health Promotion / Post Master Cert - Performance Enhancement","MS Exercise Science and Health Promotion / Post Master Cert - Rehabilition Science","MS Exercise Science and Health Promotion / Post Master Cert - Sport Psychology","MS Exercise Science and Health Promotion / Post Master Cert - Wellness and Fitness","MS Legal Studies: Law and Public Policy","MS Sport Management Studies - Intercollegiate Athletic Administration","MS Sport Management Studies - Sport Management","Superintendent Letter of Eligibility");
arrListValue[2] = new Array("","Bachelor of Science in Science and Technology:  Legal Studies","Bachelor of Science Sport Management: Fitness and Wellness");
arrListValue[3] = new Array("","Graduate Certificate in Sports Counseling","Master of Arts Teaching / Advance Studies in Secondary Education","Master of Arts Tourism Planning and Development","Master of Education / Administrative Program for Principals K12 Principal","Master of Education / Administrative Program K12 Principal Certification","Master Of Education In English As A Second Language (ESL)","Master Of Education In National Board Teacher Certification Preparation","Master of Education in Technology Education","Master of Education Tracks in Early Childhood Education and Early Childhood Cert Only","Master of Science Legal Studies: Law and Public Policy / Homeland Security","MS Exercise Science and Health Promotion - Performance Enhancement and Injury Prevention","MS Exercise Science and Health Promotion - Rehabilition Science","MS Exercise Science and Health Promotion - Sport Psychology","MS Exercise Science and Health Promotion - Wellness and Fitness","MS Exercise Science and Health Promotion / Post Master Cert - Performance Enhancement","MS Exercise Science and Health Promotion / Post Master Cert - Rehabilition Science","MS Exercise Science and Health Promotion / Post Master Cert - Sport Psychology","MS Exercise Science and Health Promotion / Post Master Cert - Wellness and Fitness","MS Legal Studies: Law and Public Policy","Superintendent Letter of Eligibility");
arrListValue[4] = new Array("","Bachelor of Science in Science and Technology:  Legal Studies","Bachelor of Science Sport Management: Fitness and Wellness");
arrListValue[5] = new Array("","Graduate Certificate in Sports Counseling","Master of Arts Teaching / Advance Studies in Secondary Education","Master of Arts Tourism Planning and Development","Master of Education / Administrative Program for Principals K12 Principal","Master of Education / Administrative Program K12 Principal Certification","Master Of Education In English As A Second Language (ESL)","Master Of Education In National Board Teacher Certification Preparation","Master of Education in Technology Education","Master of Education Tracks in Early Childhood Education and Early Childhood Cert Only","Master of Science Legal Studies: Law and Public Policy / Homeland Security","MS Exercise Science and Health Promotion - Performance Enhancement and Injury Prevention","MS Exercise Science and Health Promotion - Rehabilition Science","MS Exercise Science and Health Promotion - Sport Psychology","MS Exercise Science and Health Promotion - Wellness and Fitness","MS Exercise Science and Health Promotion / Post Master Cert - Performance Enhancement","MS Exercise Science and Health Promotion / Post Master Cert - Rehabilition Science","MS Exercise Science and Health Promotion / Post Master Cert - Sport Psychology","MS Exercise Science and Health Promotion / Post Master Cert - Wellness and Fitness","MS Legal Studies: Law and Public Policy","MS Sport Management Studies - Intercollegiate Athletic Administration","MS Sport Management Studies - Sport Management","Superintendent Letter of Eligibility");
arrListValue[6] = new Array("","Bachelor of Science in Science and Technology:  Legal Studies","Bachelor of Science Sport Management: Fitness and Wellness");


				var intParentIndex = elParent.selectedIndex;

				elChild.options.length = 0;

				if (intParentIndex > 0) {

					if (arrSelectedValue = arrListValue[intParentIndex-1] ) {
					    
					    //For initial Please Select
					    optionItem = new Option( "Please Select", "",  false, false);
						elChild.options[elChild.length] = optionItem;
						
						for (var i=1; i < arrSelectedValue.length; i++) {
							optionItem = new Option( arrSelectedValue[i], arrSelectedValue[i],  false, false);
							elChild.options[elChild.length] = optionItem;
						}

					}

				}

            }

			function getCookieValue (cookieName) {
			  var exp = new RegExp (escape(cookieName) + "=([^;]+)");
			  if (exp.test (document.cookie + ";")) {
				exp.exec (document.cookie + ";");
				return unescape(RegExp.$1);
			  }
			  else return "";
			}

			function writeCookie(cookieName,cookieValue,days) {
				if (days) {
					var date = new Date();
					date.setTime(date.getTime()+(days*24*60*60*1000));
					var expires = "; expires="+date.toGMTString();
				}
				else var expires = "";
				document.cookie = cookieName+"="+cookieValue+expires+"; path=/";
			}

		function fnValidateSpecialChar(psValue)
		{
			var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?";
			var strCheck = "0";
    		for (var i = 0; i < psValue.length; i++)
				{
					if (iChars.indexOf(psValue.charAt(i)) != -1) 
						{
  							//return false;
							strCheck = "1";
	  					}
				 }
				 if (strCheck == "1")
					return false;
				 else
					 return true;

		}


