function programupdate()
{
	/*<optgroup label='NTU School of Engineering & Applied Science'><option value='M.S.IN.SENG'>M.S. in Software Engineering </option><option value='M.S.IN.SYS.ENG'>M.S. in Systems Engineering </option></optgroup>*/
	if(document.getElementsByName("degree")[0].value == "17000115")
	{
	document.getElementById("two").innerHTML="<select name='Goals' style='width: 460px;' onChange='specializationUpdate()'><option value=''>Select One</option><optgroup label='School of Nursing'><option value='B.S.N - M.S.N'>Master of Science in Nursing (MSN) - BSN Track</option><option value='RN.MSN.'>Master of Science in Nursing (MSN) - RN Track</option></optgroup></select>";
	}
	
	if(document.getElementsByName("degree")[0].value=="2134")
	{
	document.getElementById("two").innerHTML="<select name='Goals' style='width: 460px;' onChange='specializationUpdate()'><option value=''>Select One</option><optgroup label='School of Nursing'><option value='B.S.N - M.S.N'>Master of Science in Nursing (MSN) - BSN Track</option><option value='RN.MSN.'>Master of Science in Nursing (MSN) - RN Track</option></optgroup></select>";
	}
	
	if(document.getElementsByName("degree")[0].value=="17000009")
	{
	document.getElementById("two").innerHTML="<select name='Goals' style='width: 460px;' onChange='specializationUpdate()'><option value=''>Select One</option><optgroup label='School of Nursing'><option value='B.S.N - M.S.N'>Master of Science in Nursing (MSN) - BSN Track</option><option value='RN.MSN.'>Master of Science in Nursing (MSN) - RN Track</option></optgroup></select>";
	}
	
	if(document.getElementsByName("degree")[0].value=="17000010")
	{
	document.getElementById("two").innerHTML="<select name='Goals' style='width: 460px;' onChange='specializationUpdate()'><option value=''>Select One</option><optgroup label='The Richard W.Riley College of Education and Leadership'><option value='M.S.ED.'>M.S. in Education (M.S. Ed.)</option><option value='M.S.I.D.T'>Master of Science (M.S.) in Instructional Design and Technology</option><option value='Tpp.In.MA'>Teacher Preparation Program with a Master of Arts in Teaching</option></optgroup><optgroup label='School of Psychology'><option value='M.S.P.'>M.S. in Psychology </option><option value='Ph.D.Psy.'>Ph.D. in Psychology </option><option value='P.D.P.C.'>Post-Doctoral Psychology Certificate</option><option value='M.S.FP'>Master of Science Forensic Psychology</option></optgroup><optgroup label='School of Nursing'><option value='B.S.N - M.S.N'>Master of Science in Nursing (MSN) - BSN Track</option><option value='RN.MSN.'>Master of Science in Nursing (MSN) - RN Track</option></optgroup><optgroup label='School of Health Sciences'><option value='M.P.H.'>Master of Public Health (M.P.H.) </option><option value='M.H.A.'>Master of Healthcare Administration (M.H.A.) </option><option value='MS.CRA.'>M.S. in Clinical Research Administration (MS CRA) </option><option value='Ph.D.P.H.'>Ph.D. in Public Health </option><option value='M.S.in.H.I'>Master of Science (M.S.) in Health Informatics</option></optgroup><optgroup label='School of Counseling & Social Service'><option value='M.S.M.H.C.'>M.S. in Mental Health Counseling </option><option value='Ph.D.C.E.S'>Ph.D. in Counselor Education and Supervision</option></optgroup><optgroup label='School of Public Policy and Administration'><option value='M.P.A.'>Master of Public Administration (M.P.A.) </option><option value='M.S.NP'>M.S. in Nonprofit Management and Leadership (M.S. NP) </option></optgroup><optgroup label='School of Management'><option value='M.B.A.'>Master of Business Administration (M.B.A.) </option><option value='M.I.S.M.'>Master of Information Systems Management(M.I.S.M.) </option><option value='M.S.L'>Master of Science (M.S.) Leadership</option><option value='M.S.in.P.M'>Master of Science (M.S.) in Project Management</option></optgroup></select>";
	}
	if(document.getElementsByName("degree")[0].value=="17000011")
	{
	document.getElementById("two").innerHTML="<select name='Goals' style='width: 460px;' onChange='specializationUpdate()'><option value=''>Select One</option><optgroup label='The Richard W.Riley College of Education and Leadership'><option value='Tpp.In.MA'>Teacher Preparation Program with a Master of Arts in Teaching</option><option value='M.S.ED.'>M.S. in Education (M.S. Ed.)</option><option value='Ed.D.'>Doctor of Education (Ed.D.)</option><option value='Ph.D. Ed.'>Ph.D. in Education (Ph.D. Ed.)</option><option value='Ed.S.'>Education Specialist (Ed.S.) in Educational Technology</option><option value='Ed.S.ALTL'>Education Specialist (Ed.S.) in Administrator Leadership for Teaching & Learning </option><option value='Ed.S.TL'>Education Specialist (Ed.S.) Teacher Leadership</option><option value='Ed.S.ELAPP'>Ed.S. in Educational Leadership & Administration (Principal Preparation)</option><option value='M.S.I.D.T'>Master of Science (M.S.) in Instructional Design and Technology</option></optgroup><optgroup label='School of Psychology'><option value='M.S.P.'>M.S. in Psychology </option><option value='Ph.D.Psy.'>Ph.D. in Psychology </option><option value='P.D.P.C.'>Post-Doctoral Psychology Certificate</option><option value='M.S.FP'>Master of Science Forensic Psychology</option></optgroup><optgroup label='School of Nursing'><option value='B.S.N - M.S.N'>Master of Science in Nursing (MSN) - BSN Track</option><option value='RN.MSN.'>Master of Science in Nursing (MSN) - RN Track</option><option value='P.M.C.N'>Post-Masters Certificates in Nursing</option></optgroup><optgroup label='School of Health Sciences'><option value='M.P.H.'>Master of Public Health (M.P.H.) </option><option value='M.H.A.'>Master of Healthcare Administration (M.H.A.) </option><option value='Ph.D.P.H.'>Ph.D. in Public Health </option><option value='Ph.D.H.S.'>Ph.D. in Health Services </option><option value='MS.CRA.'>M.S. in Clinical Research Administration (MS CRA) </option><option value='M.S.in.H.I'>Master of Science (M.S.) in Health Informatics</option></optgroup><optgroup label='School of Counseling & Social Service'><option value='M.S.M.H.C.'>M.S. in Mental Health Counseling </option><option value='Ph.D.Hu.S.'>Ph.D. in Human Services</option><option value='Ph.D.C.E.S'>Ph.D. in Counselor Education and Supervision</option></optgroup><optgroup label='School of Public Policy and Administration'><option value='M.P.A.'>Master of Public Administration (M.P.A.) </option><option value='M.S.NP'>M.S. in Nonprofit Management and Leadership (M.S. NP) </option><option value='phd.PA.MM'>Ph.D. in Public Policy and Administration - Mixed-Model</option><option value='phd.PA.CB'>Ph.D. in Public Policy and Administration - Course-based</option>	</optgroup><optgroup label='School of Management'><option value='M.B.A.'>Master of Business Administration (M.B.A.) </option><option value='M.I.S.M.'>Master of Information Systems Management(M.I.S.M.) </option><option value='Ph.D. MGT'>Ph.D. in Management</option><option value='BA.D.'>Doctor of Business Administration</option><option value='M.S.L'>Master of Science (M.S.) Leadership</option><option value='M.S.in.P.M'>Master of Science (M.S.) in Project Management</option></optgroup></select>";
	}
	if(document.getElementsByName("degree")[0].value=="17000012")
	{
	document.getElementById("two").innerHTML="<select name='Goals' style='width: 460px;'onChange='specializationUpdate()'><option value=''>Select One</option><optgroup label='The Richard W.Riley College of Education and Leadership'><option value='Tpp.In.MA'>Teacher Preparation Program with a Master of Arts in Teaching</option><option value='M.S.ED.'>M.S. in Education (M.S. Ed.)</option><option value='Ed.D.'>Doctor of Education (Ed.D.)</option><option value='Ph.D. Ed.'>Ph.D. in Education (Ph.D. Ed.)</option><option value='Ed.S.'>Education Specialist (Ed.S.) in Educational Technology</option><option value='Ed.S.ALTL'>Education Specialist (Ed.S.) in Administrator Leadership for Teaching & Learning </option><option value='Ed.S.TL'>Education Specialist (Ed.S.) Teacher Leadership</option><option value='Ed.S.ELAPP'> Ed.S.  in Educational Leadership & Administration (Principal Preparation)</option><option value='M.S.I.D.T'>Master of Science (M.S.) in Instructional Design and Technology</option></optgroup><optgroup label='School of Psychology'><option value='M.S.P.'>M.S. in Psychology </option><option value='Ph.D.Psy.'>Ph.D. in Psychology </option><option value='P.D.P.C.'>Post-Doctoral Psychology Certificate</option><option value='M.S.FP'>Master of Science Forensic Psychology</option></optgroup><optgroup label='School of Nursing'><option value='B.S.N - M.S.N'>Master of Science in Nursing (MSN) - BSN Track</option><option value='RN.MSN.'>Master of Science in Nursing (MSN) - RN Track</option><option value='P.M.C.N'>Post-Masters Certificates in Nursing</option></optgroup><optgroup label='School of Health Sciences'><option value='M.P.H.'>Master of Public Health (M.P.H.) </option><option value='M.H.A.'>Master of Healthcare Administration (M.H.A.) </option><option value='Ph.D.P.H.'>Ph.D. in Public Health </option><option value='Ph.D.H.S.'>Ph.D. in Health Services </option><option value='MS.CRA.'>M.S. in Clinical Research Administration (MS CRA) </option><option value='M.S.in.H.I'>Master of Science (M.S.) in Health Informatics</option></optgroup><optgroup label='School of Counseling & Social Service'><option value='M.S.M.H.C.'>M.S. in Mental Health Counseling </option><option value='Ph.D.Hu.S.'>Ph.D. in Human Services</option><option value='Ph.D.C.E.S'>Ph.D. in Counselor Education and Supervision</option></optgroup><optgroup label='School of Public Policy and Administration'><option value='M.P.A.'>Master of Public Administration (M.P.A.) </option><option value='M.S.NP'>M.S. in Nonprofit Management and Leadership (M.S. NP) </option><option value='phd.PA.MM'>Ph.D. in Public Policy and Administration - Mixed-Model</option><option value='phd.PA.CB'>Ph.D. in Public Policy and Administration - Course-based</option></optgroup><optgroup label='School of Management'><option value='M.B.A.'>Master of Business Administration (M.B.A.) </option><option value='M.I.S.M.'>Master of Information Systems Management(M.I.S.M.) </option><option value='Ph.D. MGT'>Ph.D. in Management</option><option value='BA.D.'>Doctor of Business Administration</option><option value='M.S.L'>Master of Science (M.S.) Leadership</option><option value='M.S.in.P.M'>Master of Science (M.S.) in Project Management</option></optgroup></select>";
	}
		if(document.getElementsByName("degree")[0].value=="17000013")
	{
	document.getElementById("two").innerHTML="<select name='Goals' style='width: 460px;'onChange='specializationUpdate()'><option value=''>Select One</option><optgroup label='The Richard W.Riley College of Education and Leadership'><option value='Tpp.In.MA'>Teacher Preparation Program with a Master of Arts in Teaching</option><option value='M.S.ED.'>M.S. in Education (M.S. Ed.)</option><option value='Ed.D.'>Doctor of Education (Ed.D.)</option><option value='Ph.D. Ed.'>Ph.D. in Education (Ph.D. Ed.)</option><option value='Ed.S.'>Education Specialist (Ed.S.) in Educational Technology</option><option value='Ed.S.ALTL'>Education Specialist (Ed.S.) in Administrator Leadership for Teaching & Learning </option><option value='Ed.S.TL'>Education Specialist (Ed.S.) Teacher Leadership</option><option value='Ed.S.ELAPP'>Ed.S. in Educational Leadership & Administration (Principal Preparation)</option><option value='M.S.I.D.T'>Master of Science (M.S.) in Instructional Design and Technology</option></optgroup><optgroup label='School of Psychology'><option value='M.S.P.'>M.S. in Psychology </option><option value='Ph.D.Psy.'>Ph.D. in Psychology </option><option value='P.D.P.C.'>Post-Doctoral Psychology Certificate</option><option value='M.S.FP'>Master of Science Forensic Psychology</option></optgroup><optgroup label='School of Nursing'><option value='B.S.N - M.S.N'>Master of Science in Nursing (MSN) - BSN Track</option><option value='RN.MSN.'>Master of Science in Nursing (MSN) - RN Track</option><option value='P.M.C.N'>Post-Masters Certificates in Nursing</option></optgroup><optgroup label='School of Health Sciences'><option value='M.P.H.'>Master of Public Health (M.P.H.) </option><option value='M.H.A.'>Master of Healthcare Administration (M.H.A.) </option><option value='Ph.D.P.H.'>Ph.D. in Public Health </option><option value='Ph.D.H.S.'>Ph.D. in Health Services </option><option value='MS.CRA.'>M.S. in Clinical Research Administration (MS CRA) </option><option value='M.S.in.H.I'>Master of Science (M.S.) in Health Informatics</option></optgroup><optgroup label='School of Counseling & Social Service'><option value='M.S.M.H.C.'>M.S. in Mental Health Counseling </option><option value='Ph.D.Hu.S.'>Ph.D. in Human Services</option><option value='Ph.D.C.E.S'>Ph.D. in Counselor Education and Supervision</option></optgroup><optgroup label='School of Public Policy and Administration'><option value='M.P.A.'>Master of Public Administration (M.P.A.) </option><option value='M.S.NP'>M.S. in Nonprofit Management and Leadership (M.S. NP) </option><option value='phd.PA.MM'>Ph.D. in Public Policy and Administration - Mixed-Model</option><option value='phd.PA.CB'>Ph.D. in Public Policy and Administration - Course-based</option></optgroup><optgroup label='School of Management'><option value='M.B.A.'>Master of Business Administration (M.B.A.) </option><option value='M.I.S.M.'>Master of Information Systems Management(M.I.S.M.) </option><option value='Ph.D. MGT'>Ph.D. in Management</option><option value='BA.D.'>Doctor of Business Administration</option><option value='M.S.L'>Master of Science (M.S.) Leadership</option><option value='M.S.in.P.M'>Master of Science (M.S.) in Project Management</option></optgroup></select>";
	}
}
function specializationUpdate()
{
	if(document.getElementsByName("Goals")[0].value == "phd.PA.MM")
	{
		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option>		<option value='PHD.W1SPP.PPA.W1GN'>General</option> <option value='PHD.W1SPP.PPA.W1CJ'>Criminal Justice</option>		 <option value='PHD.W1SPP.PPA.W1HSP'>Homeland Security Policy and Coordination</option><option value='PHD.W1SPP.PPA.W1HS'>Health Services</option> <option value='PHD.W1SPP.PPA.W1NGO'>International Non Governmental Organizations</option><option value='PHD.W1SPP.PPA.W1LPP'>Law and Public Policy</option> <option value='PHD.W1SPP.PPA.W1LGM'>Local Government Management for Sustainable Communities </option> <option value='PHD.W1SPP.PPA.W1NPL'>Nonprofit Management and Leadership</option><option value='PHD.W1SPP.PPA.W1PML'>Public Management and Leadership</option>	<option value='PHD.W1SPP.PPA.W1PP'>Public Policy</option>	<option value='PHD.W1SPP.PPA.W1PSM'>Public Safety Management</option><option value='PHD.W1SPP.PPA.W1TMP'>Terrorism, Mediation, and Peace</option>		</select>";
	}
	if(document.getElementsByName("Goals")[0].value == "Ph.D.C.E.S")
	{
		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option>		<option value='PHD.W1SBS.CEDS.GEN'>General</option><option value='PHD.W1SBS.CEDS.CLTN'>Consultation</option><option value='PHD.W1SBS.CEDS.CNSC'>Counseling and Social Change</option><option value='PHD.W1SBS.CEDS.FMHC'>Forensic Mental Health</option><option value='PHD.W1SBS.CEDS.NPML'>Nonprofit Management and Leadership</option><option value='PHD.W1SBS.CEDS.TRCS'>Trauma and Crisis</option>	</select>";
	}
	if(document.getElementsByName("Goals")[0].value == "phd.PA.CB")
	{
		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option>		<option value='PHD.W1SBS.PPAD.GEN2'>General</option><option value='PHD.W1SBS.PPAD.CRJ2'>Criminal Justice</option>			<option value='PHD.W1SBS.PPAD.HSP2'>Homeland Security Policy and Coordination</option><option value='PHD.W1SBS.PPAD.HTS2'>Health Services</option><option value='PHD.W1SBS.PPAD.NGO2'>International Non Governmental Organizations</option><option value='PHD.W1SBS.PPAD.LPP2'>Law and Public Policy</option>	<option value='PHD.W1SBS.PPAD.LGM2'>Local Government Management for Sustainable Communities </option>	<option value='PHD.W1SBS.PPAD.NPL2'>Nonprofit Management and Leadership</option><option value='PHD.W1SBS.PPAD.PML2'>Public Management and Leadership</option>	<option value='PHD.W1SBS.PPAD.PPY2'>Public Policy</option><option value='PHD.W1SBS.PPAD.PSM2'>Public Safety Management</option><option value='PHD.W1SBS.PPAD.TMP2'>Terrorism, Mediation, and Peace</option>		</select>";
	}
	
if(document.getElementsByName("Goals")[0].value == "Tpp.In.MA")
	{
		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option>		<option value='MAT.W1EDU.EDU.W1EBD'>Special Education - Emotional/Behavioral Disorders</option><option value='MAT.W1EDU.EDU.W1ECE'>Early Childhood Education</option>	<option value='MAT.W1EDU.EDU.W1LD'>Special Education - Learning Disabilities</option>		</select>";
	}
	if(document.getElementsByName("Goals")[0].value == "M.I.S.M.")
	{
		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MISM.W1EGR.ISM.W1ITS'>IT Strategy Governance</option><option value='MISM.W1EGR.ISM.W1BIM'>Business Information Management</option><option value='MISM.W1EGR.ISM.W1EIS'>Enterprise Information Security</option><option value='MISM.W1EGR.ISM.W1MSC'>Managing Global Software & Service Supply Chains</option></select>";
	}
	if(document.getElementsByName("Goals")[0].value == "M.B.A.")
	{
		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MBA.W1MGT.NEW.W1SD'>General</option><option value='MBA.W1MGT.NEW.W1FI'>Finance</option><option value='MBA.W1MGT.NEW.W1HR'>Human Resources</option><option value='MBA.W1MGT.NEW.W1TC'>Technology</option><option value='MBA.W1MGT.NEW.W1MK'>Marketing</option><option value='MBA.W1MGT.NEW.W1EN'>Entrepreneurship</option><option value='MBA.W1MGT.NEW.W1PM'>Project Management</option><option value='MBA.W1MGT.NEW.W1LD'>Leadership</option><option value='MBA.W1MGT.NEW.W1RM'>Risk Management</option><option value='MBA.W1MGT.BUAD.W1SFU'>MBA- Sustainable Futures</option><option value='MBA.W1MGT.BUAD.W1INB'>MBA- International Business</option><option value='MBA.W1MGT.BUAD.HCM'>Healthcare Management</option><option value='MBA.W1MGT.BUAD.HCSI'>Healthcare System Improvement</option></select>"; 
	}
	if(document.getElementsByName("Goals")[0].value == "M.S.L")
	{
document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MS.W1LDR.LDR.W1MGMT'>General Management</option><option value='MS.W1LDR.LDR.W1ENTR'>Entrepreneurship</option><option value='MS.W1LDR.LDR.W1HRL'>Human Resources Leadership</option><option value='MS.W1LDR.LDR.W1INT'>Innovation &Technology</option><option value='MS.W1LDR.LDR.W1LDEV'>LeaderDevelopment</option><option value='MS.W1LDR.LDR.W1PRJ'>Project Management</option><option value='MS.W1LDR.LDR.W1SFU'>Sustainable Futures</option><option value='MS.W1LDR.LDR.W1SDS'>Self-Designed</option></select>"; 
	}
	if(document.getElementsByName("Goals")[0].value == "Ed.S.")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='EDS.W1EDS.EDT.W1GEN'>General</option></select>";
	}   

if(document.getElementsByName("Goals")[0].value == "M.S.in.P.M")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MS.W1MGT.PRJ.W1GEN'>General</option></select>";
	}  

	if(document.getElementsByName("Goals")[0].value == "Ed.S.ELAPP")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='EDS.W1EDU.EDLA.W1GEN'>General</option></select>";
	}   
	
	if(document.getElementsByName("Goals")[0].value == "M.S.FP")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MS.W1SBS.FORP.GEN'>General</option>	<option value='MS.W1SBS.FORP.MHA'>Mental Health Applications</option>	<option value='MS.W1SBS.FORP.PLS'>Psychology & Legal Systems</option>	<option value='MS.W1SBS.FORP.PPF'>Program Planning & Evaluation in Forensic Settings</option><option value='MS.W1SBS.FORP.FPC'>Forensic Psychology in Community Settings</option></select>";
	}                                  
   
	if(document.getElementsByName("Goals")[0].value == "Ed.S.ALTL")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='EDS.W1EDU.ALDR.W1GEN'>General</option></select>";
	}

if(document.getElementsByName("Goals")[0].value == "M.S.in.H.I")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MS.W1HSS.HLI.W1GEN'>General</option></select>";
	}
	if(document.getElementsByName("Goals")[0].value == "Ed.S.TL")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='EDS.W1EDU.TEL.W1GEN'>General</option></select>";
	}
/*if(document.getElementsByName("Goals")[0].value == "M.S.IN.SENG")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MS.W1EGR.SE'>General</option><option value='MS.W1EGR.SOF.W1DSG'>Design</option><option value='MS.W1EGR.SOF.W1MGMT'>Management</option><option value='MS.W1EGR.SOF.W1PRJ'>Project Management</option><option value='MS.W1EGR.SOF.W1QTE'>Quality & Testing</option><option value='MS.W1EGR.SOF.W1SDS'>Self-Designed</option></select><br><br /><table> <tr><td class='formcont'>Do you have an undergrad degree in Electrical/Computer Engineering or Computer Science?<span class='required'>*</span></td></tr><tr><td class='formcont'><input type='radio' name='dcc' value='1'>Yes<input type='radio' value='2' name='dcc'>No</td></tr><tr><td class='formcont'>Have you successfully completed one year of college-level calculus and a college course in differential equations and linear algebra?<span class='required'>*</span></td></tr><tr><td class='formcont'><input type='radio' name='calculus' value='1'>Yes<input type='radio' value='2' name='calculus'>No</td></tr></table>";
	}
	if(document.getElementsByName("Goals")[0].value == "M.S.IN.SYS.ENG")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MS.W1EGR.SY'>General</option><option value='MS.W1EGR.SYS.W1OPS'>Operations</option></select><br><br /><table> <tr><td class='formcont'>Do you have an undergrad degree in Electrical/Computer Engineering or Computer Science?<span class='required'>*</span></td></tr><tr><td class='formcont'><input type='radio' name='dcc' value='1'>Yes<input type='radio' value='2' name='dcc'>No</td></tr><tr><td class='formcont'>Have you successfully completed one year of college-level calculus and a college course in differential equations and linear algebra?<span class='required'>*</span></td></tr><tr><td class='formcont'><input type='radio' name='calculus' value='1'>Yes<input type='radio' value='2' name='calculus'>No</td></tr></table>";
	}*/
	if(document.getElementsByName("Goals")[0].value == "M.S.NP")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MS.W1SPP.NPM.W1GN'>General</option></select>";
	}

	if(document.getElementsByName("Goals")[0].value == "M.P.A.")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MPA.W1SPP.PA.W1SGN'>General</option><option value='MPA.W1SPP.PA.W1LPP '>Law and Public Policy</option><option value='MPA.W1SPP.PA.W1LGM'>Local Government Management</option><option value='MPA.W1SPP.PA.W1SPH'>Homeland Security Policy</option><option value='MPA.W1SPP.PA.W1SNPL'>Nonprofit Management & Leadership</option><option value='MPA.W1SPP.PA.W1PA'>Policy Analysis</option><option value='MPA.W1SPP.PA.W1IPS'>Interdisciplinary Policy Studies</option><option value='MPA.W1SPP.PA.W1HPY'>Health Policy</option><option value='MPA.W1SBS.PADM.PML'>Public Management and Leadership</option><option value='MPA.W1SBS.PADM.TMP'>Terrorism, Mediation, and Peace</option></select>";
	}
	if(document.getElementsByName("Goals")[0].value == "M.S.ED.")
	{document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='M.E.GN'>General</option><option value='MS.W1EDU.EDU.W1EL'>Educational Leadership</option><option value='MS.W1EDU.EDU.W1RCIA'>Curriculum, Instruction, and Assessment (Grades K-12)</option><option value='MS.W1EDU.EDU.W1RERL'>Elementary Reading and Literacy (Grades preK-6)</option><option value='MS.W1EDU.EDU.W1REM'>Elementary Reading and Mathematics (Grades K-6)</option><option value='MS.W1EDU.EDU.W1RITC'>Integrating Technology in the Classroom (Grades K-12)</option><option value='MS.W1EDU.EDU.W1RLL'>Literacy and Learning in the Content Areas (Grades 6-12)</option><option value='MS.W1EDU.EDU.W1RMA'>Mathematics (Grades 6-8)</option><option value='MS.W1EDU.EDU.W1RMK'>Mathematics (Grades K-5)</option><option value='MS.W1EDU.EDU.W1ML'>Middle Level Education (Grades 5-8)</option><option value='MS.W1EDU.EDU.W1SCI'>Science (Grades K-8)</option><option value='MS.W1EDU.EDU.W1RTL'>Teacher Leadership (Grades K-12)</option><option value='MS.W1EDU.EDUC.PRDV'>Professional Development, Grades P-12</option><option value='MS.W1EDU.EDU.W1ADL'>Adolescent Literacy and Technology</option><option value='MS.W1EDU.EDU.W1SPED'>Special Education (non-licensure)</option></select><br><br /><table> <tr><td class='formcont'>I hold a current teaching certificate<span class='required'>*</span><input type='radio' name='tcertificate' value='1001'>Yes<input type='radio' value='1002' name='tcertificate'>No</td></tr></table>";
	}
	
	if(document.getElementsByName("Goals")[0].value == "M.S.I.D.T")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MS.W1EDU.EIDT.GEN'>General</option><option value='MS.W1EDU.EIDT.TPI'>Training and Performance Improvement</option><option value='MS.W1EDU.EIDT.ONL'>Online Learning</option></select>";
	}

	

	if(document.getElementsByName("Goals")[0].value == "MS.ED.DEGREE")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'> <option value=''>Select One</option><option value='MS.W1EDU.EDU.W1EBD'>Emotional Behavioral Disorders (K-12) 	</option><option value='MS.W1EDU.EDU.W1LD'>Learning Disabilties (K-12)	</option></select>";
	}

		if(document.getElementsByName("Goals")[0].value == "S.E.P.8MONTHS.")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='SPED.W1EDU.EDU.W1EBD'>Emotional Behavioral Disorders (K-12)	</option><option value='SPED.W1EDU.EDU.W1LD'>Learning Disabilities (K-12) 	</option></select>";
	}
if(document.getElementsByName("Goals")[0].value == "M.S.M.H.C.")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MS.W1PSY.MHC.W1GN'>General</option><option value='MS.W1SBS.MHCO.FORC'>Forensic Counseling</option></select>";
	}
		if(document.getElementsByName("Goals")[0].value == "M.S.P.")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MS.W1PSY.LOCK.W1GN '>General	</option><option value='MS.W1PSY.LOCK.W1ORG'>Organizational Psychology and Development</option><option value='MS.W1PSY.LOCK.W1CMR'>Crisis Management & Response</option><option value='MS.W1PSY.LOCK.W1LDC '>Leadership Development & Coaching</option><option value='MS.W1PSY.LOCK.W1MEP'>Media Psychology </option><option value='MS.W1PSY.LOCK.W1HLP'>Health Psychology</option><option value='MS.W1PSY.LOCK.W1ONM'>Organizational Psychology & Nonprofit Management</option><option value='MS.W1PSY.LOCK.W1PER'>Program Evaluation & Research</option><option value='MS.W1PSY.LOCK.W1PYC'>Psychology of Culture</option><option value='MS.W1PSY.LOCK.W1PAS'>Psychology, Public Administration & Social Change</option><option value='MS.W1PSY.LOCK.W1SOCP'>Social Psychology</option><option value='MS.W1PSY.LOCK.W1PTS'>Terrorism & Security</option></select>";
	}

if(document.getElementsByName("Goals")[0].value == "RN.MSN.")
	{
		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='NURSING.GEN.INTERES2'>General</option><option value='MS.W1HHS.NUR.W1ED2'>Education</option><option value='MS.W1HHS.NUR.W1LMS2'>Leadership and Management</option><option value='MS.W1HHS.NUR.W1IS2'>Informatics</option></select><br><br><table> <tr><td  class='formcont'>I have a valid RN license<span class='required'>*</span> <input type='radio' name='rnlicense' value='1'>Yes<input type='radio' value='2' name='rnlicense'>No</td></tr></table>";
	}
if(document.getElementsByName("Goals")[0].value == "B.S.N - M.S.N")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='NURSING.GEN.INTEREST'>General</option><option value='MS.W1HHS.NUR.W1ED'>Education</option><option value='MS.W1HHS.NUR.W1LMS'>Leadership and Management</option><option value='MS.W1HHS.NUR.W1IS'>Informatics	</option></select><br><br /><table> <tr><td  class='formcont'>I have a valid RN license <span class='required'>*</span><input type='radio' name='rnlicense' value='1'>Yes<input type='radio' value='2' name='rnlicense'>No</td></tr></table> ";
	}

	if(document.getElementsByName("Goals")[0].value == "P.M.C.N")
	{
		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='CRT.W1NUR.NUR.W1EDUC'>Nursing Education</option><option value='CRT.W1NUR.NUR.W1LMG'>Nursing Leadership & Management</option><option value='CRT.W1NUR.NUR.W1INF'> Nursing Informatics </option></select>";
	}
	if(document.getElementsByName("Goals")[0].value == "MS.CRA.")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MS.W1HHS.CRA.W1GN'>General	</option></select>";
	}

		if(document.getElementsByName("Goals")[0].value == "M.H.A.")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MHA.W1HHS.HA.W1GN'>General</option></select>";
	}
	if(document.getElementsByName("Goals")[0].value == "M.P.H.")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='MPH.W1HHS.RLK.W1GN'>General</option></select>";
	}

		if(document.getElementsByName("Goals")[0].value == "Ph.D. MGT")
	{
//<option value='PHD.W1MGT.AMD.W1EM'>Engineering Management</option>
		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='PHD.W1MGT.MGMT.GEN'>General</option><option value='PHD.W1MGT.MGMT.ACCT'>Accounting	</option><option value='PHD.W1MGT.MGMT.FINA'>Finance	</option><option value='PHD.W1MGT.MGMT.ISM'>Information Systems Management</option><option value='PHD.W1MGT.MGMT.KMG'>Knowledge Management</option><option value='PHD.W1MGT.MGMT.LOC'>Leadership and Organizational Change</option><option value='PHD.W1MGT.MGMT.LEM'>Learning Management</option><option value='PHD.W1MGT.MGMT.OPR'>Operations Research</option><option value='PHD.W1MGT.MGMT.ENM'>Engineering Management</option><option value='PHD.W1MGT.MGMT.ISM2'>Information Systems Management - Course-based</option><option value='PHD.W1MGT.MGMT.LOC2 '>Leadership & Organizational Change - Course-based</option><option value='PHD.W1MGT.MGMT.SDS'>Self-Designed</option></select>";
	}
	if(document.getElementsByName("Goals")[0].value == "Ed.D.")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='EDD.W1EDU.EDU.W1TL'>Teacher Leadership</option><option value='EDD.W1EDU.EDU.W1AL'>Administrator Leadership for Teaching and Learning</option><option value='EDD.W1EDU.EDU.W1HEAL'>Higher Education and Adult Learning</option></select><br><br /><table> <tr><td class='formcont'>I hold a current teaching certificate<span class='required'>*</span><input type='radio' name='tcertificate' value='1001'>Yes<input type='radio' value='1002' name='tcertificate'>No</td></tr></table>";
	}

		if(document.getElementsByName("Goals")[0].value == "BA.D.")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='DBA.W1DBA.BUAD.W1ENT'>Entrepreneurship</option><option value='DBA.W1DBA.BUAD.W1FIN'>Finance</option><option value='DBA.W1DBA.BUAD.W1GSM'>Global Supply Chain Management         </option><option value='DBA.W1DBA.BUAD.W1INB'>International Business</option><option value='DBA.W1DBA.BUAD.W1ISM'>Information Systems Management</option><option value='DBA.W1DBA.BUAD.W1LDR'>Leadership</option><option value='DBA.W1DBA.BUAD.W1MRK'>Marketing</option><option value='DBA.W1DBA.BUAD.W1SDS'>Self-Designed</option><option value='DBA.W1DBA.BUAD.W1SIM'>Social Impact Management</option><option value='DBA.W1DBA.BUAD.W1TCE'>Technology Entrepreneurship</option></select>";
	}
		if(document.getElementsByName("Goals")[0].value == "Ph.D. Ed.")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='PHD.W1EDU.EDU.W1GN'>General</option><option value='PHD.W1EDU.EDU.W1AE'>Adult Education Leadership	</option><option value='PHD.W1EDU.EDU.W1CC'>Community College Leadership</option><option value='PHD.W1EDU.EDU.W1EC'>Early Childhood and Primary Education</option><option value='PHD.W1EDU.EDU.W1RET'>Educational Technology</option><option value='PHD.W1EDU.EDU.W1HE'>Higher Education</option><option value='PHD.W1EDU.EDU.W1KL'>K-12 Education Leadership</option><option value='PHD.W1EDU.EDU.W1SE'>Special Education</option><option value='PHD.W1EDU.EDU.W1SD'>Self-Designed</option></select>";
	}
	if(document.getElementsByName("Goals")[0].value == "Ph.D.H.S.")
	{

		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='PHD.W1HHS.HTH.W1GN'>General</option><option value='PHD.W1HHS.HTH.W1HMP'>Health Management and Policy</option><option value='PHD.W1HHS.HTH.W1HP'>Community Health Promotion and Education</option></select>";
	}

		if(document.getElementsByName("Goals")[0].value == "Ph.D.Hu.S.")
	{
		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='PHD.W1HHS.HMN.W1GN'>General</option><option value='PHD.W1HHS.HMN.W1CSW'>Clinical Social Work</option><option value='PHD.W1HHS.HMN.W1CJ'>Criminal Justice</option><option value='PHD.W1HHS.HMN.W1PC'>Counseling</option><option value='PHD.W1HHS.HMN.W1FS'>Family Studies and Intervention Strategies</option><option value='PHD.W1HHS.HMN.W1HSA'>Human Services Administration</option><option value='PHD.W1HHS.HMN.W1SO'>Social Policy Analysis and Planning</option></select>";
	}
	if(document.getElementsByName("Goals")[0].value == "Ph.D.P.H.")
	{
		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='PHD.PUBH.GN'>General	</option><option value='PHD.W1HHS.PBH.W1CH'>Community Health Promotion and Education</option><option value='PHD.W1HHS.PBH.W1EP'>Epidemiology</option></select>";
	}
		if(document.getElementsByName("Goals")[0].value == "Ph.D.Psy.")
	{
		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='PHD.PSYC.GN'>General</option><option value='PHD.W1PSY.PSY.W1CN'>Clinical Psychology</option><option value='PHD.W1PSY.PSY.W1CO'>Counseling Psychology</option><option value='	PHD.W1PSY.PSY.W1EDP'>General Educational Psychology</option><option value='PHD.W1PSY.PSY.W1RE'>General Research Evaluation</option><option value='PHD.W1PSY.PSY.W1HLP'>Health Psychology</option><option value='PHD.W1PSY.PSY.W1OG'>Organizational Psychology</option></select>";
	}
	/*if(document.getElementsByName("Goals")[0].value == "P.P.A.")
	{
		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='PHD.W1SPP.PPA.W1GN'>General</option><option value='PHD.W1SPP.PPA.W1CJ'>Criminal Justice</option><option value='PHD.W1SPP.PPA.W1HSP'>Homeland Security Policy and Coordination</option><option value='PHD.	W1SPP.PPA.W1HS'>Health Services</option><option value='PHD.W1SPP.PPA.W1NGO '>International Non Governmental Organizations	</option><option value='PHD.W1SPP.PPA.W1KM'>Knowledge Management</option><option value='PHD.W1SPP.PPA.W1NPL'>Nonprofit Management and Leadership</option><option value='PHD.W1SPP.PPA.W1PML'>Public Management and Leadership</option><option value='PHD.W1SPP.PPA.W1PP'>Public Policy	</option><option value='PHD.W1SPP.PPA.W1PSM'>Public Safety Management</option></select>";
	}*/
		if(document.getElementsByName("Goals")[0].value == "P.D.P.C.")
	{
		document.getElementById("one").innerHTML ="<select name='specialization' style='width: 460px;'><option value=''>Select One</option><option value='CRT.W1PSY.PSY.W1OT'>Online Teaching</option><option value='CRT.W1PSY.PSY.W1CCP'>Clinical Child Psychology</option><option value='CRT.W1PSY.PSY.W1CLA'>Clinical Assessment</option></select>";
     }
	
}
function validate()
{
	if(document.getElementsByName("degree")[0].value=="")
	{
        alert("Please Select Highiest Level Of Graduation Year");
	   document.getElementsByName("degree")[0].focus();
	    return false;
	}
if(document.getElementsByName("Goals")[0].value=="")
	{
alert("Please Select Degree Program");
	   document.getElementsByName('Goals')[0].focus();
	  
	   return false;
	}
	//alert(document.getElementsByName("specialization")[0].value);	


if(document.getElementsByName("specialization")[0].value=="")
	{
alert("Please Select Degree Specialization");
	   document.getElementsByName('specialization')[0].focus();
	  
	   return false;
	}
	


	if((document.getElementsByName("Goals")[0].value=="M.S.ED.")||(document.getElementsByName("Goals")[0].value == "Ed.D."))
	{
      // alert("document.getElementsByName('Goals')[0].value");
  if(!(document.getElementsByName("tcertificate")[0].checked||document.getElementsByName("tcertificate")[1].checked))
	{
		alert("Please Select current Teaching Certificate");
        document.getElementsByName("tcertificate")[0].focus();
		return false;
	}

	
	if(!(document.getElementsByName("age")[0].checked || document.getElementsByName("age")[1].checked))
	{
		alert("Please Select Age");
        document.getElementsByName("age")[0].focus();
		return false;
	}
	if(document.getElementsByName("month")[0].value=="")
	{
		alert("Please Select When Will You Be Available To Start Classes");
        document.getElementsByName("month")[0].focus();
		return false;
}
	}
	 if((document.getElementsByName("Goals")[0].value =="RN.MSN.")||(document.getElementsByName("Goals")[0].value == "B.S.N - M.S.N"))
	{
	if(!(document.getElementsByName("rnlicense")[0].checked ||document.getElementsByName("rnlicense")[1].checked))
	{
		alert("Please Select Valid RN License");
        document.getElementsByName("rnlicense")[0].focus();
		return false;
	}
	if(!(document.getElementsByName("age")[0].checked || document.getElementsByName("age")[1].checked))
	{
		alert("Please Select Age");
        document.getElementsByName("age")[0].focus();
		return false;
	}
	if(document.getElementsByName("month")[0].value=="")
	{
		alert("Please Select When Will You Be Available To Start Classes");
        document.getElementsByName("month")[0].focus();
		return false;
}
	}


if(document.getElementsByName("Goals")[0].value =="P.M.C.N")
	{
        if((document.getElementsByName("degree")[0].value=="17000005")||(document.getElementsByName("degree")[0].value=="17000115") || (document.getElementsByName("degree")[0].value=="2134") || (document.getElementsByName("degree")[0].value=="17000009") || (document.getElementsByName("degree")[0].value=="17000010") )
		{
			alert("Your Highest Level Of Education Must be One Of The Following,\nPost-doctoral certificate or  Ph.D. degree or \n Master's degree");
			 document.getElementsByName("degree")[0].focus();
			return false;
		}
		if(!(document.getElementsByName("age")[0].checked || document.getElementsByName("age")[1].checked))
	{
		alert("Please Select Age");
        document.getElementsByName("age")[0].focus();
		return false;
	}
	if(document.getElementsByName("month")[0].value=="")
	{
		alert("Please Select When Will You Be Available To Start Classes");
        document.getElementsByName("month")[0].focus();
		return false;
}

	}


	if((document.getElementsByName("Goals")[0].value == "M.S.IN.SENG")||(document.getElementsByName("Goals")[0].value == "M.S.IN.SYS.ENG"))
	{
       if(!(document.getElementsByName("dcc")[0].checked ||document.getElementsByName("dcc")[1].checked))
	{
		alert("Please indicate whether you have the required undergrad degree.\nPlease indicate whether you have completed the prerequisite courses.");
        document.getElementsByName("dcc")[0].focus();
		return false;
	}
    if(!(document.getElementsByName("calculus")[0].checked ||document.getElementsByName("calculus")[1].checked))
	{
		alert("Please indicate whether you have completed the prerequisite courses.");
        document.getElementsByName("calculus")[0].focus();
		return false;
	}
	if((document.getElementsByName("calculus")[1].checked) && (document.getElementsByName("dcc")[1].checked))
	{
		alert(" One Of These Must Be Yes \n  you have completed the prerequisite courses \n you have the required undergrad degree. have You completed the prerequisite courses.");
		return false;
	}
		if(!(document.getElementsByName("age")[0].checked || document.getElementsByName("age")[1].checked))
	{
		alert("Please Select Age");
        document.getElementsByName("age")[0].focus();
		return false;
	}
	if(document.getElementsByName("month")[0].value=="")
	{
		alert("Please Select When Will You Be Available To Start Classes");
        document.getElementsByName("month")[0].focus();
		return false;
}
	
	}
	if(!(document.getElementsByName("age")[0].checked || document.getElementsByName("age")[1].checked))
	{
		alert("Please Select Age");
        document.getElementsByName("age")[0].focus();
		return false;
	}
	if(document.getElementsByName("month")[0].value=="")
	{
		alert("Please Select When Will You Be Available To Start Classes");
        document.getElementsByName("month")[0].focus();
		return false;
     }
}



function validate1()
{
	String.prototype.trim1 = 
 function trimblanks() { return this.split(/\s/).join(''); };
if(	document.getElementsByName("First_Name")[0].value.trim1()=="")
	{
	   alert("Please Enter First Name");
	   document.getElementsByName("First_Name")[0].focus();
	   document.getElementsByName("First_Name")[0].select();
	   return false;
	}
if(!(isNaN(document.getElementsByName("First_Name")[0].value.trim1())))
	{
	   alert(" Please Enter Valid First Name");document.getElementsByName("First_Name")[0].focus();
	   document.getElementsByName("First_Name")[0].select();
	   return false;
	}
if(	document.getElementsByName("Last_Name")[0].value.trim1()=="")
	{
	  alert("Please Enter Last Name"); document.getElementsByName("Last_Name")[0].focus();
	   document.getElementsByName("Last_Name")[0].select();
	   return false;
	}
if(	!(isNaN(document.getElementsByName("Last_Name")[0].value.trim1())))
	{
	   alert("Please  Enter Valid Last Name");
	   document.getElementsByName("Last_Name")[0].focus();
	   document.getElementsByName("Last_Name")[0].select();
	   return false;
	}
	if(	document.getElementsByName("Address1")[0].value.trim1()=="")
	{
	  alert(" Please Enter Home Address"); document.getElementsByName("Address1")[0].focus();
	   document.getElementsByName("Address1")[0].select();
	   return false;
	}
	
	if(	!(isNaN(document.getElementsByName("Address1")[0].value.trim1())))
	{
	   alert("Please  Enter Valid Home Address");document.getElementsByName("Address1")[0].focus();
	   document.getElementsByName("Address1")[0].select();
	   return false;
	}
	
	if(document.getElementsByName("Email")[0].value.trim1()=="")
		{
		alert("Please Enter Email address");
		document.getElementsByName("Email")[0].focus();
		document.getElementsByName("Email")[0].select();
		return false;
		}



	if(!(document.getElementsByName("Email")[0].value.trim1()==""))
	{
	var evalue = document.getElementsByName("Email")[0].value.trim1();
      //var emailPat = /^(\".*\"|\w*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z]\w*(\.[A-Za-z]\w*)+)$/;
	   //var emailPat = /^[a-zA-Z][\w\.-]*[a-zA-Z0-9_]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/;
	   var emailPat=/^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9])+(\.[a-zA-Z0-9_-]+)+$/;
	  var matchArray = evalue.match(emailPat);

		if(!emailPat.test(evalue))
		{
			alert("Please Enter a Valid E-mail Address.");
			//alert(fv);
			document.getElementsByName("Email")[0].focus();
			document.getElementsByName("Email")[0].select();
  			return false;
	}
	}

	if(	document.getElementsByName("zip")[0].value.trim1()=="")
	{
	   alert(" Please Enter Zip");
	   document.getElementsByName("zip")[0].focus();
	   document.getElementsByName("zip")[0].select();
	   return false;
	}
	if(	isNaN(document.getElementsByName("zip")[0].value.trim1()))
	{
	   alert(" Please Enter Valid Zip");document.getElementsByName("zip")[0].focus();
	   document.getElementsByName("zip")[0].select();
	   return false;
	}
	if(	document.getElementsByName("zip")[0].value.trim1().length<"5" || document.getElementsByName("zip")[0].value.trim1().length>"5")
	{
	   alert(" Please Enter Valid Zip");document.getElementsByName("zip")[0].focus();
	   document.getElementsByName("zip")[0].select();
	   return false;
	}
if(	document.getElementsByName("zip")[0].value.trim1()=="00000")
	{
	   alert(" Please Enter Valid Zip");
	   document.getElementsByName("zip")[0].focus();
	   document.getElementsByName("zip")[0].select();
	   return false;
	}
	
	if(	document.getElementsByName("country")[0].value.trim1()=="")
	{
	   alert("Please Select Country");
	   document.getElementsByName("country")[0].focus();
	   
	   return false;
	}
	
	if(	document.getElementsByName("state")[0].value.trim1()=="")
	{
	   alert("Please Select  State/Province");
	   document.getElementsByName("state")[0].focus();
	    
	   return false;
	}
	

	if( document.getElementsByName("h_phone")[0].value.trim1() == '') 
{
alert("Please Enter Your Home Phone Number");
document.getElementsByName("h_phone")[0].select();
return false;
}
if (isNaN(document.getElementsByName("h_phone")[0].value.trim1()))
		{
	alert("Please Enter Valid  Home Phone Number");
        document.getElementsByName("h_phone")[0].select();
		return false;
		}
if ( document.getElementsByName("h_phone")[0].value.trim1().length < 3)
		{
	alert("Please Enter Valid Home Phone Number");
        document.getElementsByName("h_phone")[0].select();
		return false;
		}
if( document.getElementsByName("h_phone_1")[0].value.trim1() == '')
	{
alert("Please Enter Your Home Phone Number");
document.getElementsByName("h_phone_1")[0].select();
return false;
}

	if (isNaN(document.getElementsByName("h_phone_1")[0].value.trim1()))
		{
	alert("Please Enter Valid Home Phone Number");
        document.getElementsByName("h_phone_1")[0].select();
		return false;
		}
if (document.getElementsByName("h_phone_1")[0].value.trim1().length < 3)
		{
	alert("Please Enter Valid Home Phone Number");
        document.getElementsByName("h_phone_1")[0].select();
		return false;
		}
	if( document.getElementsByName("h_phone_2")[0].value.trim1() == '') 
{
alert("Please Enter Your Home Phone Number");
document.getElementsByName("h_phone_2")[0].select();
return false;
}
if (isNaN(document.getElementsByName("h_phone_2")[0].value.trim1()))
		{
	alert("Please Enter Valid Home  Phone Number");
        document.getElementsByName("h_phone_2")[0].select();
		return false;
		}

if  (document.getElementsByName("h_phone_2")[0].value.trim1().length < 4)
		{
	alert("Please Enter Valid Home Phone Number");
        document.getElementsByName("h_phone_2")[0].select();
		return false;
		}
		if( document.getElementsByName("w_phone")[0].value.trim1() == '') 
{
alert("Please Enter Your Work Phone Number");
document.getElementsByName("w_phone")[0].select();
return false;
}
if (isNaN(document.getElementsByName("w_phone")[0].value.trim1()))
		{
	alert("Please Enter Valid Work Phone Number");
        document.getElementsByName("w_phone")[0].select();
		return false;
		}
if ( document.getElementsByName("w_phone")[0].value.trim1().length < 3)
		{
	alert("Please Enter Valid Work Phone Number");
        document.getElementsByName("w_phone")[0].select();
		return false;
		}
if( document.getElementsByName("w_phone_1")[0].value.trim1() == '')
	{
alert("Please Enter Your Work Phone Number");
document.getElementsByName("w_phone_1")[0].select();
return false;
}

	if (isNaN(document.getElementsByName("w_phone_1")[0].value.trim1()))
		{
	alert("Please Enter Valid Work Phone Number");
        document.getElementsByName("w_phone_1")[0].select();
		return false;
		}
if (document.getElementsByName("w_phone_1")[0].value.trim1().length < 3)
		{
	alert("Please Enter Valid Work Phone Number");
        document.getElementsByName("w_phone_1")[0].select();
		return false;
		}
	if( document.getElementsByName("w_phone_2")[0].value.trim1() == '') 
{
alert("Please Enter Your Work Phone Number");
document.getElementsByName("w_phone_2")[0].select();
return false;
}
if (isNaN(document.getElementsByName("w_phone_2")[0].value.trim1()))
		{
	alert("Please Enter Valid Work Phone Number");
        document.getElementsByName("w_phone_2")[0].select();
		return false;
		}

if  (document.getElementsByName("w_phone_2")[0].value.trim1().length < 4)
		{
	alert("Please Enter Valid Work Phone Number");
        document.getElementsByName("w_phone_2")[0].select();
		return false;
		}
if(document.getElementsByName("city")[0].value.trim1()=="")
	{
	   alert("Please Enter City");
	   document.getElementsByName("city")[0].focus();
	   document.getElementsByName("city")[0].select();
	   return false;
	}
	if(	!(isNaN(document.getElementsByName("city")[0].value.trim1())))
	{
	   alert("Please  Enter Valid City");document.getElementsByName("city")[0].focus();
	   document.getElementsByName("city")[0].select();
	   return false;
	}

if(	document.getElementsByName("call")[0].value.trim1()=="")
	{
	   alert("PleaseSelect Best Contact Time");
	   document.getElementsByName("call")[0].focus();
	   
	   return false;
	}


}
function call5(event) {
	if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105))    
    {
	               if(document.getElementsByName("h_phone")[0].value.length==3)
	                   {
					   document.getElementsByName("h_phone_1")[0].focus();
					   return false;
	                    }
                }
}

function call6(event) {
	if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105))    
    {
	               if(document.getElementsByName("h_phone_1")[0].value.length==3)
	                 {
					   document.getElementsByName("h_phone_2")[0].focus();
					   return false;
	                }
                }
}
				function call00(event) {
					if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105))    
                    {
	               if(document.getElementsByName("w_phone")[0].value.length==3)
	                   {
					   document.getElementsByName("w_phone_1")[0].focus();
					   return false;
	                    }
                }
			}

function call0(event) {
	if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105))    
    {
	               if(document.getElementsByName("w_phone_1")[0].value.length==3)
	                 {
					   document.getElementsByName("w_phone_2")[0].focus();
					   return false;
	                }
                }
}

function getdate(){
	var m_names = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
 var str=" When is your likely enrollment date?<span class=\"required\">*</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
	var d = new Date();
     var curr_month =  m_names[d.getMonth()];
     var curr_year = d.getFullYear();
	//alert(curr_month+ "        " +curr_year);
	i=d.getMonth();
	k=d.getFullYear();
	str+="<select name=\"month\">";
		 for(j=d.getMonth();j<d.getMonth()+9;j++){			
			if(i>=12){
				i=0;
				k++;
			}
         str+="<option value='"+m_names[i]+" "+k+"'>"+m_names[i]+" "+k+"</option>";	
		  i++;
	}
	str+="</option>"
	document.getElementById("date").innerHTML=str;
	
}