//call tracking
/*
var CPMACCOUNTID='200072';

var CPMClientDir='UOP-Organic';

var CPMPhoneNumber='8668323793';

var CPMcustom1 = '';

var CPMcustom2 = '';

var CPMcustom3 = '';

var CPMcustom4 = '';

var CPMcustom5 = '';

var CPMcustom6 = '';

var CPMcustom7 = '';

var CPMcustom8 = '';

var CPMcustom9 = '';

var CPMcustom10 = '';



var CPMUrl

if(location.protocol == 'https:'){

	CPMUrl='https://analyticssl.clickpathmedia.com';

} else {

	CPMUrl='http://analytics.clickpathmedia.com';

}



function DisplayPhoneText(pat) {

  var strResult = "";

  var intDigit = 0;



  for(var i=0;i<pat.length&&intDigit<10;++i){

	if (pat.charAt(i) == "N") {

		strResult = strResult + CPMPhoneNumber.charAt(intDigit);

		intDigit = intDigit + 1;

	}

	else {

		strResult = strResult + pat.charAt(i);

	}

  }



  if (intDigit < 10) {

	strResult = strResult + CPMPhoneNumber.substr(intDigit);

  }



  document.write(strResult);

};



function DisplayPhoneImage(dir) {

  document.write('<img src="' + CPMUrl + '/JS/' + CPMClientDir + '/' + dir + '/Sep1.gif">');

  document.write('<img src="' + CPMUrl + '/JS/' + CPMClientDir + '/' + dir + '/Number' + CPMPhoneNumber.substr(0,1) + '.gif">');

  document.write('<img src="' + CPMUrl + '/JS/' + CPMClientDir + '/' + dir + '/Number' + CPMPhoneNumber.substr(1,1) + '.gif">');

  document.write('<img src="' + CPMUrl + '/JS/' + CPMClientDir + '/' + dir + '/Number' + CPMPhoneNumber.substr(2,1) + '.gif">');

  document.write('<img src="' + CPMUrl + '/JS/' + CPMClientDir + '/' + dir + '/Sep2.gif">');

  document.write('<img src="' + CPMUrl + '/JS/' + CPMClientDir + '/' + dir + '/Number' + CPMPhoneNumber.substr(3,1) + '.gif">');

  document.write('<img src="' + CPMUrl + '/JS/' + CPMClientDir + '/' + dir + '/Number' + CPMPhoneNumber.substr(4,1) + '.gif">');

  document.write('<img src="' + CPMUrl + '/JS/' + CPMClientDir + '/' + dir + '/Number' + CPMPhoneNumber.substr(5,1) + '.gif">');

  document.write('<img src="' + CPMUrl + '/JS/' + CPMClientDir + '/' + dir + '/Sep3.gif">');

  document.write('<img src="' + CPMUrl + '/JS/' + CPMClientDir + '/' + dir + '/Number' + CPMPhoneNumber.substr(6,1) + '.gif">');

  document.write('<img src="' + CPMUrl + '/JS/' + CPMClientDir + '/' + dir + '/Number' + CPMPhoneNumber.substr(7,1) + '.gif">');

  document.write('<img src="' + CPMUrl + '/JS/' + CPMClientDir + '/' + dir + '/Number' + CPMPhoneNumber.substr(8,1) + '.gif">');

  document.write('<img src="' + CPMUrl + '/JS/' + CPMClientDir + '/' + dir + '/Number' + CPMPhoneNumber.substr(9,1) + '.gif">');

};



document.write('<script type="text/javascript" LANGUAGE="JavaScript" src="');

document.write(CPMUrl + '/JS/' + CPMClientDir + '/clickpathremote.js');

document.write('"><\/sc' + 'ript>');

*/
//end


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function validateForm() {
		
	var forgot = '';

	var digits = "0123456789";
	// non-digit characters which are allowed in phone numbers
	var phoneNumberDelimiters = "()- ";
	// characters which are allowed in international phone numbers
	// (a leading + is OK)
	var validWorldPhoneChars = phoneNumberDelimiters + "+";
	// Minimum no of digits in an international phone no.
	var minDigitsInIPhoneNumber = 10;
	
	function isInteger(s)
	{   var i;
		for (i = 0; i < s.length; i++)
		{   
			// Check that current character is number.
			var c = s.charAt(i);
			if (((c < "0") || (c > "9"))) return false;
		}
		// All characters are numbers.
		return true;
	}
	
	function stripCharsInBag(s, bag)
	{   var i;
		var returnString = "";
		// Search through string's characters one by one.
		// If character is not in bag, append to returnString.
		for (i = 0; i < s.length; i++)
		{   
			// Check that current character isn't whitespace.
			var c = s.charAt(i);
			if (bag.indexOf(c) == -1) returnString += c;
		}
		return returnString;
	}
	
	function checkInternationalPhone(strPhone){
	s=stripCharsInBag(strPhone,validWorldPhoneChars);
	return (isInteger(s) && s.length == minDigitsInIPhoneNumber);
	}

	with(document.lead){
		if(programid.value == ""){forgot += ' - Your Degree Objective\n';}
		if(!firstname.value){forgot += ' - Your First Name\n';}
		if(!lastname.value){forgot += ' - Your Last Name\n';}
		if(!address.value){forgot += ' - Your Address\n';}
		if(addresstype.value == ""){forgot += ' - Your Address Type\n';}
		if(!city.value){forgot += ' - Your City\n';}
		if(!state.value){forgot += ' - Your State/Province\n';}
		if(!zipcode.value){forgot += ' - Your Zip Code\n';}
		if(diploma.value == ""){forgot += ' - Your Diploma\n';}
		
		if(!dayphone.value){forgot += ' - Your Day phone number\n';
		} else if (checkInternationalPhone(dayphone.value)==false) {
			forgot += ' - Invalid Day phone number\n';
		}
		if(!evephone.value){forgot += ' - Your Evening phone number\n';
		} else if (checkInternationalPhone(evephone.value)==false) {
			forgot += ' - Invalid Evening phone number\n';
		}
		
		if(!emailaddress.value){
			forgot += ' - Your Email address\n';
		}else if((emailaddress.value.indexOf ('@', 0) == -1) || (emailaddress.value.indexOf ('.', 0) == -1)){
			forgot += ' - Invalid email address\n';
		}
		if (forgot) {
			alert("Please complete the following required fields:\n\n" + forgot + "\n");
			return false;
		}
	}
	return true;	
}

function validateForm2() {
		
	var forgot = '';

	var digits = "0123456789";
	// non-digit characters which are allowed in phone numbers
	var phoneNumberDelimiters = "()- ";
	// characters which are allowed in international phone numbers
	// (a leading + is OK)
	var validWorldPhoneChars = phoneNumberDelimiters + "+";
	// Minimum no of digits in an international phone no.
	var minDigitsInIPhoneNumber = 10;
	
	function isInteger(s)
	{   var i;
		for (i = 0; i < s.length; i++)
		{   
			// Check that current character is number.
			var c = s.charAt(i);
			if (((c < "0") || (c > "9"))) return false;
		}
		// All characters are numbers.
		return true;
	}
	
	function stripCharsInBag(s, bag)
	{   var i;
		var returnString = "";
		// Search through string's characters one by one.
		// If character is not in bag, append to returnString.
		for (i = 0; i < s.length; i++)
		{   
			// Check that current character isn't whitespace.
			var c = s.charAt(i);
			if (bag.indexOf(c) == -1) returnString += c;
		}
		return returnString;
	}
	
	function checkInternationalPhone(strPhone){
	s=stripCharsInBag(strPhone,validWorldPhoneChars);
	return (isInteger(s) && s.length == minDigitsInIPhoneNumber);
	}

	with(document.lead){
		if(field.value == ""){forgot += ' - Your field of interest\n';}
		if(!firstname.value){forgot += ' - Your First Name\n';}
		if(!lastname.value){forgot += ' - Your Last Name\n';}
		if(!address.value){forgot += ' - Your Address\n';}
		if(addresstype.value == ""){forgot += ' - Your Address Type\n';}
		if(!city.value){forgot += ' - Your City\n';}
		if(!state.value){forgot += ' - Your State/Province\n';}
		if(!zipcode.value){forgot += ' - Your Zip Code\n';}
		if(diploma.value == ""){forgot += ' - Your Diploma\n';}
		
		if(!dayphone.value){forgot += ' - Your Day phone number\n';
		} else if (checkInternationalPhone(dayphone.value)==false) {
			forgot += ' - Invalid Day phone number\n';
		}
		if(!evephone.value){forgot += ' - Your Evening phone number\n';
		} else if (checkInternationalPhone(evephone.value)==false) {
			forgot += ' - Invalid Evening phone number\n';
		}
		
		if(!emailaddress.value){
			forgot += ' - Your Email address\n';
		}else if((emailaddress.value.indexOf ('@', 0) == -1) || (emailaddress.value.indexOf ('.', 0) == -1)){
			forgot += ' - Invalid email address\n';
		}
		if (forgot) {
			alert("Please complete the following required fields:\n\n" + forgot + "\n");
			return false;
		}
	}
	return true;	
}

// JavaScript Document

function handleCountry() {

    var stateSel = document.lead.stateSel;
	
	stateSel.options.length = 1;
	stateSel.options[0] = new Option("---------------------------------------------", "");
			    
    // populate state drop down content, enable/disable controls dynamically
	if(document.lead.country[document.lead.country.selectedIndex].value == "AS"||
		document.lead.country[document.lead.country.selectedIndex].value == "CA"||
		document.lead.country[document.lead.country.selectedIndex].value == "FM"||
		document.lead.country[document.lead.country.selectedIndex].value == "GU"||
		document.lead.country[document.lead.country.selectedIndex].value == "MP"||
		document.lead.country[document.lead.country.selectedIndex].value == "MX"||
		document.lead.country[document.lead.country.selectedIndex].value == "PR"||
		document.lead.country[document.lead.country.selectedIndex].value == "US") {
switch (document.lead.country[document.lead.country.selectedIndex].value){
case "AS":
stateSel.options[0] = new Option("Select a state or province...", "");
stateSel.options[1] = new Option("American Samoa", "AS");
break;
case "CA":
stateSel.options[0] = new Option("Select a state or province...", "");
stateSel.options[1] = new Option("Alberta", "AB");
stateSel.options[2] = new Option("British Colombia", "BC");
stateSel.options[3] = new Option("Manitoba", "MB");
stateSel.options[4] = new Option("New Brunswick", "NB");
stateSel.options[5] = new Option("Newfoundland", "NF");
stateSel.options[6] = new Option("Nova Scotia", "NS");
stateSel.options[7] = new Option("Northwest Territories", "NT");
stateSel.options[8] = new Option("Nunavut", "NU");
stateSel.options[9] = new Option("Ontario", "ON");
stateSel.options[10] = new Option("Prince Edward Island", "PE");
stateSel.options[11] = new Option("Quebec", "QC");
stateSel.options[12] = new Option("Saskatchewan", "SK");
stateSel.options[13] = new Option("Yukon", "YT");
break;
case "FM":
stateSel.options[0] = new Option("Select a state or province...", "");
stateSel.options[1] = new Option("Federated States of Micronesia", "FM");
break;
case "GU":
stateSel.options[0] = new Option("Select a state or province...", "");
stateSel.options[1] = new Option("Guam", "GU");
break;
case "MP":
stateSel.options[0] = new Option("Select a state or province...", "");
stateSel.options[1] = new Option("Northern Mariana Islands", "MP");
break;
case "MX":
stateSel.options[0] = new Option("Select a state or province...", "");
stateSel.options[1] = new Option("Aguascalientes", "AGS");
stateSel.options[2] = new Option("Baja California (Norte)", "BC");
stateSel.options[3] = new Option("Baja California (Sur)", "BCS");
stateSel.options[4] = new Option("Campeche", "CAMP");
stateSel.options[5] = new Option("Chihuahua", "CHIH");
stateSel.options[6] = new Option("Chiapas", "CHIS");
stateSel.options[7] = new Option("Coahuila", "COAH");
stateSel.options[8] = new Option("Colima", "COL");
stateSel.options[9] = new Option("Distrito Federal", "DF");
stateSel.options[10] = new Option("Durango", "DGO");
stateSel.options[11] = new Option("Guerrero", "GRO");
stateSel.options[12] = new Option("Guanajuato", "GTO");
stateSel.options[13] = new Option("Hidalgo", "HGO");
stateSel.options[14] = new Option("Jalisco", "JAL");
stateSel.options[15] = new Option("Mexico", "MEX");
stateSel.options[16] = new Option("Michoacan", "MICH");
stateSel.options[17] = new Option("Morelos", "MOR");
stateSel.options[18] = new Option("Nayarit", "NAY");
stateSel.options[19] = new Option("Nuevo Leon", "NL");
stateSel.options[20] = new Option("Oaxaca", "OAX");
stateSel.options[21] = new Option("Puebla", "PUE");
stateSel.options[22] = new Option("Quintana Roo", "QR");
stateSel.options[23] = new Option("Queretaro", "QRO");
stateSel.options[24] = new Option("Sinaloa", "SIN");
stateSel.options[25] = new Option("San Luis Potosi", "SLP");
stateSel.options[26] = new Option("Sonora", "SON");
stateSel.options[27] = new Option("Tabasco", "TAB");
stateSel.options[28] = new Option("Tamaulipas", "TAMPS");
stateSel.options[29] = new Option("Tlaxcala", "TLAX");
stateSel.options[30] = new Option("Veracruz (-Llave)", "VER");
stateSel.options[31] = new Option("Yucatan", "YUC");
stateSel.options[32] = new Option("Zacatecas", "ZAC");
break;
case "PR":
stateSel.options[0] = new Option("Select a state or province...", "");
stateSel.options[1] = new Option("Puerto Rico", "PR");
break;
case "US":
stateSel.options[0] = new Option("Select a state or province...", "");
stateSel.options[1] = new Option("Armed Forces Americas - except Canada", "AA");
stateSel.options[2] = new Option("Military Overseas - Europe", "AE");
stateSel.options[3] = new Option("Alaska", "AK");
stateSel.options[4] = new Option("Alabama", "AL");
stateSel.options[5] = new Option("Military Overseas - Pacific", "AP");
stateSel.options[6] = new Option("Arkansas", "AR");
stateSel.options[7] = new Option("Arizona", "AZ");
stateSel.options[8] = new Option("California", "CA");
stateSel.options[9] = new Option("Colorado", "CO");
stateSel.options[10] = new Option("Connecticut", "CT");
stateSel.options[11] = new Option("District of Columbia", "DC");
stateSel.options[12] = new Option("Delaware", "DE");
stateSel.options[13] = new Option("Florida", "FL");
stateSel.options[14] = new Option("Georgia", "GA");
stateSel.options[15] = new Option("Hawaii", "HI");
stateSel.options[16] = new Option("Iowa", "IA");
stateSel.options[17] = new Option("Idaho", "ID");
stateSel.options[18] = new Option("Illinois", "IL");
stateSel.options[19] = new Option("Indiana", "IN");
stateSel.options[20] = new Option("Kansas", "KS");
stateSel.options[21] = new Option("Kentucky", "KY");
stateSel.options[22] = new Option("Louisiana", "LA");
stateSel.options[23] = new Option("Massachusetts", "MA");
stateSel.options[24] = new Option("Maryland", "MD");
stateSel.options[25] = new Option("Maine", "ME");
stateSel.options[26] = new Option("Michigan", "MI");
stateSel.options[27] = new Option("Minnesota", "MN");
stateSel.options[28] = new Option("Missouri", "MO");
stateSel.options[29] = new Option("Mississippi", "MS");
stateSel.options[30] = new Option("Montana", "MT");
stateSel.options[31] = new Option("North Carolina", "NC");
stateSel.options[32] = new Option("North Dakota", "ND");
stateSel.options[33] = new Option("Nebraska", "NE");
stateSel.options[34] = new Option("New Hampshire", "NH");
stateSel.options[35] = new Option("New Jersey", "NJ");
stateSel.options[36] = new Option("New Mexico", "NM");
stateSel.options[37] = new Option("Nevada", "NV");
stateSel.options[38] = new Option("New York", "NY");
stateSel.options[39] = new Option("Ohio", "OH");
stateSel.options[40] = new Option("Oklahoma", "OK");
stateSel.options[41] = new Option("Oregon", "OR");
stateSel.options[42] = new Option("Pennsylvania", "PA");
stateSel.options[43] = new Option("Rhode Island", "RI");
stateSel.options[44] = new Option("South Carolina", "SC");
stateSel.options[45] = new Option("South Dakota", "SD");
stateSel.options[46] = new Option("Tennessee", "TN");
stateSel.options[47] = new Option("Texas", "TX");
stateSel.options[48] = new Option("Utah", "UT");
stateSel.options[49] = new Option("Virginia", "VA");
stateSel.options[50] = new Option("Vermont", "VT");
stateSel.options[51] = new Option("Washington", "WA");
stateSel.options[52] = new Option("Wisconsin", "WI");
stateSel.options[53] = new Option("West Virginia", "WV");
stateSel.options[54] = new Option("Wyoming", "WY");
break;}
stateSel.disabled = false;
	document.lead.state.value = "";
	document.lead.state.disabled = true;
}
else
{
	stateSel.disabled = true;
	document.lead.state.disabled = false;
}

}

function handleCode() {

	if(document.lead.country[document.lead.country.selectedIndex].value == "CA"||
		document.lead.country[document.lead.country.selectedIndex].value == "US") {
		document.lead.daycountrycode.disabled = true;
		document.lead.evecountrycode.disabled = true;
		document.lead.dayphoneprefix.disabled = false;
		document.lead.evephoneprefix.disabled = false;
	}
	else {
		document.lead.daycountrycode.disabled = false;
		document.lead.evecountrycode.disabled = false;
		document.lead.dayphoneprefix.disabled = true;
		document.lead.evephoneprefix.disabled = true;
	}
}

function handleDiploma() {

	if(document.lead.diploma.value == "N")
		alert("Applicants to University of Phoenix must have a high school diploma or equivalent upon enrollment.\n\nUnfortunately, we cannot extend an application to you at this time.\n\nWe hope that you will consider us in the future for continuing your education. If you would like more information, please call 1-800-MY-SUCCESS.");
}

function handlePrograms() {
 
	if(document.lead.programid.value == "14" || document.lead.programid.value == "32" || document.lead.programid.value == "106" || document.lead.programid.value == "119" || document.lead.programid.value == "184" || document.lead.programid.value == "212" || document.lead.programid.value == "245" || document.lead.programid.value == "260" || document.lead.programid.value == "294" || document.lead.programid.value == "340" || document.lead.programid.value == "409" || document.lead.programid.value == "431" || document.lead.programid.value == "454" || document.lead.programid.value == "479" || document.lead.programid.value == "507" || document.lead.programid.value == "540" || document.lead.programid.value == "608" || document.lead.programid.value == "638" || document.lead.programid.value == "662" || document.lead.programid.value == "696" || document.lead.programid.value == "716" || document.lead.programid.value == "764" || document.lead.programid.value == "785" || document.lead.programid.value == "801" || document.lead.programid.value == "832")
		alert("Applicants to this program must have a Registered Nurse License.\n\nTo continue please verify the following information");
	if(document.lead.programid.value == "22" || document.lead.programid.value == "40" || document.lead.programid.value == "111" || document.lead.programid.value == "138" || document.lead.programid.value == "158" || document.lead.programid.value == "199" || document.lead.programid.value == "232" || document.lead.programid.value == "246" || document.lead.programid.value == "274" || document.lead.programid.value == "300" || document.lead.programid.value == "351" || document.lead.programid.value == "421" || document.lead.programid.value == "443" || document.lead.programid.value == "466" || document.lead.programid.value == "521" || document.lead.programid.value == "555" || document.lead.programid.value == "617" || document.lead.programid.value == "649" || document.lead.programid.value == "681" || document.lead.programid.value == "706" || document.lead.programid.value == "734" || document.lead.programid.value == "779" || document.lead.programid.value == "812" || document.lead.programid.value == "842" || document.lead.programid.value == "650")
		alert("Applicants to this program must have a Registered Nurse License.\n\nTo continue please verify the following information");
	/*if(document.lead.programid.value == "15")
		alert("Thank you for your interest in our Master of Arts in Education degree program at University of Phoenix Online. All applicants to this program must meet the following admission requirements:\n\n* A nationally or regionally accredited U.S. bachelor degree\n* A cumulative graduate GPA of 2.5 or higher\n* 3 or more years of post high school, full-time work experience\n* A minimum of 18 months instructional experience in a P-12 setting\n\nIf you'd like information on one of our other degree programs, please another choice. We appreciate your interest in University of Phoenix Online and we hope we can help you reach your educational goals.");
	if(document.lead.programid.value == "20")
		alert("Thank you for your interest in our Master of Arts in Education degree program at University of Phoenix Online. All applicants to this program must meet the following admission requirements:\n\n* A nationally or regionally accredited U.S. bachelor degree\n* A cumulative graduate GPA of 2.5 or higher\n* 3 or more years of post high school, full-time work experience\n\nIf you'd like information on one of our other degree programs, please another choice. We appreciate your interest in University of Phoenix Online and we hope we can help you reach your educational goals.");
	if(document.lead.programid.value == "21" || document.lead.programid.value == "22")
		alert("Thanks for your interest in our Master of Arts in Education degree program at University of Phoenix Online. All applicants to this program are expected to meet the following admission requirements:\n\n* A nationally or regionally accredited U.S. bachelor's degree\n* A cumulative graduate GPA of 2.5 or higher\n* 3 or more years of post high school, full-time work experience\n\nIf you'd like information about one of our other degree programs, please select another choice. We appreciate your interest in University of Phoenix Online and we hope we can help you reach your educational goals.");
	if(document.lead.programid.value == "31")
		alert("Thanks for your interest in our Master of Health Care Administration degree program. Applicants to this program must meet the following requirements:\n\n* Nationally or regionally accredited U.S. bachelor degree\n* 3 or more years work experience in health care\n\nIf you'd like information about a different degree program, please select it now. We appreciate your interest in University of Phoenix Online and look forward to helping you reach your educational goals.");
	if(document.lead.programid.value == "35" || document.lead.programid.value == "36")
		alert("Thanks for your interest in our Master of Science in Nursing degree program. Applicants to this program must meet the following requirements:\n\n* Registered Nurse License\n* Nationally or regionally accredited U.S. bachelor degree\n* 3 or more years work experience in health care\n\nIf you'd like information regarding a different degree program, please select it now. We appreciate your interest in University of Phoenix Online and look forward to helping you reach your educational goals.");
	if(document.lead.programid.value == "37" || document.lead.programid.value == "40")
		alert("Thank you for your interest in the Doctoral Programs at University of Phoenix Online. All applicants to this program are expected to meet the following admission requirements:\n\nDoctoral Requirements Include:\n* A regionally or nationally accredited U.S. master's degree\n* A cumulative graduate GPA of 3.0 or higher\n* Have capability to attend residential workshops in Phoenix, AZ:\n\t* 1st year - 8 days\n\t* 2nd year - 3 days\n\t* 3rd year - 8 days\n* Three years of professional full-time employment, including supervisory experience, and currently employed\n* Three recommendation forms\n* A minimum score of 600 on the paper-based exam or 250 on the computer-based exam of the Test of English as a Foreign Language (TOEFL) for non-native speakers of English\n\nIf you would like information on one of our other degree programs, please select another choice. Thanks again for your interest in University of Phoenix Online and we hope we can help you reach your educational goals.");
	if(document.lead.programid.value == "39")
		alert("Thank you for your interest in the Doctoral Programs at University of Phoenix Online. All applicants to this program are expected to meet the following admission requirements:\n\nDoctoral Requirements Include:\n* A regionally or nationally accredited U.S. master's degree\n* A cumulative graduate GPA of 3.0 or higher\n* Have capability to attend residential workshops in Phoenix, AZ:\n\t* 1st year - 8 days\n\t* 2nd year - 3 days\n\t* 3rd year - 8 days\n* Three years of professional full-time employment, including current or past employment in a health or health related occupation or leadership position\n* Three recommendation forms\n* A minimum score of 600 on the paper-based exam or 250 on the computer-based exam of the Test of English as a Foreign Language (TOEFL) for non-native speakers of English\n\nIf you would like information on one of our other degree programs, please select another choice. Thanks again for your interest in University of Phoenix Online and we hope we can help you reach your educational goals.");
	if(document.lead.programid.value == "38")
		alert("Thank you for your interest in the Doctoral Programs at University of Phoenix Online. All applicants to this program are expected to meet the following admission requirements:\n\nDoctoral Requirements Include:\n* A regionally or nationally accredited U.S. master's degree\n* A cumulative graduate GPA of 3.0 or higher\n* Have capability to attend residential workshops in Phoenix, AZ:\n* 1st year - 8 days\n\t* 2nd year - 3 days\n\t* 3rd year - 8 days\n* Three years of professional full-time employment, including current or past record of employment in an education occupation (public/private education P-12, higher education, training institute) or leadership position\n* Three recommendation forms\n* A minimum score of 600 on the paper-based exam or 250 on the computer-based exam of the Test of English as a Foreign Language (TOEFL) for non-native speakers of English\n\nIf you would like information on one of our other degree programs, please select another choice. Thanks again for your interest in University of Phoenix Online and we hope we can help you reach your educational goals.");
*/
}

function handleNurse() {
	
	if(document.lead.programid.value == "14" || document.lead.programid.value == "32" || document.lead.programid.value == "106" || document.lead.programid.value == "119" || document.lead.programid.value == "184" || document.lead.programid.value == "212" || document.lead.programid.value == "245" || document.lead.programid.value == "260" || document.lead.programid.value == "294" || document.lead.programid.value == "340" || document.lead.programid.value == "409" || document.lead.programid.value == "431" || document.lead.programid.value == "454" || document.lead.programid.value == "479" || document.lead.programid.value == "507" || document.lead.programid.value == "540" || document.lead.programid.value == "608" || document.lead.programid.value == "638" || document.lead.programid.value == "662" || document.lead.programid.value == "696" || document.lead.programid.value == "716" || document.lead.programid.value == "764" || document.lead.programid.value == "785" || document.lead.programid.value == "801" || document.lead.programid.value == "832") {
		document.getElementById("rn1").style.display = '';
		document.getElementById("rn2").style.display = '';
		document.getElementById("rn3").style.display = '';
		document.getElementById("rn4").style.display = '';
	} else if(document.lead.programid.value == "22" || document.lead.programid.value == "40" || document.lead.programid.value == "111" || document.lead.programid.value == "138" || document.lead.programid.value == "158" || document.lead.programid.value == "199" || document.lead.programid.value == "232" || document.lead.programid.value == "246" || document.lead.programid.value == "274" || document.lead.programid.value == "300" || document.lead.programid.value == "351" || document.lead.programid.value == "421" || document.lead.programid.value == "443" || document.lead.programid.value == "466" || document.lead.programid.value == "521" || document.lead.programid.value == "555" || document.lead.programid.value == "617" || document.lead.programid.value == "649" || document.lead.programid.value == "681" || document.lead.programid.value == "706" || document.lead.programid.value == "734" || document.lead.programid.value == "779" || document.lead.programid.value == "812" || document.lead.programid.value == "842" || document.lead.programid.value == "650") {
		document.getElementById("rn1").style.display = '';
		document.getElementById("rn2").style.display = '';
		document.getElementById("rn3").style.display = '';
		document.getElementById("rn4").style.display = '';
		document.getElementById("rn5").style.display = '';
		document.getElementById("rn6").style.display = '';
	} else {
		document.getElementById("rn1").style.display = 'none';
		document.getElementById("rn2").style.display = 'none';
		document.getElementById("rn3").style.display = 'none';
		document.getElementById("rn4").style.display = 'none';
	}
}

function handleCountryCodes() {
	
	if(document.lead.country[document.lead.country.selectedIndex].value == "AE") {
		document.lead.daycountrycode.value = "971";
		document.lead.evecountrycode.value = "971";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "AG") {
		document.lead.daycountrycode.value = "1268";
		document.lead.evecountrycode.value = "1268";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "AI") {
		document.lead.daycountrycode.value = "1264";
		document.lead.evecountrycode.value = "1264";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "AN") {
		document.lead.daycountrycode.value = "599";
		document.lead.evecountrycode.value = "599";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "AS") {
		document.lead.daycountrycode.value = "684";
		document.lead.evecountrycode.value = "684";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "AU") {
		document.lead.daycountrycode.value = "43";
		document.lead.evecountrycode.value = "43";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "AW") {
		document.lead.daycountrycode.value = "297";
		document.lead.evecountrycode.value = "297";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "BB") {
		document.lead.daycountrycode.value = "1246";
		document.lead.evecountrycode.value = "1246";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "BE") {
		document.lead.daycountrycode.value = "32";
		document.lead.evecountrycode.value = "32";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "BH") {
		document.lead.daycountrycode.value = "973";
		document.lead.evecountrycode.value = "973";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "BM") {
		document.lead.daycountrycode.value = "1441";
		document.lead.evecountrycode.value = "1441";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "BS") {
		document.lead.daycountrycode.value = "1242";
		document.lead.evecountrycode.value = "1242";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "BZ") {
		document.lead.daycountrycode.value = "501";
		document.lead.evecountrycode.value = "501";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "CH") {
		document.lead.daycountrycode.value = "41";
		document.lead.evecountrycode.value = "41";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "CY") {
		document.lead.daycountrycode.value = "357";
		document.lead.evecountrycode.value = "357";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "DE") {
		document.lead.daycountrycode.value = "49";
		document.lead.evecountrycode.value = "49";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "DK") {
		document.lead.daycountrycode.value = "45";
		document.lead.evecountrycode.value = "45";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "ES") {
		document.lead.daycountrycode.value = "34";
		document.lead.evecountrycode.value = "34";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "FI") {
		document.lead.daycountrycode.value = "358";
		document.lead.evecountrycode.value = "358";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "FR") {
		document.lead.daycountrycode.value = "33";
		document.lead.evecountrycode.value = "33";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "GB") {
		document.lead.daycountrycode.value = "44";
		document.lead.evecountrycode.value = "44";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "GU") {
		document.lead.daycountrycode.value = "1671";
		document.lead.evecountrycode.value = "1671";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "HK") {
		document.lead.daycountrycode.value = "852";
		document.lead.evecountrycode.value = "852";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "IT") {
		document.lead.daycountrycode.value = "39";
		document.lead.evecountrycode.value = "39";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "JM") {
		document.lead.daycountrycode.value = "1876";
		document.lead.evecountrycode.value = "1876";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "JP") {
		document.lead.daycountrycode.value = "81";
		document.lead.evecountrycode.value = "81";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "KN") {
		document.lead.daycountrycode.value = "1869";
		document.lead.evecountrycode.value = "1869";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "KR") {
		document.lead.daycountrycode.value = "850";
		document.lead.evecountrycode.value = "850";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "KP") {
		document.lead.daycountrycode.value = "82";
		document.lead.evecountrycode.value = "82";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "KW") {
		document.lead.daycountrycode.value = "965";
		document.lead.evecountrycode.value = "965";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "KY") {
		document.lead.daycountrycode.value = "1345";
		document.lead.evecountrycode.value = "1345";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "LC") {
		document.lead.daycountrycode.value = "1758";
		document.lead.evecountrycode.value = "1758";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "LU") {
		document.lead.daycountrycode.value = "352";
		document.lead.evecountrycode.value = "352";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "MP") {
		document.lead.daycountrycode.value = "1670";
		document.lead.evecountrycode.value = "1670";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "MX") {
		document.lead.daycountrycode.value = "52";
		document.lead.evecountrycode.value = "52";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "NL") {
		document.lead.daycountrycode.value = "31";
		document.lead.evecountrycode.value = "31";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "NO") {
		document.lead.daycountrycode.value = "47";
		document.lead.evecountrycode.value = "47";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "PR") {
		document.lead.daycountrycode.value = "1787";
		document.lead.evecountrycode.value = "1787";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "QA") {
		document.lead.daycountrycode.value = "974";
		document.lead.evecountrycode.value = "974";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "SA") {
		document.lead.daycountrycode.value = "966";
		document.lead.evecountrycode.value = "966";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "SE") {
		document.lead.daycountrycode.value = "46";
		document.lead.evecountrycode.value = "46";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "SG") {
		document.lead.daycountrycode.value = "65";
		document.lead.evecountrycode.value = "65";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "TC") {
		document.lead.daycountrycode.value = "1649";
		document.lead.evecountrycode.value = "1649";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "TH") {
		document.lead.daycountrycode.value = "66";
		document.lead.evecountrycode.value = "66";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "TT") {
		document.lead.daycountrycode.value = "1868";
		document.lead.evecountrycode.value = "1868";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "TW") {
		document.lead.daycountrycode.value = "886";
		document.lead.evecountrycode.value = "886";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "VC") {
		document.lead.daycountrycode.value = "1784";
		document.lead.evecountrycode.value = "1784";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "VG") {
		document.lead.daycountrycode.value = "1284";
		document.lead.evecountrycode.value = "1284";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "VI") {
		document.lead.daycountrycode.value = "1340";
		document.lead.evecountrycode.value = "1340";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "AF") {
		document.lead.daycountrycode.value = "93";
		document.lead.evecountrycode.value = "93";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "DJ") {
		document.lead.daycountrycode.value = "253";
		document.lead.evecountrycode.value = "253";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "IN") {
		document.lead.daycountrycode.value = "62";
		document.lead.evecountrycode.value = "62";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "IQ") {
		document.lead.daycountrycode.value = "964";
		document.lead.evecountrycode.value = "964";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "NZ") {
		document.lead.daycountrycode.value = "64";
		document.lead.evecountrycode.value = "64";
	}
	else if(document.lead.country[document.lead.country.selectedIndex].value == "OM") {
		document.lead.daycountrycode.value = "968";
		document.lead.evecountrycode.value = "968";
	}
	else {
		document.lead.daycountrycode.value = "";
		document.lead.evecountrycode.value = "";
	}
}

function handleMilitary() {

	if(document.lead.country[document.lead.country.selectedIndex].value == "AF"||
		document.lead.country[document.lead.country.selectedIndex].value == "DJ"||
		document.lead.country[document.lead.country.selectedIndex].value == "IN"||
		document.lead.country[document.lead.country.selectedIndex].value == "IQ"||
		document.lead.country[document.lead.country.selectedIndex].value == "NZ"||
		document.lead.country[document.lead.country.selectedIndex].value == "OM"||
		document.lead.country[document.lead.country.selectedIndex].value == "US") {
		document.lead.military.options[0] = new Option("If yes, select military branch...", "");
		document.lead.military.value = "";
		document.lead.military.disabled = false;
	} else {
		document.lead.military.options[0] = new Option("---------------------------------------------", "");
		document.lead.military.value = "";
		document.lead.military.disabled = true;
	}
}		

function handleInternational() {

	if(document.lead.country[document.lead.country.selectedIndex].value != "CA" &&
		document.lead.country[document.lead.country.selectedIndex].value != "US") {
		alert("Admission requirements for international students\n\nThank you for your interest in University of Phoenix Online. Please note that, because you'll earn your degree entirely online, your program will not involve U.S. residency.\n\nTo qualify for undergraduate admission, applicants outside the U.S and Canada must:\n\n* Hold a high school diploma or equivalent\n* Score a minimum of 550 on the paper-based exam or 213 on the computer-based exam of the Test of English as a Foreign Language, TOEFL (non-native speakers of English only)\n* Be employed upon enrollment, or have access to an organizational environment");
	}
}

function handleAge() {

	if(document.lead.age.value == "16 and under")
		alert("Applicants to University of Phoenix Online must be 17 years of age or older upon enrollment.\n\nWe hope that you'll consider us for your future continuing education.  If you'd like more information, please call us at 1-800-366-9699.");
	if(document.lead.age.value == "17 to 20" && (document.lead.programid.value == "37" || document.lead.programid.value == "38" || document.lead.programid.value == "39" || document.lead.programid.value == "40")) {
		alert("You must be at least 21 years of age to enroll in a Doctoral Program at University of Phoenix Online.  Please select a different program.");
	}
}

function validateForm3() {
		
	var forgot = '';

	var digits = "0123456789";
	// non-digit characters which are allowed in phone numbers
	var phoneNumberDelimiters = "()- ";
	// characters which are allowed in international phone numbers
	// (a leading + is OK)
	var validWorldPhoneChars = phoneNumberDelimiters + "+";
	// Minimum no of digits in an international phone no.
	var minDigitsInIPhoneNumber = 7;
	
	function isInteger(s)
	{   
		var i;
		for (i = 0; i < s.length; i++)
		{   
			// Check that current character is number.
			var c = s.charAt(i);
			if (((c < "0") || (c > "9"))) return false;
		}
		// All characters are numbers.
		return true;
	}
	
	function isCharacter(s)
	{   
		var i;
		for (i = 0; i < s.length; i++)
		{   
			// Check that current character is not a number.
			var c = s.charAt(i);
			if (((c > 0) || (c < 9))) return false;
		}
		// All characters arent numbers.
		return true;
	}
	
	function isRepeating(s)
	{   
		var i;
		for (i = 0; i < s.length; i++)
		{   
			// Check that current character is number.
			var c = s.charAt(i);
			if (((c < "0") || (c > "9"))) return false;
		}
		// All characters are numbers.
		return true;
	}
	
	function stripCharsInBag(s, bag)
	{   var i;
		var returnString = "";
		// Search through string's characters one by one.
		// If character is not in bag, append to returnString.
		for (i = 0; i < s.length; i++)
		{   
			// Check that current character isn't whitespace.
			var c = s.charAt(i);
			if (bag.indexOf(c) == -1) returnString += c;
		}
		return returnString;
	}
	
	function checkInternationalPhone(strPhone){
	var i;
	var j;
	var x = "";
	var y = "";
	s=stripCharsInBag(strPhone,validWorldPhoneChars);
	for (i = 0; i < 3; i++)
	{   
			// Check that current character isn't whitespace.
		var v = s.charAt(i);
		x += v;
	}
	for (j = 0; j < 4; j++)
	{   
			// Check that current character isn't whitespace.
		var w = s.charAt(j);
		y += w;
	}
	if (isInteger(s) && s.length >= minDigitsInIPhoneNumber) {
		if (x != "000" && x != "911" && x != "555") {
			if (y != "1234" && y != "0123") {
				if (s != "1234567" && s != "4567890" && s != "0000000" && s != "1111111" && s != "2222222" && s != "3333333" && s != "4444444" && s != "5555555" && s != "6666666" && s != "7777777" && s != "8888888" && s != "9999999") {
					return true
				}
			}
		}
		else
			return false;
	}
	return false;
	}
	
	function checkAreaCode(strPhone){
	s=stripCharsInBag(strPhone,validWorldPhoneChars);
	if (isInteger(s) && s.length == 3) {
		if (s != "123" && s != "911" && s != "000" && s != "111" && s != "222" && s != "333" && s != "444" && s != "555" && s != "666" && s != "777" && s != "888" && s != "999")
			return true;
		else
			return false;
	}
	return false;
	}
	
	function validateProgram(){
	if(document.lead.programid.value == "14" || document.lead.programid.value == "32" || document.lead.programid.value == "106" || document.lead.programid.value == "119" || document.lead.programid.value == "184" || document.lead.programid.value == "212" || document.lead.programid.value == "245" || document.lead.programid.value == "260" || document.lead.programid.value == "294" || document.lead.programid.value == "340" || document.lead.programid.value == "409" || document.lead.programid.value == "431" || document.lead.programid.value == "454" || document.lead.programid.value == "479" || document.lead.programid.value == "507" || document.lead.programid.value == "540" || document.lead.programid.value == "608" || document.lead.programid.value == "638" || document.lead.programid.value == "662" || document.lead.programid.value == "696" || document.lead.programid.value == "716" || document.lead.programid.value == "764" || document.lead.programid.value == "785" || document.lead.programid.value == "801" || document.lead.programid.value == "832") {
		if(document.lead.current_RN.value == "N")
			alert("You do not meet the current admission requirements for this program. If you'd like information about a different degree program, please select it now.  We appreciate your interest in University of Phoenix and look forward to helping you reach your educational goals.");
		else if(document.lead.current_RN.value == "Y" && document.lead.institution.value == "" && document.lead.month_completion_date.value == "" && document.lead.year_completion_date.value == "")
			alert("Please enter either the institution you obtained your license or both the month and the year of your anticipated completion.");
	}
	if((document.lead.programid.value == "22" || document.lead.programid.value == "40" || document.lead.programid.value == "111" || document.lead.programid.value == "138" || document.lead.programid.value == "158" || document.lead.programid.value == "199" || document.lead.programid.value == "232" || document.lead.programid.value == "246" || document.lead.programid.value == "274" || document.lead.programid.value == "300" || document.lead.programid.value == "351" || document.lead.programid.value == "421" || document.lead.programid.value == "443" || document.lead.programid.value == "466" || document.lead.programid.value == "521" || document.lead.programid.value == "555" || document.lead.programid.value == "617" || document.lead.programid.value == "649" || document.lead.programid.value == "681" || document.lead.programid.value == "706" || document.lead.programid.value == "734" || document.lead.programid.value == "779" || document.lead.programid.value == "812" || document.lead.programid.value == "842" || document.lead.programid.value == "650") && document.lead.current_RN.value == "N") {
		if(document.lead.current_RN.value == "N")
			alert("You do not meet the current admission requirements for this program. If you'd like information about a different degree program, please select it now.  We appreciate your interest in University of Phoenix and look forward to helping you reach your educational goals.");
		else if(document.lead.current_RN.value == "Y" && document.lead.institution.value == "" && document.lead.month_completion_date.value == "" && document.lead.year_completion_date.value == "")
			alert("Please enter either the institution you obtained your license or both the month and the year of your anticipated completion.");
		else if(document.lead.current_RN.value == "Y" && document.lead.yrs_exp_3.value == "N")
			alert("You do not meet the current admission requirements for this program. If you'd like information about a different degree program, please select it now.  We appreciate your interest in University of Phoenix and look forward to helping you reach your educational goals.");
	}
	}
	
	with(document.lead){
	
		if(programid.value == ""){forgot += ' - Your Degree Objective\n';}
		if(!firstname.value || !isCharacter(firstname.value)){forgot += ' - Your First Name\n';}
		if(!lastname.value || !isCharacter(lastname.value)){forgot += ' - Your Last Name\n';}
		if(!address.value){forgot += ' - Your Address\n';}
		if(addresstype.value == ""){forgot += ' - Your Address Type\n';}
		if(!city.value){forgot += ' - Your City\n';}
		if(!state.value && !stateSel.value){forgot += ' - Your State/Province\n';}
		if(!zipcode.value){forgot += ' - Your Zip Code\n';}
		else if(zipcode.value.length < 5){forgot += ' - Your Zip Code needs to be at least 5 digits long\n';}
		if(!diploma.value){forgot += ' - Your Diploma\n';}
		if(!dayphone.value){forgot += ' - Your Day Phone number\n';
		} else if (checkInternationalPhone(dayphone.value)==false) {
			forgot += ' - Invalid Day Phone number\n';
		}
		if(!evephone.value){forgot += ' - Your Evening Phone Number\n';
		} else if (checkInternationalPhone(evephone.value)==false) {
			forgot += ' - Invalid Evening Phone Number\n';
		} 
		
		if(!dayphoneprefix.value){forgot += ' - Your Day Phone Area Code\n';}
		else if (checkAreaCode(dayphoneprefix.value)==false) {
			forgot += ' - Invalid Day Phone Area Code\n';
		}
		if(!evephoneprefix.value){forgot += ' - Your Evening Phone Area Code\n';}
		else if (checkAreaCode(evephoneprefix.value)==false) {
			forgot += ' - Invalid Evening Phone Area Code\n';
		}
			
		if(!emailaddress.value){
			forgot += ' - Your Email address\n';
		}else if((emailaddress.value.indexOf ('@', 0) == -1) || (emailaddress.value.indexOf ('.', 0) == -1)){
			forgot += ' - Invalid email address\n';
		}
		if (forgot) {
			alert("Please complete the following required fields:\n\n" + forgot + "\n");
			return false;
		}
	}
	return true;	
}

function validateNurse() {

	var forgot = "";
	
	with(document.nurse){
		
		if(registerednurse.value == ""){forgot += ' - Please Indicate if you are a Registered Nurse\n';}
		if(registerednurse.value == "y" && rnlicense.value == ""){forgot += ' - Please Indicate the Institution that Granted your RN License\n';}
		if(registerednurse.value == "n" && currentlyenrolled.value == ""){forgot += ' - Please Indicate if you are Currently Enrolled in a Nursing Program\n';}
		if (forgot) {
			alert(forgot + "\n");
			return false;
		}
	}
	return true;	
}

function validateNurse2() {

	var forgot = "";
	
	with(document.nurse){
	
		if(registerednurse.value == ""){forgot += ' - Please Indicate if you are a Registered Nurse\n';}
		if(registerednurse.value == "y" && threeyearsexp.value == "y" && rnlicense.value == ""){forgot += ' - Please Indicate the Institution that Granted your RN License\n';}
		if (forgot) {
			alert(forgot + "\n");
			return false;
		}
	}
	return true;	
}
	