function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function MaskedTextBox_CreateItem(id, mask, validationExpression, autoFillMask) {
    this.Id = id;
    this.Mask = mask;
    this.ValidationExpression = validationExpression;
    this.AutoFillMask = autoFillMask;
    this.CurrentValue = document.getElementById(id).value;
}

function MaskedTextBox_FindItem(id) {
   if (eWorld_MaskedTextBox_Items == null) {
      return null;
   }
   
   for (var i=0; i<eWorld_MaskedTextBox_Items.length; i++) {
      if (eWorld_MaskedTextBox_Items[i].Id == id) {
         return eWorld_MaskedTextBox_Items[i];
      }
   }
}

function MaskedTextBox_AutoFillBox(keyCode, box, item, fromInput) {
    var addedCharacter = fromInput;
    var returnValue = true;
    
    if (item.AutoFillMask) {
    
        var nextMaskChar = MaskedTextBox_GetNextMaskCharacter(box, item, addedCharacter);
        
        while (nextMaskChar != '') {                       
            // check to see if the next mask character is an alpha/numeric character
            if (nextMaskChar.toLowerCase() == '9' || nextMaskChar.toLowerCase() == 'c' || nextMaskChar.toLowerCase() == 'x' || (box.value.length == item.Mask.length)) {
                break;
            }
            
            // if the next character is not alpha or numeric, add it to the value
            var nextCharCode = nextMaskChar.toLowerCase().charCodeAt(0);            
            if ((nextCharCode != 57) && ((nextCharCode < 48) || (nextCharCode > 57)) && (nextCharCode != 99)) {
                if (!addedCharacter && keyCode != -999) {
                    box.value = box.value + String.fromCharCode(keyCode) + nextMaskChar;
                    returnValue = false;
                    addedCharacter = true;
                } else {
                    box.value = box.value + nextMaskChar;
                }
            }
            
            nextMaskChar = MaskedTextBox_GetNextMaskCharacter(box, item, addedCharacter);
        }
    }
    
    return returnValue;
}

function MaskedTextBox_GetNextMaskCharacter(box, item, addedCharacter) {
    var nextMaskChar = '';
    
    if ((box.value.length + 1) <= item.Mask.length) {
        if (box.value.length == 0) {
            nextMaskChar = item.Mask.charAt(0);
        } else {
            if (addedCharacter) {
               nextMaskChar = item.Mask.charAt(box.value.length);
            } else {
               nextMaskChar = item.Mask.charAt(box.value.length + 1);
            }
        }
    }
    
    return nextMaskChar;
}

function MaskedTextBox_InitializeCompatibility() {
   if (typeof(eWorld_UI_MaskedTextBoxes) != 'undefined') {
      for (var i=0; i<eWorld_UI_MaskedTextBoxes.length; i++) {
         var element = document.getElementById(eWorld_UI_MaskedTextBoxes[i]);
         eWorld_MaskedTextBox_Items[i] = eval(element.maskedTextBox);
      }
   }
}

function MaskedTextBox_FocusMask(box, id) {
    var item = MaskedTextBox_FindItem(id);
    
    if (box.value != '') {        
        // attempt to move the cursor at the end of the input characters
        var length = box.value.length;
        box.focus();
        box.setSelectionRange(length, length)
    }
}

function MaskedTextBox_VerifyMask(e, box, id) {
    var item = MaskedTextBox_FindItem(id);
    var keyCode = e.which;
    
    if (box.value == '' && item.AutoFillMask && item.Mask.length != 0 && keyCode != 13 && keyCode != 8 && keyCode != 0) {
      MaskedTextBox_AutoFillBox(-999, box, item, false);
    } else if (box.value != '' && item.AutoFillMask && item.Mask.length != 0 && keyCode != 13 && keyCode != 8 && keyCode != 0) {
      MaskedTextBox_AutoFillBox(-999, box, item, true);
    }
    
    var currentValue = box.value;
    var returnValue = false;
    
    if (item.Mask.length == 0 || keyCode == 13 || keyCode == 8 || keyCode == 0) {
        returnValue = true;
    } else {
        var maskChar = item.Mask.substr(currentValue.length, 1);
         
        // determine if what was typeed is the valid next mask character       
        if ((maskChar.charCodeAt(0) == 57  || maskChar.toLowerCase().charCodeAt(0) == 120) && (keyCode >= 48) && (keyCode <= 57)) { // digit
            returnValue = true;
        } else if (e.ctrlKey && keyCode == 118) {
            returnValue = true;
        } else if ((maskChar.toLowerCase().charCodeAt(0) == 99  || maskChar.toLowerCase().charCodeAt(0) == 120) && (((keyCode >= 65) && (keyCode <=90)) || ((keyCode >= 97) && (keyCode <= 122)))) { // character
            returnValue = true;
        } else if (maskChar == String.fromCharCode(keyCode)) { // special
            returnValue = true;
        } else { // no match
            returnValue = false;
        }
        
        if (returnValue) {
            if (box.value.length == 0) {
               box.value += String.fromCharCode(keyCode);
               returnValue = MaskedTextBox_AutoFillBox(keyCode, box, item, true);
               returnValue = false;
            } else {
               returnValue = MaskedTextBox_AutoFillBox(keyCode, box, item, false);
            }
        }
    }
    
    if (!returnValue) {
        e.preventDefault();
    }
    
    return returnValue;
}

function MaskedTextBox_Change(box, id) {
    var item = MaskedTextBox_FindItem(id);
    var returnValue = false;
    
    if (item.ValidationExpression.length > 0) {
        eval("var re = /" + item.ValidationExpression + "/;");
        if (re.test(box.value)) {
            returnValue = true;
        }
    } else {
        returnValue = true;
    }
    
    if (!returnValue) {
        box.value = item.CurrentValue;   
    } else {
        item.CurrentValue = box.Value;
    }
    
    return returnValue;
}



//var eWorld_MaskedTextBox_Items =  new Array(new MaskedTextBox_CreateItem('dayphone', "(999) 999-9999", "((\\(\\d{3}\\) ?)|(\\d{3}-))?\\d{3}-\\d{4}", true), new //MaskedTextBox_CreateItem('evephone', "(999) 999-9999", "((\\(\\d{3}\\) ?)|(\\d{3}-))?\\d{3}-\\d{4}", true));

//----------- This function returns all the countries listed in index, registration and learn more page --------#
function GetCountries(formName, fieldName, urlGetCountry)
{
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		xmlHttp.open('POST', urlGetCountry, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{					
					var result = xmlHttp.responseText;
					if (result==0)
					{
						alert('No Countries available to display');
						document.formName.fieldName.options.length=0;
					}
					else
					{
						arr = result.split(":");
						fieldName.options.length=0;
						fieldName.options[0] = new Option('Select one..','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("=");
							fieldName.options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}

//----------- This function returns all the state list required on index page --------#
function GetStates(formName, fieldName, urlGetState)
{
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{			
		xmlHttp.open('POST', urlGetState, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					if (result==0)
					{
						alert('No Countries available to display');
						document.formName.fieldName.options.length=0;
					}
					else
					{
						arr = result.split(":");
						fieldName.options.length=0;
						fieldName.options[0] = new Option('-- Any --','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("=");
							fieldName.options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}

//--------- This function returns all the state fro a country. Required on fill_application_form.tpl --------#
function populateState(id, urlGetState, frmName)
{	

	if(id == '')
	{
		//alert('Please choose country');
		document.getElementById(frmName).country.focus();		
	}
	document.getElementById(frmName).state.options.length=0;
	document.getElementById(frmName).state.options[0] = new Option('Loading ...', '');
	
	urlGetState += "country_id="+id;
	if (xmlHttp) 
	{
		xmlHttp.open('POST', urlGetState, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					if (result==0)
					{
						alert('This country doesnt have any state');
						document.getElementById(frmName).state.options.length=0;
					}
					else
					{
						arr = result.split(":");
						document.getElementById(frmName).state.options.length=0;
						for(i=0;i<arr.length-1;i++)
						{
							brr = arr[i].split("=");
							document.getElementById(frmName).state.options[i] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}







function validateField(user) {
  	xmlHttp = getHttpRequestObject();
	//alert('xmlHttp');
	if (xmlHttp) 
	{
		xmlHttp.abort();
  		xmlHttp.open("GET", "../include/validateField.php?gradYearValue=" + user, true);
  		xmlHttp.onreadystatechange=function() {
			if(xmlHttp.readyState == 4) {
				document.getElementById('hsgradYear').innerHTML = xmlHttp.responseText;
			}
  		}
 		xmlHttp.send(null);
	}
}






function showResetForm2(value)
{
	//alert('here');
	if(value == 1)
	{
		document.getElementById('resetForm').style.display='block';
	}
	else
	{
		document.getElementById('resetForm').style.display='none';
	}
}

function showResetForm()
{
	var response = confirm('Are you sure you want to reset your search criteria?');
	
	if(response == true)
	{
		window.location = "http://dotschools.com/index.php?reset=1";
	}
}

function submitResetForm(value)
{
	if(value == 'no')
	{
		document.getElementById('resetForm').style.display = 'none';
	}
	else
	{
		window.location = "index.php?reset=1";
	}
}

function submitFormTop2()
{
	document.formTop.submit();
	/*alert('here');
	if(type == 'state')
	{
		redirecturl = url + document.formTop.stateTop.value + '-.html';
	}
	else
	{
		redirecturl = url + document.formTop.zipTop.value + '.html';
	}
	window.location = redirecturl;*/
}

function submitFormTop(type,url)
{
	//document.formTop.submit();
	//alert('here');
	//alert(type);
	//alert('url = '.url);
	//alert('state ' + document.formTop.stateTop.value);
	
	if(type == 'state')
	{
		redirecturl = url + document.formTop.stateTop.value + '-degree.html';
		//redirecturl = url + document.formTop.stateTop.value;
		//alert('url ' + redirecturl);
		//redirecturl = url;
		//alert('here');
	}
	else
	{
		redirecturl = url + document.formTop.zipTop.value + '-degree.html';
		//redirecturl = url + document.formTop.zipTop.value;
		//redirecturl = url;
		//alert('here');
	}
	
	//alert('url ' + redirecturl);
	window.location = redirecturl;
}

/*
function extrafieldMask(collegeID2)
{
	if(collegeID2 >= 85059 && collegeID2 <= 85073)
	{	
		oStringMask = new Mask("###-###-####")
		oStringMask.attach(document.frmMore['custom[extrafield1]']);
		//oStringMask.attach(document.frmMore.evephone);
	}
}
*/

function openNursing(program)
{
	if (program == "NRBA" || program == "MSNR" || program == "BSN in Nursing RN to BSN")
	{
		document.getElementById("nursing").style.display = "";
		//document.getElementById("engRow2").style.display = "";
	}
	else
	{
		document.getElementById("nursing").style.display = "none";
		//document.getElementById("engRow2").style.display = "none";
	}
}


function openTeaching(program)
{
	if (program == "MED - RL")
	{
		document.getElementById("teaching").style.display = "";
		//document.getElementById("engRow2").style.display = "";
	}
	else
	{
		document.getElementById("teaching").style.display = "none";
		//document.getElementById("engRow2").style.display = "none";
	}
}


/* ------------------------------------------------------------------------------ */
/* Zip Form */
/* zipForm.js */
/* ______________________________________________________________________________ */



function showZipForm(status)
{
	//alert('here');
	if(status == 1)
	{
		document.getElementById('zipForm').style.display = 'block';
	}
	else
	{
		document.getElementById('zipForm').style.display = 'none';
	}
	backgroundFilter();
}


function placeIt(objName)
{
	//alert('obj = ' + objName);
	obj = document.getElementById(objName);
	//if (document.documentElement)
	if(false)
	{
		//alert('documentElement');
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		//alert('document body');
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	theLeft += x;
	theTop += y;
	//alert('theleft = ' + theLeft + ' thetop = ' + theTop);
	obj.style.left = theLeft + 'px' ;
	obj.style.top = theTop + 'px' ;
	//alert('left = ' + obj.style.left + ' top = ' + obj.style.top);
	setTimeout("placeIt('zipForm')",500);
}

function backgroundFilter()

{

    var div;

    if(document.getElementById)

    // Standard way to get element

    div = document.getElementById('backgroundFilter');

    else if(document.all)

    // Get the element in old IE's

    div = document.all['backgroundFilter'];   

    // if the style.display value is blank we try to check it out here

    if(div.style.display== '' && div.offsetWidth != undefined&&div.offsetHeight != undefined)

    {

        div.style.display = (div.offsetWidth!=0 && div.offsetHeight!=0)?'block':'none';

    }

    // If the background is hidden ('none') then it will display it ('block').

    // If the background is displayed ('block') then it will hide it ('none').

    div.style.display = (div.style.display==''||div.style.display=='block')?'none':'block';

}

function validateZipForm()
{
	
	if(document.formZip.zip.value.length < 5)
	{
		alert('Please enter a valid Zipcode.');
	}
	else
	{
		xmlHttp_zip = getHttpRequestObject();
		//alert('xml' + xmlHttp_zip);
		if (xmlHttp_zip) 
		{			
			//urlZip = 'http://www.dotschools.com/API/checkZipCodeExists.php?zip=' + document.formZip.zip.value;
			var host = 'http://'+location.host+'/check_zip.php?';
			var urlZip = host+'&zip='+document.formZip.zip.value;
			  
			//alert(urlZip);
			xmlHttp_zip.open('POST', urlZip, true);
			xmlHttp_zip.onreadystatechange = function() {
				//alert('here1 ' + xmlHttp_zip.readyState);
				if (xmlHttp_zip.readyState == 4)  
				{
					//alert('here2 ' + xmlHttp_zip.status);
					if (xmlHttp_zip.status == 200)
					{
						var result = xmlHttp_zip.responseText;
						//alert('result = ' + result);
						if (result==0)
						{
							alert('Invalid ZipCode.');
							
						}
						else
						{
							document.formZip.submit();
						}
						xmlHttp_zip.abort();
						return false;
					}
				}
			}
			xmlHttp_zip.send(null);
		}
		
	}
}

/* _________________________________________________________________________________________________________*/
/* ********************************************************************************************************* */
/* VALIDATION
/* --------------------------------------------------------------------------------------------------------- */
function validateForm(frm)
{ 
	var collegeID = frm.currCollegeId.value;

	//alert(collegeID);
	
	for(i=0; i<frm.elements.length; i++)
	{
		//alert(frm.elements[i].value + "=" + frm.elements[i].name);
		if(frm.elements[i].value == "" && frm.elements[i].name != 'address2')
		{ //alert(frm.elements[i].name);
			/*
			if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[military][0]" && frm.elements[i].name != "custom[refer_firstname][0]" && frm.elements[i].name != "custom[refer_lastname][0]")
			//if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[military][0]" && frm.elements[i].name != "custom[refer_firstname][0]" && frm.elements[i].name != "custom[refer_lastname][0]" && frm.elements[i].name != "custom[extrafield1]" && frm.elements[i].name != "custom[extrafield6]")
			{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
			}	
			*/
			
			if(collegeID >= 85077 && collegeID <= 85083)
			{
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[extrafield1]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			}
				
			else if(collegeID == 85084)
			{
				//alert("thisform"+collegeID);
				
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[extrafield16]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
				
			}
				
			else if(collegeID == 20026)
			{	
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[teachingCertificate]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			}
			/*else if(collegeID == 85234)
			{	
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[extrafield12]" && frm.elements[i].name != "custom[extrafield10]" && frm.elements[i].name != "custom[extrafield61]" && frm.elements[i].name != "custom[extrafield3]" && frm.elements[i].name != "custom[extrafield16]" && frm.elements[i].name != "custom[extrafield7]" && frm.elements[i].name != "custom[extrafield13]" && frm.elements[i].name != "custom[extrafield5]" && frm.elements[i].name != "custom[extrafield14]" && frm.elements[i].name != "custom[extrafield8]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			} */
			else if(collegeID >= 85241 && collegeID <= 85246)
			{	
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[extrafield3]" && frm.elements[i].name != "custom[extrafield5]" && frm.elements[i].name != "custom[extrafield15]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			}
			else if(collegeID >= 85253 && collegeID <= 85256) // need to test
			{	
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[extrafield8]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			}
	
			else if(collegeID >= 85147 && collegeID <= 85151) // need to test
			{	
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[extrafield16]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			}
			
			else if (collegeID == 25012)
			{
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[certification]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			}
	
			else if (collegeID == 50025)
			{
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[nursing_question]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			}
            
            else if ((collegeID >= 20682 && collegeID <= 20685) || collegeID == 20688 || collegeID == 22514 || collegeID == 22515)
            {
                if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[RNLicense]" && frm.elements[i].name != "custom[NursingGPA]" && frm.elements[i].name != "custom[DIP]")
                {
                    alert("Please fill out the entire form!");
                    frm.elements[i].focus();
                    return false;
                }        
            }
			
			else if ((collegeID >= 25035 && collegeID <= 25037))
			{
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[prerequisite]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			}
			
			else if ((collegeID >= 25137 && collegeID <= 25149))
			{
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[levelOfEducation]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			}
			
			else if(collegeID >= 25150 && collegeID <= 25158 || collegeID == 25161)
			{
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[rnDegree]" && frm.elements[i].name != "custom[bsDegree]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			}
			
			else if ((collegeID >= 20682 && collegeID <= 20685) || collegeID == 20688 || collegeID == 20689 || collegeID == 22514 || collegeID == 22515  || collegeID == 25048)
            {
                if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[RNLicense]" && frm.elements[i].name != "custom[NursingGPA]" && frm.elements[i].name != "custom[DIP]")
                {
                    alert("Please fill out the entire form!");
                    frm.elements[i].focus();
                    return false;
                }        
            }
			
			//
			else if(collegeID == 50026)
			{	
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[bachelors]" && frm.elements[i].name != "custom[associates]" && frm.elements[i].name != "custom[enforcement]" && frm.elements[i].name != "custom[rnlicense]" && frm.elements[i].name != "custom[state_rn]" && frm.elements[i].name != "custom[nursing_degree]" && frm.elements[i].name != "custom[contact_method]" && frm.elements[i].name != "custom[call_time]" && frm.elements[i].name != "custom[transfer_credits]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			}
			
			
			//
			else if(collegeID == 80026)
			{	
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[ddRNConfirmation]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			}

			//
			else if((collegeID >= 85346 && collegeID <= 85353) || collegeID == 85343)
			{
				
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[extrafield16]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
				
			}
			else if(collegeID == 85562)
			{
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[extrafield8]"  && frm.elements[i].name != "custom[extrafield5]")
				{
					alert("Please fill out the entire form!" + frm.elements[i].name);
					frm.elements[i].focus();
					return false;
				}	
			}
			else if(collegeID == 85563 || collegeID == 85580)
			{
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[extrafield9]"  && frm.elements[i].name != "custom[extrafield10]" && frm.elements[i].name != "custom[extrafield11]")
				{
					alert("Please fill out the entire form!" + frm.elements[i].name);
					frm.elements[i].focus();
					return false;
				}	
			}
			
			//
	    else if ((collegeID >= 20875 && collegeID <= 20890) || collegeID == 21615 || collegeID == 21618 || collegeID == 20012)
			{
				
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[preQualCollCred]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
				
			}
			
			else if(collegeID >= 85582 && collegeID <= 85707)
			{
				
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[extrafield5]" && frm.elements[i].name != "custom[extrafield16]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
				
			}
			
			//alert ("custom "+frm['custom[extrafield9]'].value);
			//alert("form"+collegeID);
			else if(collegeID == 85709 || collegeID == 85234)
			{	
			  //alert("form1 "+collegeID);
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[extrafield14]" && frm.elements[i].name != "custom[extrafield16]" && frm.elements[i].name != "custom[extrafield21]" && frm.elements[i].name != "custom[extrafield22]" && frm.elements[i].name != "custom[extrafield23]" && frm.elements[i].name != "custom[extrafield5]" && frm.elements[i].name != "custom[extrafield13]" && frm.elements[i].name != "custom[extrafield7]" && frm.elements[i].name != "custom[extrafield8]" && frm.elements[i].name != "custom[extrafield9]" && frm.elements[i].name != "custom[extrafield6]" && frm.elements[i].name != "custom[extrafield11]" && frm.elements[i].name != "custom[extrafield10]" && frm.elements[i].name != "custom[extrafield12]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			}
			else if(collegeID == 85560)
			{
				if (frm.elements[i].name != "custom[extrafield5]" && frm.elements[i].name != "custom[extrafield4]" && frm.elements[i].name != "custom[extrafield6]" && frm.elements[i].name != "custom[extrafield7]" && frm.elements[i].name != "custom[extrafield8]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}
			}
			
			else if(collegeID == 87147 || collegeID == 87095)
			{	
			  //alert("form1 "+collegeID);
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[evephone]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}		
			}
			
			else if(collegeID == 85720)
			{
      	if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[extrafield3]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}	
      }
      
      else if(collegeID == 85721)
      {
      	if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[extrafield3]")
				{
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}	      
      } 
			
			else
			{
				if (frm.elements[i].name != "" && frm.elements[i].name != "address2" && frm.elements[i].name != "custom[military][0]" && frm.elements[i].name != "custom[refer_firstname][0]" && frm.elements[i].name != "custom[refer_lastname][0]" && frm.elements[i].name != "custom[extrafield16]")
				{
					//alert("form"+collegeID);
					alert("Please fill out the entire form!");
					frm.elements[i].focus();
					return false;
				}	
			}
			
			
		}
	}
	
	/*if(frm.dayphone)
	{
		if(frm.dayphone.value.length < 14)
		{
			alert('Please enter day time phone properly');
			frm.dayphone1.focus();
			return false;
		}
	}
	
	if(frm.evephone)
	{
		if(frm.evephone.value.length < 14)
		{
			alert('Please enter evening phone properly');
			frm.dayphone1.focus();
			return false;
		}
	}*/
	
if (frm.dayphone1){	
	// Phone number validation for 10 digits integer values.
	if(frm.dayphone1.value.match(/^\s*$/))
	{
		alert('Please enter day time phone properly with 3 digits in first box');
		frm.dayphone1.focus();
		return false;
	}
	else
	{
		if(!frm.dayphone1.value.match(/^\d{3}$/))
		{
			alert('Please enter day time phone properly with 3 digits in first box');
			frm.dayphone1.focus();
			return false;
		}
		else if (frm.dayphone1.value.match(/^1{3}|2{3}|3{3}|4{3}|5{3}|6{3}|7{3}|8{3}|9{3}|0{3}$/))
		{
			alert('All three digits can not be the same');
			frm.dayphone1.focus();
			return false;
		}
		
	}
}

if (frm.dayphone2){	
	if(frm.dayphone2.value.match(/^\s*$/))
	{
		alert('Please enter day time phone properly with 3 digits in second box');
		frm.dayphone2.focus();
		return false;
		
	}
	else
	{
		if(!frm.dayphone2.value.match(/^\d{3}$/))
		{
			alert('Please enter day time phone properly with 3 digits in second box');
			frm.dayphone2.focus();
			return false;
		}
	}
}

if(frm.dayphone3){	
	if(frm.dayphone3.value.match(/^\s*$/))
	{
		if(!frm.dayphone3.value.match(/^\d{4}$/))
		{
			alert('Please enter day time phone properly with 4 digits in third box');
			frm.dayphone3.focus();
			return false;
		}
	}
	else
	{

		if(!frm.dayphone3.value.match(/^\d{4}$/))
		{
			alert('Please enter day time phone properly with 4 digits in third box');
			frm.dayphone3.focus();
			return false;
		}
		else if (frm.dayphone3.value.match(/^1{4}|2{4}|3{4}|4{4}|5{4}|6{4}|7{4}|8{4}|9{4}|0{4}$/))
		{
			alert('All four digits can not be the same');
			frm.dayphone3.focus();
			return false;
		}
	}
}

if(frm.evephone1){
	// Check for evening fone. If its compulsory
	if(frm.evephone1.value.match(/^\s*$/))
	{
		alert('Please enter evening time phone properly with 3 digits in first box');
		frm.evephone1.focus();
		return false;
		
	}
	else
	{
		if(!frm.evephone1.value.match(/^\d{3}$/))
		{
			alert('Please enter evening time phone properly with 3 digits in first box');
			frm.evephone1.focus();
			return false;
		}
		else if (frm.evephone1.value.match(/^1{3}|2{3}|3{3}|4{3}|5{3}|6{3}|7{3}|8{3}|9{3}|0{3}$/))
		{
			alert('All three digits can not be the same');
			frm.evephone1.focus();
			return false;
		}
	}
}

if(frm.evephone2){
	if(frm.evephone2.value.match(/^\s*$/))
	{
		alert('Please enter evening time phone properly with 3 digits in second box');
		frm.evephone2.focus();
		return false;
		
	}
	else
	{
		if(!frm.evephone2.value.match(/^\d{3}$/))
		{
			alert('Please enter evening time phone properly with 3 digits in second box');
			frm.evephone2.focus();
			return false;
		}
	}
}

if(frm.evephone3){
	if(frm.evephone3.value.match(/^\s*$/))
	{
		alert('Please enter evening time phone properly with 4 digits in third box');
		frm.evephone3.focus();
		return false;
		
	}
	else
	{
		if(!frm.evephone3.value.match(/^\d{4}$/))
		{
			alert('Please enter evening time phone properly with 4 digits in third box');
			frm.evephone3.focus();
			return false;
		}
		else if (frm.evephone3.value.match(/^1{4}|2{4}|3{4}|4{4}|5{4}|6{4}|7{4}|8{4}|9{4}|0{4}$/))
		{
			alert('All four digits can not be the same');
			frm.evephone3.focus();
			return false;
		}
	}
}

//
if(frm.dayphone){
	    var stripped = frm.dayphone.value.replace(/[\(\)\.\-\ ]/g, '');    
		
		if (!(stripped.length == 10)) {
        	alert("Please enter the day time time phone properly with 10 digits.");
			frm.dayphone.focus();
			return false;
    	}
}

//
if(frm.evephone){
	    var stripped = frm.evephone.value.replace(/[\(\)\.\-\ ]/g, '');    
		
		if (!(stripped.length == 10)) {
        	alert("Please enter the evening time phone properly with 10 digits.");
			frm.evephone.focus();
			return false;
    	}
}


if(frm.email){	
	if(frm.email.value.match(/^\s*$/))
	{
		alert('Please enter Email');
		frm.email.focus();
		return false;
	}
	else
	{
		var alnum="a-zA-Z0-9";
		exp="^[^@\\s]+@(["+alnum+"+\\-]+\\.)+["+alnum+"]["+alnum+"]["+alnum+"]?$";
		emailregexp = new RegExp(exp);
		result = frm.email.value.match(emailregexp);
		if (result == null)
		{
			alert('Please enter valid email address');
			frm.email.focus();
			return false;
			
		}
	}
}


if(frm.age_filter){	
	if(frm.age_filter.value.match(/^\s*$/))
	{
		alert('Please enter your age');
		frm.age_filter.focus();
		return false;
	}
}
	
	// **********************
	// CUSTOM FORM VALIDATION
	// **********************
	
	//var collegeID = frm.currCollegeId.value;
	
	//Strayer University
	/*if (collegeID == 84100 || collegeID <= 84167)
	{
		if (frm['custom[education_level]'].value == 8)
		{
			alert("Currently, Strayer University only accept HS Grad and above.");
			return false;
		}
	}
	*/
	
	//Strayer University
	//if (collegeID == 84100 || collegeID <= 84167)
	if (collegeID == 84100)
	{
		
		if (frm['custom[optin]'].checked == false)
		{
			alert("You must acknowledge that you will be contacted by Strayer University.");
			//frm.custom[optin].focus();
			return false;
		}
	}
	
	//Alloy - Career Point College 
	if(collegeID == 84277 || collegeID == 84278)
	{
	 
    /*if (frm.age_filter.value < 18)
		{
			alert("Currently, Career Point College only accepts 18 and over.");
			//frm.gradyear.focus();
			return false;
		}  */
		
		if (frm['custom[leveleducation]'].value != 'High School Diploma or GED' && frm['custom[leveleducation]'].value != 'Some College')
		{
			alert("Currently, Career Point College only accepts High School Diploma or GED or Some College.");
			//frm.gradyear.focus();
			return false;
		}
  }
  //Chicago School fo Professional Psychology
  if(collegeID == 84279 || collegeID == 84280)
  {
  //alert('*' + frm['custom[leveleducation]'].value + '*');
    if(frm['custom[leveleducation]'].value == "Bachelor's Degree" || frm['custom[leveleducation]'].value == "Master's Degree" ||  
      frm['custom[leveleducation]'].value == "Doctoral Degree" )
    {
       
    }
    else
    {
      alert("Currently, The Chicago School fo Professional Psychology only accepts Bachelors or higher.");
       return false;
    }
  }
  //Alloy - The Culinary Academy of Austin
	if(collegeID == 84281)
	{
	 
    
	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, The Culinary Academy of Austin does not accept grad year greater than 2009.");
			//frm.gradyear.focus();
			return false;
		}
  }
	
	//Westwood College - CUNet
	if ((collegeID >= 20875 && collegeID <= 20890) || collegeID == 21615 || collegeID == 21618 || collegeID == 20012)
	{
		if (frm['custom[program]'].value == "31" || frm['custom[program]'].value == "44") //Master and MBA programs
		{
			if (frm['custom[levelOfEducation]'].value == "1" || frm['custom[levelOfEducation]'].value == "2" || frm['custom[levelOfEducation]'].value == "3" || frm['custom[levelOfEducation]'].value == "4")
			{
				alert("Currently, Westwood College required for their Master Programs - Bachelor or greater.");
				frm['custom[levelOfEducation]'].focus();
				return false;
			}
		}
		
		if ((collegeID >= 20875 && collegeID <= 20890) || collegeID == 21615)//Westwood College Campuses - states reject
		{
			if(frm.state.value == "AK" || frm.state.value == "AL" || frm.state.value == "AR" || frm.state.value == "AZ" || frm.state.value == "CT" || frm.state.value == "DE" || frm.state.value == "FL" || frm.state.value == "ID" || frm.state.value == "KY" || frm.state.value == "LA" || frm.state.value == "ME" || frm.state.value == "MI" || frm.state.value == "MO" || frm.state.value == "MS" || frm.state.value == "NC" || frm.state.value == "NH" || frm.state.value == "NJ" || frm.state.value == "NY" || frm.state.value == "OH" || frm.state.value == "OK" || frm.state.value == "OR" || frm.state.value == "RI" || frm.state.value == "SC" || frm.state.value == "TN" || frm.state.value == "VT" || frm.state.value == "WA")
      {
				alert('Currently, Westwood College is not accepting in this state.');
				return false;
			}
			
			if (frm.gradyear.value > 2010)
			{
				alert("Currently, Westwood College does not accept HS Grad 2011 and later.");
				frm.gradyear.focus();
				return false;
			}
		}
	
		if ($collegeID == 20012)//Westwood College Online
		{ 					
      	if(frm.state.value == "GA" || frm.state.value == "TX" || frm.state.value == "IL" || frm.state.value == "CA" || frm.state.value == "CO" || frm.state.value == "VA" || frm.state.value == "MD" || frm.state.value == "DC" || frm.state.value == "MS" || frm.state.value == "IN" || frm.state.value == "MI" || frm.state.value == "NJ")
	       {
	         if (frm['custom[program]'].value == "47" || frm['custom[program]'].value == "42" || frm['custom[program]'].value == "51" || frm['custom[program]'].value == "34" || frm['custom[program]'].value == "52" || frm['custom[program]'].value == "50" || frm['custom[program]'].value == "53" || frm['custom[program]'].value == "2" || frm['custom[program]'].value == "54" || frm['custom[program]'].value == "15" || frm['custom[program]'].value == "48" || frm['custom[program]'].value == "31")
	         {
	             if (frm.gradyear.value >= 2007)
			         {
			           alert("Currently, Westwood College Online does not accept HS Grad 2007 and later for the selected program.");
					       return false;
					     }
	         }
           else
           {
	             if (frm.gradyear.value > 2009)		 
		           {
			           alert("Currently, Westwood College Online does not accept HS Grad 2008 and later for the selected program.");
					       return false;
					     }
		       }
	       }
	       else
	       {
            if (frm['custom[program]'].value == "47" || frm['custom[program]'].value == "42" || frm['custom[program]'].value == "51" || frm['custom[program]'].value == "34" || frm['custom[program]'].value == "52" || frm['custom[program]'].value == "50" || frm['custom[program]'].value == "53" || frm['custom[program]'].value == "2" || frm['custom[program]'].value == "54" || frm['custom[program]'].value == "15" || frm['custom[program]'].value == "48" || frm['custom[program]'].value == "31")
	          {
	             if (frm.gradyear.value >= 2007)
	             {
			           alert("Currently, Westwood College Online does not accept HS Grad 2007 and later for the selected program.");
					       return false;
					     }
	          }
            else
            {
	             if (frm.gradyear.value > 2008)	
               {	 
		             alert("Currently, Westwood College Online does not accept HS Grad 2008 and later for the selected program.");
					       return false;
					     }
		        }   
         }		
		} 
		
		if ($key == 21618) //Redstone College - Denver Aviation - states reject
		{ 
			if (($parameter['state'] == "AL") || (frm.state.value == "AR") || (frm.state.value == "CT") || (frm.state.value == "DC") || (frm.state.value == "DE") || (frm.state.value == "FL") || (frm.state.value == "GA") || (frm.state.value == "HI") || (frm.state.value == "IA") || (frm.state.value == "IL") || (frm.state.value == "IN") || (frm.state.value == "KY") || (frm.state.value == "LA") || (frm.state.value == "MA") || (frm.state.value == "MD") || (frm.state.value == "ME") || (frm.state.value == "MO") || (frm.state.value == "MS") || (frm.state.value == "NY") || (frm.state.value == "OH") || (frm.state.value == "PA") || (frm.state.value == "RI") || (frm.state.value == "SD") || (frm.state.value == "TN") || (frm.state.value == "VT") || (frm.state.value == "WA") || (frm.state.value == "WV"))
			{
			 	alert('Currently, Westwood College is not accepting in this state for it Aviation Programs.');
				return false;
			}
			
			if (frm.gradyear.value > 2010)
			{
				alert("Currently, Westwood College does not accept HS Grad 2011 and later.");
				frm.gradyear.focus();
				return false;
			}
		}	
		
	}
	
	//Saint Leo University
	if (collegeID >= 84030 && collegeID <= 84034)
	{
		if (frm['custom[Agree]'].checked == false)
		{
			alert("You must acknowledge that you will be contacted by Saint Leo University.");
			return false;
		}
	}
	
	//Saint Leo University
	if (collegeID >= 84030 && collegeID <= 84034)
	{
		//alert(frm['custom[age]'].value);
		
		if (frm['custom[age]'].value == "17-20")
		{
			alert("Currently, Saint Leo University only accept age 21 and over.");
			//frm.gradyear.focus();
			return false;
		}
		
				
	}
	
	//Saint Leo University
	if (collegeID >= 84030 && collegeID <= 84034)
	{
		if (frm.gradyear.value > 2007)
		{
			alert("Currently, Saint Leo University does not accept HS Grad after 2007.");
			frm.gradyear.focus();
			return false;
		}
		
		if (frm.gradyear.value < 1980)
		{
			alert("Currently, Saint Leo University does not accept HS Grad before 1980.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Ashworth College
	if (collegeID == 84035)
	{
		
		if (frm['custom[optin]'].checked == false)
		{
			alert("Ashworth College only accept with the selected Opt In.");
			//frm.custom[optin].focus();
			return false;
		}

		if (frm.age_filter.value < 18)
		{
			alert("Currently, Ashworth College only accept 18 and over.");
			//frm.gradyear.focus();
			return false;
		}
	}
	
	/*
	//Tiffin University
	if (collegeID == 52416 || collegeID == 52415)
	{
		if (frm['custom[transfer_credits]'].value == "0-20" || frm['custom[transfer_credits]'].value == "21-38")
		{
			alert('Currently, Tiffin University required 39 or more transferable units.');
			return false;	
		}
		
	}
	*/
	
	//Ashford University Online
	/*if (collegeID == 50022 || collegeID == 50023)
	{
		if (frm['custom[education_level]'].value == "Associates Degree" && frm['custom[program]'].value == "AAB")
		{
			alert('You must choose a Bachelors degree program');
			return false;	
		}
	}*/
		
	var responseText = "";
	//Kaplan University Online	
	if (collegeID >= 30000 && collegeID < 40000)
	{
		if (frm['custom[HaveComputer]'].value == "NO")
			responseText += "requirements not met: must have a computer\n";
	
		if (frm['custom[USCitizen]'].value == "NO")
			responseText += "requirements not met: must be a US citizen\n";
				
		if (collegeID == 32180 || collegeID == 32330)
		{
			if (frm['custom[Enforcement]'].value == "NO")
				responseText += "requirements not met: law enforcement experience required\n";
		}
		
		if (collegeID == 30670 || collegeID == 30680 || collegeID == 32220 || collegeID == 32100 || collegeID == 32060)
		{
			if (frm['custom[GPA]'].value == "NO")
				responseText += "requirements not met: GPA\n";
		}
		
		if (collegeID == 32100)
		{
			if (frm['custom[RNLicense]'].value == "NO")
				responseText += "requirements not met: must have a registered nurse license\n";
		}
		
		if (collegeID == 32110 || collegeID == 30680)
		{
			if (frm['custom[GPA30]'].value == "NO")
				responseText += "requirements not met: GPA lower than 3.0\n";
		}
		
		if (collegeID == 32200)
		{
			if (frm['custom[GPAED]'].value == "NO")
				responseText += "requirements not met: GPA lower than 3.0\n";
		}
		
		if (collegeID == 32050)
		{
			if (frm['custom[GPA275]'].value == "NO")
				responseText += "requirements not met: GPA lower than 2.75\n";
		
			if (frm['custom[Experience]'].value == "NO")
				responseText += "requirements not met: Experience = NO\n";		
		}
		
		if (collegeID == 30670 || collegeID == 32110 || collegeID == 30680 || collegeID == 32050 || 
			collegeID == 32200 || collegeID == 32060 || collegeID == 32420)
		{
			if (frm['custom[Bachelors]'].value == "NO")
				responseText += "requirements not met: must have a minimum bachelor's degree\n";
		}
		
		if (collegeID == 32220)
		{
			if (frm['custom[BACHELOR]'].value == "NO")
				responseText += "requirements not met: must have a minimum bachelor's degree\n";
			if (frm['custom[LICENSE]'].value == "NO")
				responseText += "requirements not met: must have a registered nurse license\n";
		}
		
		if (collegeID == 32060)
		{
			if (frm['custom[IowaFieldWork]'].value == "NO")
				responseText += "requirements not met: must plan on doing field work in Iowa\n";
		}
		
		if (collegeID == 30270 || collegeID == 32110 || collegeID == 30680 || 
			collegeID == 32220 || collegeID == 30670 ||collegeID == 32100 || collegeID == 32330)
		{
			if (frm['custom[HighestEducation]'].value == "GED" || frm['custom[HighestEducation]'].value == "HighSchool" || frm['custom[HighestEducation]'].value == "SomeCollegeLessThan2" || frm['custom[HighestEducation]'].value == "Associates")
				responseText += "requirements not met: must have a minimum bachelor's degree\n";
		}
		

		if (collegeID == 32180 || collegeID == 32330)
		{
			if (frm['custom[Associates]'].value == "NO")
				responseText += "requirements not met: must have a minimum of associates degree in education";
			
		}
		
		if (responseText != "")
		{
			alert(responseText);
			return false;
		}
	}

	
	//Western Governors University	
	if (collegeID == 20318)
	{
		if (frm.gradyear.value > 2002)
		{
			alert("HS grad year > 2002 will not be accepted.");
			frm.gradyear.focus();
			return false;
		}

	}
	
	
	//ACU, NEU, Harding
	if (collegeID == 50066 || collegeID == 50088 || collegeID == 50089 || collegeID == 50069)
	{
		if (frm['custom[Highest_Degree_Earned]'].value == "Associates" || frm['custom[Highest_Degree_Earned]'].value == "High School")
		{
			alert("You must have a minimum Bachelor's degree.");
			frm['custom[Highest_Degree_Earned]'].focus();
			return false;
		}
	}
	
	
	//Walden University
	if (collegeID == 50061)
	{
		var responseText = "";

		if (frm['custom[is_24]'].value == "2")
		{
			alert('The age you have selected does not meet the application requirements for Walden University.');
			return false;
		}
		
		if (frm['custom[program]'].value == "MS.W1EGR.SE" || frm['custom[program]'].value == "MS.W1EGR.SY")
		{
			if (frm['custom[engineering_degree]'].value == "")
			{
				alert('Please indicate that you have an undergrad degree in Electrical/Computer engineering/science.');
				frm['custom[engineering_degree]'].focus();
				return false;
			}
			else if (frm['custom[college_math]'].value == "")
			{
				alert('Please indicate that you have completed one year of college-level math.');
				frm['custom[college_math]'].focus();
				return false;
			}
			else if (frm['custom[college_math]'].value == "2" || frm['custom[engineering_degree]'].value == "2")
			{
				alert('Based on the information you provided, you do not currently meet the application requirements for the Walden University Engineering and Applied Science programs.');
				return false;
			}
		}
			
		if (frm['custom[education_level]'].value < 17000009)
		{
			alert('Based on the information you provided, you do not currently meet the application requirements for Walden University.');
			return false;
		}
		else
		{
			if(frm['custom[program]'].value == "")
			{
				alert('Please select a program of interest.');
				frm['custom[program]'].focus();
				return false;
			}
		}
	
		
		if (responseText != "")
		{
			alert(responseText);
			return false;
		}
		else
			return true;
	}
	
	
	//Chamberlain University
	if (collegeID == 50062)
	{
		var responseText = "";
	
		if (frm['custom[unrestricted_license]'].value == "N")
				responseText += "requirements not met: must have a US nursing license\n";
	
		if (frm['custom[current_rn]'].value != "Yes")
			responseText += "requirements not met: must be a licensed RN\n";
	
		
		if (responseText != "")
		{
			alert(responseText);
			return false;
		}
		else
			return true;
	}
	
	
	//Norwich University
	if (collegeID == 50068)
	{
		var responseText = "";
	
		if (frm['custom[unrestricted_license]'].value == "N")
				responseText += "requirements not met: must have a US nursing license\n";
	
		if (frm['custom[current_rn]'].value != "Yes")
			responseText += "requirements not met: must be a licensed RN\n";
	
			
		if (responseText != "")
		{
			alert(responseText);
			return false;
		}
		else
			return true;	
	}


	//University of Phoenix
	if (collegeID == 50011)
	{
		if (document.getElementById("program_type2").value == 5)
		{

			if (frm['custom[registered_nurse]'].value != "Y")
			{
				alert("You must have a RN license to apply nursing program.");
				return false;
			}
		}
		
		if (frm['custom[program_type2]'].value == 8)
		{
			value = frm['custom[programs]'].value;
			
			if (value == "BSN" || value == "MSN" || value == "MSN/ED" || value == "MSN/FNP" 
			|| value == "MSN/MBA/HC" || value == "MSN/MHA" || value == "MSN/NPFT" || value == "LPN/BSN" 
			|| value == "LVN/BSN" || value == "NHCE" || value == "SNC" || value == "MSNN")
			{
				if (frm['custom[registered_nurse]'].value != "Y")
				{
					alert("You must have a RN license to apply nursing program.");
					return false;
				}
			}
		}
		
		if (frm['custom[acknowledge]'].value != "Y")
		{
			alert("You must acknowledge that you will be contacted by telephone/email.");
			return false;
		}
	}
	
	
	//Polytechnic University of NYU
	if (collegeID == 50044)
	{
		if (frm['custom[educationLevel]'].value != "BS" && frm['custom[educationLevel]'].value != "MS" && frm['custom[educationLevel]'].value != "D")
		{
			alert("You must have a minimum of a Bachelors of Science degree.");
			return false;
		}
	}
	
	
	//Collegebound
	//Vatterott College
	/*if(collegeID == 85000)
	{
		if (frm['custom[extrafield1]'].checked == false)
		{
			alert("Currently, Vatterott College only accept the contact within 48 hours selected.");
			//frm.gradyear.focus();
			return false;
		}
	}*/
	
	if(collegeID == 85000)
	{
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Vatterott College does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	
	//Virginia College
	if(collegeID == 85001)
	{
		var thisProgram = frm['custom[program]'].value;
				
		thisMS=/MS/;
		compareMS = thisMS.exec(thisProgram);
				 
		if (compareMS || thisProgram == "Cybersecurity")
		{
			if (frm['custom[extrafield1]'].value == "HS Grad/GED" || frm['custom[extrafield1]'].value == "Some College" || frm['custom[extrafield1]'].value == "Associate's")
			{
				alert('Currently, Virginia College is only accepting for their Master Program - Bachelor or greater.');
				frm['custom[extrafield1]'].focus();
				return false;
			}
		}
		
		
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Virginia College does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	//Rasmussen College Online 
	if(collegeID == 85002)
	{	
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Rasmussen College Online does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	}
	
	//Rasmussen College Online IT Computing
	if(collegeID == 85074)
	{	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Rasmussen College Online does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//High-Tech Institute
	if(collegeID >= 85003 && collegeID <= 85011)
	{
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, High-Tech Institute does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Heritage Institute
	if(collegeID >= 85012 && collegeID <= 85016)
	{
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Heritage Institute does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	//Cortiva Institute
	if(collegeID >= 85017 && collegeID <= 85027)
	{
		if(frm.email.value != frm['custom[extrafield2]'].value )
		{
			alert("Email address does not match - please try again.");
			frm['custom[extrafield2]'].focus();
			return false;
		}
		
		if (frm.gradyear.value > 2008)
		{
			alert("Currently, Cortiva Institute does not accept HS Grad 2009 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Florida Technical College
	if(collegeID >= 85028 && collegeID <= 85031)
	{
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Florida Technical College does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Gibbs College
	if(collegeID == 85032)
	{
		if (frm.gradyear.value > 2008)
		{
			alert("Currently, Gibbs College does not accept HS Grad 2009 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Harrison College
	if(collegeID >= 85035 && collegeID <= 85046)
	{
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Harrison College does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	/*
	//ATA Career Education
	if(collegeID == 85047)
	{
		if (frm.gradyear.value >= 2010)
		{
			alert("Currently, Harrison College does not accept HS Grad 2010 and after.");
			frm.gradyear.focus();
			return false;
		}
	}
	*/
	
	//Heald College
	if(collegeID >= 85048 && collegeID <= 85058)
	{
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Heald College does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Le Cordon Bleu College
	if(collegeID >= 85059 && collegeID <= 85073)
	{	
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Le Cordon Bleu College does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	
	//Platt College LA
	if(collegeID == 85075)
	{	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Platt College does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Platt College Ontario
	if(collegeID == 85076)
	{	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Platt College does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//South University Online 
	if(collegeID == 85084)
	{	
		
		if (frm['custom[program]'].value == "MSNR" || frm['custom[program]'].value == "NRBA")
		{
			if (frm['custom[extrafield16]'].value != "Yes")
			{
				alert('Currently, South University required a current RN license for the nursing program.');
				frm['custom[extrafield16]'].focus();
				return false;
			}
		}
		
		if (frm['custom[educationlevel]'].value == "GED" || frm['custom[educationlevel]'].value == "SHS")
		{
			alert("Currently, South University is only accepting HS Grad or greater.");
			frm['custom[educationlevel]'].focus();
			return false;
		}
		
		if (frm['custom[program]'].value == "MSCJ" || frm['custom[program]'].value == "MBAA" || frm['custom[program]'].value == "RNMSN" || frm['custom[program]'].value == "MSNR" || frm['custom[program]'].value == "MBAH" || frm['custom[program]'].value == "MPAD" || frm['custom[program]'].value == "MSIT" || frm['custom[program]'].value == "MSLD")
		{
			if (frm['custom[educationlevel]'].value == "GED" || frm['custom[educationlevel]'].value == "SHS" || frm['custom[educationlevel]'].value == "ADG" || frm['custom[educationlevel]'].value == "HS" || frm['custom[educationlevel]'].value == "SCL")
			{
				alert("Currently, South University required for their Master Program - Bachelor or greater.");
				frm['custom[educationlevel]'].focus();
				return false;
			}
		}
		
		if(frm.state.value == "MN"){
			//alert('Currently,South University is only accept in the state' + frm.state.value + '.');
			alert('Currently, South University Online is not accepting in the state - MN');
			return false;
		}
		
		if (frm.gradyear.value > 2008)
		{
			alert("Currently, South University does not accept HS Grad 2009 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
			
	//South University
	if(collegeID == 85083)
	{					
		if (frm['custom[program]'].value == "BSN in Nursing RN to BSN" || frm['custom[program]'].value == "NRBA")
		{
			if (frm['custom[extrafield1]'].value != "Yes")
			{
				alert('Currently, South University required a current RN license for the nursing program.');
				frm['custom[extrafield1]'].focus();
				return false;
			}
		}
		
		if(frm.state.value != "AL" && frm.state.value != "FL" && frm.state.value != "GA" && frm.state.value != "SC"){
			//alert('Currently,South University is only accept in the state' + frm.state.value + '.');
			alert('Currently, South University Home Study is only accepting in these states - AL, FL, GA, and SC');
			return false;
		}
		
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, South University does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}

	}
	
	//South University
	if(collegeID >= 85077 && collegeID <= 85082)
	{	
		if (frm['custom[program]'].value == "BSN in Nursing RN to BSN" || frm['custom[program]'].value == "NRBA")
		{
			if (frm['custom[extrafield1]'].value != "Yes")
			{
				alert('Currently, South University required a current RN license for the nursing program.');
				frm['custom[extrafield1]'].focus();
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "AMBA" || frm['custom[program]'].value == "MBA Master of Business Administration" || frm['custom[program]'].value == "MBA in Healthcare Administration" || frm['custom[program]'].value == "MA in Professional Counseling")
		{
			if (frm['custom[extrafield2]'].value != "Yes")
			{
				alert('Currently, South University required at least a Bachelor for the Master programs.');
				frm['custom[extrafield2]'].focus();
				return false;
			}
		}
		
		if(frm.state.value != "AL" && frm.state.value != "FL" && frm.state.value != "GA" && frm.state.value != "SC"){
			//alert('Currently,South University is only accept in the state' + frm.state.value + '.');
			alert('Currently, South University is only accepting in these states - AL, FL, GA, and SC');
			return false;
		}
		
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, South University does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Benedictine Online 
	if(collegeID == 20026)
	{					
		if (frm['custom[program]'].value == "MED - RL")
		{
			if (frm['custom[teachingCertificate]'].value != "Yes")
			{
				alert('Currently, Benedictine University required a valid teaching certificate for some of it master programs.');
				frm['custom[teachingCertificate]'].focus();
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "MBA Accountancy" || frm['custom[program]'].value == "MED - RL" || frm['custom[program]'].value == "MSMOB")
		{
			if (frm['custom[levelOfEd]'].value == "Associate Degree" || frm['custom[levelOfEd]'].value == "Some College")
			{
				alert("Currently, Benedictine University required for their Master Program - Bachelor or greater.");
				frm['custom[levelOfEd]'].focus();
				return false;
			}
		}
		
		if (frm['custom[age]'].value == "17-21")
		{
			alert("Currently, Benedictine University is only accepting over the age of 21.");
			frm['custom[age]'].focus();
			return false;
		}
		
		
		if (frm['custom[yearHSGRAD]'].value == "2008 or Above")
		{
			alert("Currently, Benedictine University does not accept HS Grad 2008 or Above.");
			frm['custom[yearHSGRAD]'].focus();
			return false;
		}
	}
	
	//ECPI
	if(collegeID >= 85085 && collegeID <= 85095 || collegeID == 85716 || collegeID == 85717)
	{	
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, ECPI does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Art Institutes - collegeBound
	if(collegeID >= 85096 && collegeID <= 85141)
	{	
		if (frm.gradyear.value > 2011)
		{
			alert("Currently, The Art Institutes does not accept HS Grad 2012 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Jones International University
	if(collegeID == 85142)
	{			
		if ((frm['custom[extrafield2]'].value == "HSGED"))
		{
			alert('Currently, Jones International University required for their Bachelor Program at least 0 to 34 College Credits.');
			return false;
		}
	}
	
	//Jones International University Online
	if(collegeID == 85143)
	{			
		if ((frm['custom[extrafield2]'].value == "HSGED") || (frm['custom[extrafield2]'].value == "Z34") || (frm['custom[extrafield2]'].value == "35TO59") || (frm['custom[extrafield2]'].value == "60TO120") || (frm['custom[extrafield2]'].value == "ASSOC"))
		{
			//alert('Currently, Jones International University required for their Master Program - Bachelor or greater.');
			//return false;
	
				if (frm['custom[program]'].value == "DBA" || frm['custom[program]'].value == "EDS" || frm['custom[program]'].value == "EDD")
				{
					alert('Currently, Jones International University required for their Doctorate Program - Master or greater.');
					return false;
				}
				else
				{
					alert('Currently, Jones International University required for their Master Program - Bachelor or greater.');
					return false;
				}
		}
		
		if (frm['custom[extrafield2]'].value == "BACH")
		{
			if (frm['custom[program]'].value == "DBA" || frm['custom[program]'].value == "EDD" || frm['custom[program]'].value == "EDS")
			{
				alert('Currently, Jones International University required for their Doctorate Program - Master or greater.');
				return false;
			}
		}
	}


	//Ultimate Medical Academy 
	if(collegeID == 85144 || collegeID == 85145)
	{		
		if(frm.email.value != frm['custom[extrafield2]'].value )
		{
			alert("Email address does not match - please try again.");
			frm['custom[extrafield2]'].focus();
			return false;
		}
				
		if (frm['custom[extrafield5]'].value == "High School - Not finished")
		{
			alert('Currently, Ultimate Medical Academy required a High School - Diploma (or GED) or greater.');
			return false;
		}
	}

	
	//University of the Rockies - Online 
	if(collegeID == 85146)
	{					
		/*if (frm['custom[extrafield2]'].value == "High School" || frm['custom[extrafield2]'].value == "GED" || frm['custom[extrafield2]'].value == "Some College" || frm['custom[extrafield2]'].value == "Associate's Degree")
		{
			alert("Currently, University of the Rockies required for their Master Program - Bachelor or greater.");
			frm['custom[extrafield2]'].focus();
			return false;
		}*/
		
		if (frm['custom[program]'].value == "PSYDBPS" || frm['custom[program]'].value == "PSYDCJS" || frm['custom[program]'].value == "PSYDEL" || frm['custom[program]'].value == "PSYDERM" || frm['custom[program]'].value == "DPEC" || frm['custom[program]'].value == "PSYDHWS" || frm['custom[program]'].value == "PSYDIL" || frm['custom[program]'].value == "PSYDMC" || frm['custom[program]'].value == "PSYDMHA" || frm['custom[program]'].value == "DPNPMS" || frm['custom[program]'].value == "PSYDOC" || frm['custom[program]'].value == "PSYDOD" || frm['custom[program]'].value == "DPOL" || frm['custom[program]'].value == "PSYDSPP")
		{
			if (frm['custom[extrafield2]'].value == "High School" || frm['custom[extrafield2]'].value == "GED" || frm['custom[extrafield2]'].value == "Some College" || frm['custom[extrafield2]'].value == "Associate's Degree" || frm['custom[extrafield2]'].value == "Bachelor's Degree")
			{
				alert("Currently, University of the Rockies required for their Doctorate Program - Master or greater.");
				frm['custom[extrafield2]'].focus();
				return false;
			}
		}
		else
		{
			if (frm['custom[extrafield2]'].value == "High School" || frm['custom[extrafield2]'].value == "GED" || frm['custom[extrafield2]'].value == "Some College" || frm['custom[extrafield2]'].value == "Associate's Degree")
			{
				alert("Currently, University of the Rockies required for their Master Program - Bachelor or greater.");
				frm['custom[extrafield2]'].focus();
				return false;
			}
			
		}
		
		
		if(frm.state.value == "AL" || frm.state.value == "TN"){
			//alert('Currently,South University is only accept in the state' + frm.state.value + '.');
			alert('Currently, University of the Rockies is not accepting in these states - AL and TN');
			return false;
		}
	}
	
	
	//Chamberlain College of Nursing
	if(collegeID >= 85147 && collegeID <= 85151 || collegeID >= 85710 && collegeID <= 85711)
	{	
	
		if(frm.email.value != frm['custom[extrafield1]'].value )
		{
			alert("Email address does not match - please try again.");
			frm['custom[extrafield1]'].focus();
			return false;
		}
				
		/*if (frm['custom[extrafield3]'].value != "Y")
		{
			alert('Currently, Chamberlain College of Nursing required an RN License.');
			frm['custom[extrafield3]'].focus();
			return false;
		}
		
		if (frm['custom[extrafield4]'].value != "Y")
		{
			alert('Currently, Chamberlain College of Nursing required a current active RN License in the U.S. or member of NCSBN');
			frm['custom[extrafield4]'].focus();
			return false;
		}
		
		if (frm['custom[extrafield7]'].value == "GED" || frm['custom[extrafield7]'].value == "HS Diploma")
		{
			alert('Currently, Chamberlain College of Nursing required an Associate or greater.');
			frm['custom[extrafield7]'].focus();
			return false;
		}*/
			
		if (frm.gradyear.value > 2008)
		{
			alert("Currently, Chamberlain College of Nursing does not accept HS Grad 2009 and later.");
			frm.gradyear.focus();
			return false;
		}
		
		if(frm['custom[program]'].value == 'RNBSNO'|| frm['custom[program]'].value == 'RNBSN' || frm['custom[program]'].value == 'RNMSN')
		{
			if(frm['custom[extrafield3]'].value == 'N')
			{
				alert('You must have your RN license for the selected program! \n Program: '+frm['custom[program]'].value);
				return false;
			}
		}
		
		if(frm['custom[program]'].value == 'RNBSNO'|| frm['custom[program]'].value == 'RNBSN')
		{
			if(frm['custom[extrafield6]'].value == '' || frm['custom[extrafield6]'].value == 'N/A')
			{
				alert('Please tell us in which year you recieved your RN license.');
				frm['custom[extrafield6]'].focus();
				return false;
			}
		}		
	}
	
	//Allen School
	if(collegeID == 85154 || collegeID == 85155)
	{	
		if(frm.email.value != frm['custom[extrafield1]'].value )
		{
			alert("Email address does not match - please try again.");
			frm['custom[extrafield1]'].focus();
			return false;
		}
		
		if (frm['custom[extrafield3]'].value != "Y")
		{
				alert('Currently, Allen School required a devotion of at least 25 hours per week of studies.');
				frm['custom[extrafield3]'].focus();
				return false;
		}
		
		/*if (frm['custom[extrafield4]'].value != "Yes")
		{
			alert('Currently, Allen School required at least over 17 years of age and older.');
			frm['custom[extrafield4]'].focus();
			return false;
		}*/
		
		/*if (frm['custom[extrafield2]'].value != "Yes")
		{
				alert('Currently, Allen School required at least a High School Diploma or GED.');
				frm['custom[extrafield2]'].focus();
				return false;
		}
		*/
		
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Allen School does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Allen School Online
	if(collegeID == 85156)
	{	
		if(frm.email.value != frm['custom[extrafield1]'].value )
		{
			alert("Email address does not match - please try again.");
			frm['custom[extrafield1]'].focus();
			return false;
		}
	
		/*if (frm['custom[extrafield3]'].value != "Yes")
		{
				alert('Currently, Allen School Online required at least a computer and internet access.');
				frm['custom[extrafield3]'].focus();
				return false;
		}
		
		if (frm['custom[extrafield4]'].value != "Yes")
		{
				alert('Currently, Allen School Online required proof that you graduated from High School or have your GED.');
				frm['custom[extrafield4]'].focus();
				return false;
		}*/
		
		if (frm['custom[extrafield3]'].value != "Y")
		{
				alert('Currently, Allen School Online required a devotion of at least 25 hours per week of studies.');
				frm['custom[extrafield3]'].focus();
				return false;
		}
			
		
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Allen School Online does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	
	//Denver Academy of Court Reporting 
	if(collegeID == 85153)
	{	
		if(frm.email.value != frm['custom[extrafield1]'].value )
		{
			alert("Email address does not match - please try again.");
			frm['custom[extrafield1]'].focus();
			return false;
		}
	
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Denver Academy of Court Reporting does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Utah College of Massage Therapy 
	if(collegeID >= 85157 && collegeID <= 85163)
	{	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Utah College of Massage Therapy does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Pioneer Pacific College 
	if(collegeID >= 85164 && collegeID <= 85167)
	{	
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Pioneer Pacific College does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//New York School For Medical & Dental Assistants
	if (collegeID == 85168)
	{
		if(frm.email.value != frm['custom[extrafield1]'].value )
		{
			alert("Email address does not match - please try again.");
			frm['custom[extrafield1]'].focus();
			return false;
		}
		
		if (frm['custom[extrafield3]'].value != "yes")
		{
			alert('Currently, New York School For Medical & Dental Assistants required at least a HS or GED diploma.');
			frm['custom[extrafield3]'].focus();
			return false;
		}
			
		if (frm['custom[gender]'].value != "Female")
		{
			alert('Currently, New York School For Medical & Dental Assistants is only accepting Female.');
			frm['custom[gender]'].focus();
			return false;
		}
				
		if (frm['custom[extrafield4]'].value != "18-35")
		{
			alert('Currently, New York School For Medical & Dental Assistants is only accepting the age between 18-35.');
			frm['custom[extrafield4]'].focus();
			return false;
		}
		
	}
	
	//Strayer University 
	if(collegeID >= 85169 && collegeID <= 85233)
	{	
		if (frm['custom[extrafield2]'].value == "8")
		{
			alert('Currently, Strayer University required at least High School Graduate.');
			frm['custom[extrafield2]'].focus();
			return false;
		}
	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Strayer University does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	
	
	//Grand Canyon University
	if(collegeID >= 85241 && collegeID <= 85246)
	{
		
		//------Restricted programs per state-------
		//Education Programs ------------------		
		//alert(frm.state.value);
		if (frm['custom[program]'].value == "A" || frm['custom[program]'].value == "B" || frm['custom[program]'].value == "C" || frm['custom[program]'].value == "AG")
		//AR, IN, KY, MN, MS, WA
		{
			if(frm.state.value == "AR" || frm.state.value == "IN" || frm.state.value == "KY" || frm.state.value == "MN" || frm.state.value == "MS" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "G" || frm['custom[program]'].value == "P")
		//AL, AR, IN, KY
		{
			if(frm.state.value == "AL" || frm.state.value == "AR" || frm.state.value == "IN" || frm.state.value == "KY")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "H")
		//AL, AR, KY, WA
		{
			if(frm.state.value == "AL" || frm.state.value == "AR" || frm.state.value == "KY" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "J" || frm['custom[program]'].value == "L" || frm['custom[program]'].value == "M")
		//AR, IN, KY, WA
		{
			if(frm.state.value == "AR" || frm.state.value == "IN" || frm.state.value == "KY" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "K" || frm['custom[program]'].value == "N" || frm['custom[program]'].value == "O")
		//AL, AR, IN, KY, WA
		{
			if(frm.state.value == "AL" || frm.state.value == "AR" || frm.state.value == "IN" || frm.state.value == "KY" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "Q")
		//AR, KY
		{
			if(frm.state.value == "AR" || frm.state.value == "KY")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "R" || frm['custom[program]'].value == "S" || frm['custom[program]'].value == "T" || frm['custom[program]'].value == "V" || frm['custom[program]'].value == "X")
		//AL, AR, IN, KY, MN, MS, WA
		{
			if(frm.state.value == "AL" || frm.state.value == "AR" || frm.state.value == "IN" || frm.state.value == "KY" || frm.state.value == "MN" || frm.state.value == "MS" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "AC" || frm['custom[program]'].value == "AD")
		//AR, OR, SC
		{
			if(frm.state.value == "AR" || frm.state.value == "OR" || frm.state.value == "SC")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "AE")
		//AR, OR
		{
			if(frm.state.value == "AR" || frm.state.value == "OR")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "AF")
		//AR, IN, KY, OR
		{
			if(frm.state.value == "AR" || frm.state.value == "IN" || frm.state.value == "KY" || frm.state.value == "OR")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "Y" || frm['custom[program]'].value == "Z" || frm['custom[program]'].value == "AA" || frm['custom[program]'].value == "AB")
		//AL, WA
		{
			if(frm.state.value == "AL" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		//Health Care Programs ---------------------------
		if (frm['custom[program]'].value == "40")
		//AL, AR, MN, MS, TN, WA
		{
			if(frm.state.value == "AL" || frm.state.value == "AR" || frm.state.value == "MN" || frm.state.value == "MS" || frm.state.value == "TN" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "44")
		//AL, AR, MS, TN, WA, WI
		{
			if(frm.state.value == "AL" || frm.state.value == "AR" || frm.state.value == "MS" || frm.state.value == "TN" || frm.state.value == "WA" || frm.state.value == "WI")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "45")
		//AL, AK, MN, MS, TN, WA
		{
			if(frm.state.value == "AL" || frm.state.value == "AK" || frm.state.value == "MN" || frm.state.value == "MS" || frm.state.value == "TN" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "46")
		//AL, MS, SC, TN, WA, WI
		{
			if(frm.state.value == "AL" || frm.state.value == "MS" || frm.state.value == "SC" || frm.state.value == "TN" || frm.state.value == "WA" || frm.state.value == "WI")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "47")
		//AL, AR, IL, KS, MO, NH, NJ, NY, OR, TN, UT, WA, WI
		{
			if(frm.state.value == "AL" || frm.state.value == "AR" || frm.state.value == "IL" || frm.state.value == "KS" || frm.state.value == "MO" || frm.state.value == "NH" || frm.state.value == "NJ" || frm.state.value == "NY" || frm.state.value == "OR" || frm.state.value == "TN" || frm.state.value == "UT" || frm.state.value == "WA" || frm.state.value == "WI")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}

		if (frm['custom[program]'].value == "58" || frm['custom[program]'].value == "71")
		//AR, MN, MS, TN, WA
		{
			if(frm.state.value == "AR" || frm.state.value == "MN" || frm.state.value == "MS" || frm.state.value == "TN" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "70")
		{
			if(frm.state.value != "CA")
			{
				alert('Currently, Grand Canyon University is only accepting in - CA');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "72")
		//MS, TN, WA
		{
			if(frm.state.value == "MS" || frm.state.value == "TN" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		
		//Business & Helping Prof. Programs -----------------------------
		if (frm['custom[program]'].value == "5" || frm['custom[program]'].value == "6" || frm['custom[program]'].value == "7" || frm['custom[program]'].value == "10" || frm['custom[program]'].value == "12")
		//AR, MN, MS, WA
		{
			if(frm.state.value == "AR" || frm.state.value == "MN" || frm.state.value == "MS" || frm.state.value == "WA")				
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "28" || frm['custom[program]'].value == "63" || frm['custom[program]'].value == "107")
		//AL, AR, MN, MS, WA
		{
			if(frm.state.value == "AL" || frm.state.value == "AR" || frm.state.value == "MN" || frm.state.value == "MS" || frm.state.value == "WA")				
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "104" || frm['custom[program]'].value == "EMBA" || frm['custom[program]'].value == "25" || frm['custom[program]'].value == "15" || frm['custom[program]'].value == "14")
		//MS, WA
		{
			if(frm.state.value == "MS" || frm.state.value == "WA")				
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
		
			
		//College of Liberal Arts -------------------------------------------------------
		if (frm['custom[program]'].value == "11" || frm['custom[program]'].value == "59" || frm['custom[program]'].value == "66" || frm['custom[program]'].value == "67" || frm['custom[program]'].value == "68" || frm['custom[program]'].value == "69" || frm['custom[program]'].value == "75" || frm['custom[program]'].value == "76")
		//AR, MS, MN, WA
		{
			if(frm.state.value == "AR" || frm.state.value == "MS" || frm.state.value == "MN" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}
			
		if (frm['custom[program]'].value == "54" || frm['custom[program]'].value == "55" || frm['custom[program]'].value == "56" || frm['custom[program]'].value == "60" || frm['custom[program]'].value == "61" || frm['custom[program]'].value == "62")
		//AL, AR, MS, MN, WA
		{
			if(frm.state.value == "AL" || frm.state.value == "AR" || frm.state.value == "MS" || frm.state.value == "MN" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}	
		
		if (frm['custom[program]'].value == "102" || frm['custom[program]'].value == "103")
		//AR, MS, WA
		{
			if(frm.state.value == "AR" || frm.state.value == "MS" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}	
			
		
		//College of Nursing -------------------------------------------------------
		if (frm['custom[program]'].value == "13")
		//AR, MN, MS, TN, WA
		{
			if(frm.state.value == "AR" || frm.state.value == "MN" || frm.state.value == "MS" || frm.state.value == "TN" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}	
		
		if (frm['custom[program]'].value == "27" || frm['custom[program]'].value == "33")
		//TN, WA
		{
			if(frm.state.value == "TN" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}	
		
		
		if (frm['custom[program]'].value == "72" || frm['custom[program]'].value == "73")
		//AL, TN, WA
		{
			if(frm.state.value == "AL" || frm.state.value == "TN" || frm.state.value == "WA")
			{
				alert('Currently, Grand Canyon University is not accepting the selected program in this state.');
				return false;
			}
		}	
		
		
			
		//Reject Still in HS, GED, and HS
		if (frm['custom[extrafield6]'].value == "1" || frm['custom[extrafield6]'].value == "2")
		{
			alert('Currently, Grand Canyon University required some college or greater.');
			frm['custom[extrafield6]'].focus();
			return false;
		}
		
		
		if(frm.email.value != frm['custom[extrafield16]'].value )
		{
			alert("Email address does not match - please try again.");
			frm['custom[extrafield16]'].focus();
			return false;
		}
	
		
		if (frm['custom[extrafield1]'].value != "Y")
		{
			alert('Currently, Grand Canyon University required at least a U.S. Citizen and all credits from within the U.S.');
			frm['custom[extrafield1]'].focus();
			return false;
		}
		
		
		
		if (frm['custom[program]'].value == "44") //BS in Addiction Counseling
		{
			if (frm['custom[extrafield6]'].value == "1" || frm['custom[extrafield6]'].value == "2" || frm['custom[extrafield6]'].value == "4")
			{
				alert('Currently, Grand Canyon University required for their Counseling Program - Associate or greater.');
				frm['custom[extrafield6]'].focus();
				return false;
			}
		}
		
		
		if (frm['custom[program]'].value == "13") //nursing program
		{
			
			if (frm['custom[extrafield5]'].value != "1")
			{
				alert('Currently, Grand Canyon University required a current licensed Registered Nurse in the U.S.');
				frm['custom[extrafield5]'].focus();
				return false;
			}
			
			if (frm['custom[extrafield6]'].value == "1" || frm['custom[extrafield6]'].value == "2" || frm['custom[extrafield6]'].value == "4")
			{
				alert('Currently, Grand Canyon University required for their Nursing Program - Associate or greater.');
				frm['custom[extrafield6]'].focus();
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "40" || frm['custom[program]'].value == "45" || frm['custom[program]'].value == "58") // BS in Respiratory Care, BS in Medical Imaging Science,BS in Health Science: Professional Development & Advanced Patient Care
		{
			if (frm['custom[extrafield3]'].value != "Y")
			{
				alert('Currently, Grand Canyon University required a licensed Health Care professional with an Associates Degree.');
				frm['custom[extrafield3]'].focus();
				return false;
			}
			
			if (frm['custom[extrafield6]'].value == "1" || frm['custom[extrafield6]'].value == "2" || frm['custom[extrafield6]'].value == "4")
			{
				alert('Currently, Grand Canyon University required an Associate or greater.');
				frm['custom[extrafield6]'].focus();
				return false;
			}
		}	
						
		if (frm['custom[program]'].value == "S" || frm['custom[program]'].value == "R")//B.S. in Secondary Education: English, B.S. in Secondary Education: Social Studies
		{
			if (frm['custom[extrafield15]'].value != "Y")
			{
			alert('Currently, Grand Canyon University required a bachelor degree and are you certified to teach K - 12.');
				frm['custom[extrafield15]'].focus();
				return false;
			}
		
		}

		if(frm['custom[extrafield14]'].checked == false)
		{
			alert('Please check the box verifying that Grand Canyon may contact you regarding this request.');
			frm['custom[extrafield14]'].focus();
		}
	}
	
	
	
	//New England Institute of Technology  
	if(collegeID == 85247)
	{	
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, New England Institute of Technology does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Ashford University Online  
	if(collegeID == 85249)
	{	
		if(frm.state.value == 'KS' || frm.state.value == 'AR'){
			alert('Currently, Ashford University Online is not accepting in these state - AR, KS');
			return false;
		}
		
		if (frm['custom[extrafield2]'].value == "Under 17" || frm['custom[extrafield2]'].value == "17%2B years old")
		{
			//alert('hello2');
			alert('Currently, Ashford University Online only accept age 22 and over.');
			frm['custom[extrafield2]'].focus();
			return false;
		}
		
		if (frm['custom[program]'].value == "AAB")
		{
			if (frm['custom[extrafield1]'].value == "Bachelor's Degree" || frm['custom[extrafield1]'].value == "Master's Degree" || frm['custom[extrafield1]'].value == "Doctoral Degree" || frm['custom[extrafield1]'].value == "Associate's Degree")
			{
				alert('Currently, Ashford University Online is only accepting for their Assoicate Program - HS, GED, and Some College.');
				frm['custom[extrafield1]'].focus();
				return false;
			}
		}
		
		if (frm['custom[extrafield1]'].value == "Bachelor's Degree" || frm['custom[extrafield1]'].value == "Master's Degree" || frm['custom[extrafield1]'].value == "Doctoral Degree")
		{
			//alert('hello2');
			alert('Currently, Ashford University Online is only accepting HS, GED, Some College, and Associate.');
			frm['custom[extrafield1]'].focus();
			return false;
		}
	
		if (frm.gradyear.value > 2006)
		{
			alert("Currently, Ashford University Online does not accept HS Grad 2007 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//TCI - College for Technology
	if(collegeID == 85250)
	{	
		if(frm.state.value != "NY"){
			alert('Currently, College for Technology is only accepting in these states - NY.');
			return false;
		}
		
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, College for Technology does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}


	
	//Capella University Online
	if(collegeID == 85252)
	{	
	 
		if (frm['custom[extrafield4]'].value == "01" || frm['custom[extrafield4]'].value == "02")
		{
			if (frm['custom[extrafield5]'].value == "2010")
			{
				alert('Currently, Capella University Online is not accepting this projected start date.');
				return false;
			}
		}
		
		//check for Master programs	
		if (frm['custom[program]'].value == "1013|3358" || frm['custom[program]'].value == "1012|3357" || frm['custom[program]'].value == "1453|3372" || frm['custom[program]'].value == "1011|3356" || frm['custom[program]'].value == "1454|3373" || frm['custom[program]'].value == "1452|3371" || frm['custom[program]'].value == "1035|3379" || frm['custom[program]'].value == "1009|3354" || frm['custom[program]'].value == "1455|3374" || frm['custom[program]'].value == "1010|3355" || frm['custom[program]'].value == "1456|3375" || frm['custom[program]'].value == "1036|3360" || frm['custom[program]'].value == "1037|3361")
		{
			//1||2||3||4||5||6||7||9
			if ((frm['custom[extrafield3]'].value == "1") || (frm['custom[extrafield3]'].value == "2") || (frm['custom[extrafield3]'].value == "3") || (frm['custom[extrafield3]'].value == "4") || (frm['custom[extrafield3]'].value == "5") || (frm['custom[extrafield3]'].value == "6") || (frm['custom[extrafield3]'].value == "7") || (frm['custom[extrafield3]'].value == "9")) //GED,Home School Diploma,High School Diploma,0-1 Year of College Coursework,1-2 Years of College Coursework,Associates Degree,2-3 Years of College Coursework,3-4 Years of College Coursework,
			{
				alert('Currently, Capella University Online required for their Master Program - Bachelor or greater.');
				return false;
			}
		}
			
		//check for PHD programs
		if (frm['custom[program]'].value == "1007|3353" || frm['custom[program]'].value == "1446|3365" || frm['custom[program]'].value == "1006|3352" || frm['custom[program]'].value == "1448|3367" || frm['custom[program]'].value == "1005|3380" || frm['custom[program]'].value == "1449|3368" || frm['custom[program]'].value == "1004|3351" || frm['custom[program]'].value == "1450|3369" || frm['custom[program]'].value == "1451|3370" || frm['custom[program]'].value == "1041|3364" || frm['custom[program]'].value == "1447|3366" || frm['custom[program]'].value == "1003|3350") 																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									
		{
			//1||2||3||4||5||6||7||8||9||10||11||12||13||18
			if ((frm['custom[extrafield3]'].value == "1") || (frm['custom[extrafield3]'].value == "2") || (frm['custom[extrafield3]'].value == "3") || (frm['custom[extrafield3]'].value == "4") || (frm['custom[extrafield3]'].value == "5") || (frm['custom[extrafield3]'].value == "6") || (frm['custom[extrafield3]'].value == "7") || (frm['custom[extrafield3]'].value == "9") || (frm['custom[extrafield3]'].value == "8") || (frm['custom[extrafield3]'].value == "10") || (frm['custom[extrafield3]'].value == "11") || (frm['custom[extrafield3]'].value == "12")  || (frm['custom[extrafield3]'].value == "18") || (frm['custom[extrafield3]'].value == "13")) //3 year Baccalaureate Degree, Within 1 Semester of Bachelor's Degree, Bachelors Degree, Some Graduate Coursework, Within one Year of Masters Degree
			{
				
					alert('Currently, Capella University Online required for their Doctorate or MCERT Programs - Master or greater.');
					return false;
			}
		
		}
		
		//EdS and EdD
		//1||2||3||4||5||6||7||8||9||10||11||12
		if (frm['custom[program]'].value == "1014|3359")
		{
			if ((frm['custom[extrafield3]'].value == "1") || (frm['custom[extrafield3]'].value == "2") || (frm['custom[extrafield3]'].value == "3") || (frm['custom[extrafield3]'].value == "4") || (frm['custom[extrafield3]'].value == "5") || (frm['custom[extrafield3]'].value == "6") || (frm['custom[extrafield3]'].value == "7") || (frm['custom[extrafield3]'].value == "8") || (frm['custom[extrafield3]'].value == "9") || (frm['custom[extrafield3]'].value == "10") || (frm['custom[extrafield3]'].value == "11") || (frm['custom[extrafield3]'].value == "12"))
			{
				alert('Currently, Capella University Online required for their Graduate Cert Program - Master or greater.');
				return false;
			}
		}
	

	}
	

	//Capella University Undergrad
	if(collegeID >= 85253 && collegeID <= 85256)
	{	
		if (frm['custom[extrafield3]'].value == "1" || frm['custom[extrafield3]'].value == "2" || frm['custom[extrafield3]'].value == "3")
		{
			alert('Currently, Capella University is not accepting Home School Diploma, GED, and High School Diploma.');
			frm['custom[extrafield3]'].focus();
			return false;
		}
		
		if (frm['custom[extrafield4]'].value == "01" || frm['custom[extrafield4]'].value == "02" || frm['custom[extrafield4]'].value == "03" || frm['custom[extrafield4]'].value == "04")
		{
			if (frm['custom[extrafield5]'].value == "2010")
			{
				alert('Currently, Capella University is not accepting this projected start date.');
				frm['custom[extrafield5]'].focus();
				return false;
			}
		}
		
		if (frm['custom[extrafield7]'].value == "N" && frm['custom[extrafield6]'].value < "24" && frm['custom[extrafield3]'].value < "6")
		{
			alert('Sorry, You do not meet the requirements set by Capella University.');
			frm['custom[extrafield7]'].focus();
			return false;
		}

				if (frm['custom[extrafield7]'].value == "N" && frm['custom[extrafield6]'].value >= "24" && frm['custom[extrafield3]'].value < "4")
		{
			alert('Sorry, You do not meet the requirements set by Capella University.');
			frm['custom[extrafield7]'].focus();
			return false;
		}
			
		
	}
	
	
	//DeVry Univ - Collegebound
	if (collegeID >= 85257  && collegeID <= 85341)
	{	
		if(frm.email.value != frm['custom[extrafield4]'].value )
		{
			alert("Email address does not match - please try again.");
			frm['custom[extrafield4]'].focus();
			return false;
		}
		
		if ((frm['custom[extrafield5]'].value == "None") || (frm['custom[extrafield5]'].value == "GED") || (frm['custom[extrafield5]'].value == "HS Diploma") || (frm['custom[extrafield5]'].value == "Associate Degree"))
		{
			if (frm['custom[program]'].value == "EDUX")
			{
				alert('Currently,  DeVry University required for their Master Program - Bachelor or greater.');
				return false;
			}
		}
		
		if (frm.gradyear.value > 2008)
		{
			alert("Currently, DeVry University does not accept HS Grad 2009 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	}
	

	//American Institute School of Wellness and Beauty - CollegeBound
	if (collegeID == 85342)
	{			
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, American Institute School of Wellness and Beauty does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	}
	
	
	//Western International University
	if(collegeID == 86000)
	{	
		//if (frm['custom[custom_2]'].checked == false)
		if (frm['custom[custom_2]'].value == "N")
		{
			alert("You must acknowledge that you will be contacted by Western International University.");
			return false;
		}
		
		if ((frm['custom[age]'].value == "Under 18") || (frm['custom[age]'].value == "18 to 23"))
		{
			alert('Currently, Western International University only accept age 24 and over.');
			//frm['custom[extrafield6]'].focus();
			return false;
		}
		
		if (frm['custom[education]'].value == "N" || frm['custom[education]'].value == "HS-Some")
		{
			alert("Currently, Western International University required student to be at least a HS Jurior .");
			//frm.gradyear.focus();
			return false;
		}
		
		
		if (frm['custom[program]'].value == "3927" || frm['custom[program]'].value == "3928" || frm['custom[program]'].value == "3929" || frm['custom[program]'].value == "3930" || frm['custom[program]'].value == "3931" || frm['custom[program]'].value == "3932" || frm['custom[program]'].value == "3933" || frm['custom[program]'].value == "3934")
		{
			if ((frm['custom[education]'].value != "COLLEGE 3YR OR MORE") && (frm['custom[education]'].value != "BACHELOR") && (frm['custom[education]'].value != "MASTER"))
			{
				alert('Currently, Western International University required for their Master Program - college 3+ years / Bachelor or greater.');
				//frm['custom[extrafield1]'].focus();
				return false;
			}
		}
	}
	
	//United Education Institute
	if (collegeID >= 21145 && collegeID <= 21152)
	{
		if (frm['custom[Graduate]'].value != "Yes")
		{
			alert('You must answer Yes to the question, Did you graduate High School or have your GED?');
			frm['custom[Graduate]'].focus();
			return false;
		}
			
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, UEI College does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	}
	
	//Blue Cliff College
	if (collegeID >= 22684 && collegeID <= 22690)
	{			
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Blue Cliff College does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	}


	//American Career College
	if (collegeID >= 25007 && collegeID <= 25009)
	{
		if (frm['custom[edLevel]'].value == "Some High School" || frm['custom[edLevel]'].value == "Currently in High School")
		{
			alert('Currently, American Career College required at least High School Graduate or GED.');
			frm['custom[edLevel]'].focus();
			return false;
		}
		
	}
	
	/*
	//Career Point College
	if (collegeID == 25010 || collegeID == 25011)
	{
		if (frm['custom[levelofEducation]'].value == "Current High School Student")
		{
			if (frm['custom[program]'].value == "1432")
			{
				alert('Currently, American Career College required at least High School Graduate or GED.');
				frm['custom[edLevel]'].focus();
				return false;
			}
		}
		
	}
	*/
	
	
	//Full Sail University
	if (collegeID == 25012)
	{
		if (frm['custom[certification]'].value != "Yes")
		{
			if (frm['custom[program]'].value == "20")
			{
				alert('Currently, Full Sail University required a certificate of teaching for this program.');
				frm['custom[certification]'].focus();
				return false;
			}
		}
		
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Full Sail University does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	}
	
	
	
	
	//Ashford University Online  - Datamark
	if(collegeID == 50022 || collegeID == 50023)
	{	
	    if (frm.gradyear.value > 2006)
        {
            alert('Currently, Ashford University Online does not accept this HS Grad year.');
            frm.gradyear.focus();
            return false;
        }
		
  		if(frm.state.value == 'KS' || frm.state.value == 'AR'){
  			alert('Currently, Ashford University Online is not accepting in these state - AR, KS');
  			return false;
  		}
          
  		if (frm['custom[age]'].value == "Under 17" || frm['custom[age]'].value == "17-21 years old")
  		{
  			alert('Currently, Ashford University Online only accept age 22 and over.');
  			frm['custom[age]'].focus();
  			return false;
  		}
  				
  		$thisProgram = frm['custom[program]'].value;
  		
  		thisAA=/^AA/;
  		compareAA = thisAA.exec($thisProgram);
  		
  		thisBA=/^BA/;
  		compareBA = thisBA.exec($thisProgram);
  				
  		thisMA=/^MA/;
  		compareMA = thisMA.exec($thisProgram);
  		
  		thisMBA=/^MBA/;
  		compareMBA = thisMBA.exec($thisProgram);
  		
  		thisMaster=/^Master/;
  		compareMaster = thisMaster.exec($thisProgram);
  		
  		thisMPA=/^MPA/;
  		compareMPA = thisMPA.exec($thisProgram);
  		
  
  		if (compareAA)
  		{
  			if (frm['custom[education_level_code]'].value == "ASSOC" || frm['custom[education_level_code]'].value == "BACH" || frm['custom[education_level_code]'].value == "MAST" || frm['custom[education_level_code]'].value == "DOCT")
  			{
  				alert('Currently, Ashford University Online is only accepting for their Assoicate Program - HS, GED, and Some College.');
  				frm['custom[education_level_code]'].focus();
  				return false;
  			}
  		}
  		else if (compareBA)
  		{
  			if (frm['custom[education_level_code]'].value == "BACH" || frm['custom[education_level_code]'].value == "MAST" || frm['custom[education_level_code]'].value == "DOCT")
  			{
  				alert('Currently, Ashford University Online is only accepting for their Bachelor Program - HS, GED, Some College, and Associate.');
  				frm['custom[education_level_code]'].focus();
  				return false;
  			}
  			
  		}
  		else if (compareMA || compareMBA || compareMaster || compareMPA)
  		{
  			if (frm['custom[education_level_code]'].value == "HS" || frm['custom[education_level_code]'].value == "GED" || frm['custom[education_level_code]'].value == "SOME" || frm['custom[education_level_code]'].value == "ASSOC")
  			{
  				alert('Currently, Ashford University Online is only accepting for their MASTER Program - Bachelor or greater.');
  				frm['custom[education_level_code]'].focus();
  				return false;
  			}
  			
  		}
	}


	//Western Governors University - Datamark
	if (collegeID == 50025)
	{

		if (frm['custom[program]'].value == "BSNU" || frm['custom[program]'].value == "MSNUE" || frm['custom[program]'].value == "MSNUL" || frm['custom[program]'].value == "RNMSE" || frm['custom[program]'].value == "RNMSL") //nursing program
		{
			if (frm['custom[nursing_question]'].value != "Yes")
			{
	
				alert("WGU's Nursing degree programs require students to already possess a current, unencumbered RN (registered nurse) license. If you do not currently possess an RN license, you are not eligible for admission into this program. If you are not sure whether your RN license is current and/or unencumbered, please contact your state's licensing board for more information.");
				frm['custom[nursing_question]'].focus();
				return false;
			}
		}
		
		if (frm.gradyear.value > 2005)
		{
			alert("Currently, Western Governors University does not accept HS Grad 2006 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	}
	
	
	
	//Argosy University Undergrad
	if(collegeID == 84210)
	{	
		if (frm['custom[educationCompleted]'].value == "SHS")
		{
			alert('Currently, Argosy University required at least a High School Graduate or GED.');
			frm['custom[educationCompleted]'].focus();
			return false;
		}
	
		if (frm.gradyear.value > 2007)
		{
			alert("Currently, Argosy University does not accept HS Grad 2008 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	//Argosy University Grad
	if(collegeID == 84211)
	{	
		var thisProgram = frm['custom[program]'].value;
				
		thisEdD=/^EdD/;
		compareEdD = thisEdD.exec(thisProgram);
		
		thisDBA=/(DBA)/i;
		compareDBA = thisDBA.exec(thisProgram);
		
		thisDoctor=/^Doctor/;
		compareDoctor = thisDoctor.exec(thisProgram);
		 
		thisPsyD=/^PsyD/;
		comparePsyD = thisPsyD.exec(thisProgram);
		 
		thisEdS=/^EdS/;
		compareEdS = thisEdS.exec(thisProgram);
		
		thisMA=/^MA/;
		compareMA = thisMA.exec(thisProgram);
		
		thisMAEd=/^MAEd/;
		compareMAEd = thisMAEd.exec(thisProgram);
		
		thisMBA=/(MBA)/i;
		compareMBA = thisMBA.exec(thisProgram);
		
		thisMSM=/(MSM)/i;
		compareMSM = thisMSM.exec(thisProgram);
		
		
		//alert(thisProgram);
		
		if (compareEdD || compareDBA || compareDoctor || comparePsyD)
		{
				if (frm['custom[educationCompleted]'].value == "SHS" || frm['custom[educationCompleted]'].value == "GED" || frm['custom[educationCompleted]'].value == "HS" || frm['custom[educationCompleted]'].value == "SCL" || frm['custom[educationCompleted]'].value == "ADG" || frm['custom[educationCompleted]'].value == "BDG")
			{
				//alert('Currently, Argosy University is only accepting for their Doctorate Program - Master or greater.');
				alert('We \'re sorry, but currently you do not meet our admissions criteria for this program.  Please select a different program.');
				frm['custom[educationCompleted]'].focus();
				return false;
			}
		}
		if (compareMA || compareMAEd || compareMBA || compareMSM || compareEdS)
		{
			if (frm['custom[educationCompleted]'].value == "SHS" || frm['custom[educationCompleted]'].value == "GED" || frm['custom[educationCompleted]'].value == "HS" || frm['custom[educationCompleted]'].value == "SCL" || frm['custom[educationCompleted]'].value == "ADG")
			{
				//alert('Currently, Argosy University is only accepting for their Master Program - Bachelor or greater.');
				alert('We \'re sorry, but currently you do not meet our admissions criteria for this program.  Please select a different program.');
				frm['custom[educationCompleted]'].focus();
				return false;
			}
		}
		/*if (comparePsyD)
		{
			if (frm['custom[educationCompleted]'].value == "SHS" || frm['custom[educationCompleted]'].value == "GED" || frm['custom[educationCompleted]'].value == "HS" || frm['custom[educationCompleted]'].value == "SCL" || frm['custom[educationCompleted]'].value == "ADG")
			{
				//alert('Currently, Argosy University is only accepting for their PsyD in Clinical and School Psychology Program - Bachelor or greater.');
				alert('We\'re sorry, but currently you do not meet our admissions criteria for this program.  Please select a different program.3');
				frm['custom[educationCompleted]'].focus();
				return false;
			}
		}*/
	
		if (frm.gradyear.value > 2007)
		{
			alert("Currently, Argosy University does not accept HS Grad 2008 and later.");
			frm.gradyear.focus();
			return false;
		}
	}


	//Strayer Univ Online - EndeavorAds
	if(collegeID == 84168)
	{	
		if (frm['custom[eduLevel]'].value == "Not yet completed high school")
		{
			alert('Currently, Strayer University Online required at least High School Graduate or greater.');
			return false;
		}
										 
		if ((frm['custom[eduLevel]'].value == "High school graduate") || (frm['custom[eduLevel]'].value == "Some college") || (frm['custom[eduLevel]'].value == "Associate degree")) 
		{
			if (frm['custom[program]'].value == "59" || frm['custom[program]'].value == "118" || frm['custom[program]'].value == "92" || frm['custom[program]'].value == "47" || frm['custom[program]'].value == "119" || frm['custom[program]'].value == "48" || frm['custom[program]'].value == "119" || frm['custom[program]'].value == "48" || frm['custom[program]'].value == "52" || frm['custom[program]'].value == "51" || frm['custom[program]'].value == "97" || frm['custom[program]'].value == "120" || frm['custom[program]'].value == "49" || frm['custom[program]'].value == "131" || frm['custom[program]'].value == "121" || frm['custom[program]'].value == "122" || frm['custom[program]'].value == "91" || frm['custom[program]'].value == "58" || frm['custom[program]'].value == "96" || frm['custom[program]'].value == "54" || frm['custom[program]'].value == "60" || frm['custom[program]'].value == "95" || frm['custom[program]'].value == "94" || frm['custom[program]'].value == "53" || frm['custom[program]'].value == "123" || frm['custom[program]'].value == "117" || frm['custom[program]'].value == "46" || frm['custom[program]'].value == "93" || frm['custom[program]'].value == "98" || frm['custom[program]'].value == "89" || frm['custom[program]'].value == "70" || frm['custom[program]'].value == "63" || frm['custom[program]'].value == "62" || frm['custom[program]'].value == "69" || frm['custom[program]'].value == "71" || frm['custom[program]'].value == "64" || frm['custom[program]'].value == "72" || frm['custom[program]'].value == "90" || frm['custom[program]'].value == "61")
			{
				alert('Currently, Strayer University Online required for their Master and Executive Graduate Certificate Program - Bachelor or greater.');
				return false;
			}
		}
	}

	
	//Lincoln College of Technology - CUNet
	if(collegeID >= 25017 && collegeID <= 25023)
	{
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Lincoln College of Technology does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
		
		if (frm['custom[optin]'].checked == false)
		{
			alert("You must acknowledge that you will be contacted by Lincoln representative.");
			//frm.custom[optin].focus();
			return false;
		}
	}
	
	
	//Southwestern College - CUNet
	if(collegeID >= 25024 && collegeID <= 25029)
	{
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, western College does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	//Euphoria Institute of Beauty Arts & Sciences - CUNet
	if((collegeID >= 25030 && collegeID <= 25033) || collegeID == 25038)
	{
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Euphoria Institute of Beauty Arts & Sciences does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	//National American University - CUNet
	if ((collegeID >= 20682 && collegeID <= 20685) || collegeID == 20688 || collegeID == 20689 || collegeID == 22514 || collegeID == 22515 || collegeID == 25048 || (collegeID >= 20691 && collegeID <= 20692))
	{	
		var thisProgram = frm['custom[program]'].value;
		
		thisMaster=/Master/i;
		compareMaster = thisMaster.exec(thisProgram);
		
		thisMBA=/MBA/i;
		compareMBA = thisMBA.exec(thisProgram);
		
		
		//alert(thisProgram);
		if (compareMaster || compareMBA)
		{
			if (frm['custom[LevelOfEducation]'].value == "High School Diploma" || frm['custom[LevelOfEducation]'].value == "GED" || frm['custom[LevelOfEducation]'].value == "Some College (less than 1 Year)" || frm['custom[LevelOfEducation]'].value == "Some College (more than 1 year)" || frm['custom[LevelOfEducation]'].value == "Associates")
			{
				alert('Currently, National American University is only accepting for their Master Program - Bachelor or greater.');
				frm['custom[LevelOfEducation]'].focus();
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "Applied Management A.A.S." || frm['custom[program]'].value == "Applied Management B.S.")
		{
			if (frm['custom[LevelOfEducation]'].value == "High School Diploma" || frm['custom[LevelOfEducation]'].value == "GED" || frm['custom[LevelOfEducation]'].value == "Some College (less than 1 Year)")
			{
				alert('Currently, National American University required at least Some College (more than 1 year).');
				frm['custom[LevelOfEducation]'].focus();
				return false;
			}
		}
		
		if (frm['custom[program]'].value == "Online Nursing RN-to-BSN B.S.")
		{
			
			if (frm['custom[RNLicense]'].value == 0 || frm['custom[DIP]'].value == 0)
			{
				alert('Currently, National American University required an RN license and DIP in nursing.');
				frm['custom[RNLicense]'].focus();
				return false;
			}
			
			if (frm['custom[NursingGPA]'].value == "Under 2.0" || frm['custom[NursingGPA]'].value == "2.0 - 2.7")
			{
				alert('Currently, National American University required at least GPA 2.8 or greater.');
				frm['custom[NursingGPA]'].focus();
				return false;
			}
		}
        
		if (frm['custom[program]'].value == "Master of Science in Nursing")
		{	
			if(frm.state.value == "MO" || frm.state.value == "MN" || frm.state.value == "KS")
			{
				alert('Currently, National American University is not accepting in this state');
				return false;
			}
		}
		
		if (collegeID >= 20688)
		{
			if (frm.gradyear.value > 2009)
			{
				alert("Currently, National American Universitydoes not accept HS Grad 2010 and later.");
				frm.gradyear.focus();
				return false;
			}
		}
		else
		{
			if (frm.gradyear.value > 2010)
			{
				alert("Currently, National American University does not accept HS Grad 2011 and later.");
				frm.gradyear.focus();
				return false;
			}
		}
		
		if (frm['custom[optin]'].checked == false)
		{
			alert("You must acknowledge that you will be contacted by NAU representative.");
			//frm.custom[optin].focus();
			return false;
		}
	}
	
	
	//Lincoln Technical Institute - CUNet
	if(collegeID >= 25130 && collegeID <= 25134)
	{
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Lincoln Technical Institute does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
		
		if (frm['custom[optin]'].checked == false)
		{
			alert("You must acknowledge that you will be contacted by Lincoln representative.");
			//frm.custom[optin].focus();
			return false;
		}
	}
	
	
	//Lincoln Culinary Institute - CUNet
	if(collegeID == 25135 || collegeID == 25136)
	{
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Lincoln Culinary Institute does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
		
		if (frm['custom[optin]'].checked == false)
		{
			alert("You must acknowledge that you will be contacted by Lincoln representative.");
			//frm.custom[optin].focus();
			return false;
		}
	}
	
	
	//ATI - CUNet
	if ((collegeID >= 25035 && collegeID <= 25037))
	{	
		if (collegeID == 25036) 
		{
			if (frm['custom[program]'].value == "Aesthetics Laser Certification Preparation Seminar")
			{
				if ((frm['custom[prerequisite]'].value == "") || (frm['custom[prerequisite]'].value == "Not Applicable"))
				{
					alert('We \'re sorry, but currently you do not meet our admissions criteria for this program.');
					frm['custom[prerequisite]'].focus();
					return false;
				}
				
				if (frm.gradyear.value > 2009)
				{
					alert("Currently, ATI does not accept HS Grad 2010 and later.");
					frm.gradyear.focus();
					return false;
				}
			}
		}
		else
		{
			if (frm.gradyear.value > 2010)
			{
				alert("Currently, ATI does not accept HS Grad 2011 and later.");
				frm.gradyear.focus();
				return false;
			}
		}
	}
	
	
	//ATI - CUNet
	if ((collegeID >= 25137 && collegeID <= 25149))
	{
		if (collegeID == 25137) 
		{
			if (frm['custom[program]'].value == "Aesthetics Laser Certification Preparation Seminar")
			{
				if (frm['custom[levelOfEducation]'].value == "")
				{
					alert('We \'re sorry, but currently you do not meet our admissions criteria for this program.');
					frm['custom[levelOfEducation]'].focus();
					return false;
				}
				
				if (frm.gradyear.value > 2009)
				{
					alert("Currently, ATI does not accept HS Grad 2010 and later.");
					frm.gradyear.focus();
					return false;
				}
			}
			else
			{
				if (frm.gradyear.value > 2010)
				{
					alert("Currently, ATI does not accept HS Grad 2011 and later.");
					frm.gradyear.focus();
					return false;
				}
			}
		}
		else
		{
			if (frm.gradyear.value > 2010)
			{
				alert("Currently, ATI does not accept HS Grad 2011 and later.");
				frm.gradyear.focus();
				return false;
			}
		}
	}
	
	
	//Remington College - CUNet
	if(collegeID >= 25089 && collegeID <= 25106)
	{	
		if (frm['custom[Education]'].value == "4")
		{
			alert('Currently, Remington College required at least a High School Graduate or GED.');
			frm['custom[Education]'].focus();
			return false;
		}
	}
	
	
	//University of the Rockies - Online --- CUNet
	if(collegeID == 25129)
	{					
		if (frm['custom[program]'].value == "PSYDBPS" || frm['custom[program]'].value == "PSYDCJS" || frm['custom[program]'].value == "PSYDEL" || frm['custom[program]'].value == "PSYDERM" || frm['custom[program]'].value == "DPEC" || frm['custom[program]'].value == "PSYDHWS" || frm['custom[program]'].value == "PSYDIL" || frm['custom[program]'].value == "PSYDMC" || frm['custom[program]'].value == "PSYDMHA" || frm['custom[program]'].value == "DPNPMS" || frm['custom[program]'].value == "PSYDOC" || frm['custom[program]'].value == "PSYDOD" || frm['custom[program]'].value == "DPOL" || frm['custom[program]'].value == "PSYDSPP")
		{
			if (frm['custom[education_level]'].value == "HS" || frm['custom[education_level]'].value == "GED" || frm['custom[education_level]'].value == "Some" || frm['custom[education_level]'].value == "Assoc" || frm['custom[education_level]'].value == "Bach")
			{
				alert("Currently, University of the Rockies required for their Doctorate Programs - Master or greater.");
				frm['custom[education_level]'].focus();
				return false;
			}
		}
		else
		{
			if (frm['custom[education_level]'].value == "HS" || frm['custom[education_level]'].value == "GED" || frm['custom[education_level]'].value == "Some" || frm['custom[education_level]'].value == "Assoc")
			{
				alert("Currently, University of the Rockies required for their Master Programs and Graduate Certificate Programs - Bachelor or greater.");
				frm['custom[education_level]'].focus();
				return false;
			}
			
		}
		
		
		if(frm.state.value == "AL" || frm.state.value == "TN")
		{
			alert('Currently, University of the Rockies is not accepting in these states - AL and TN');
			return false;
		}
	}
	
	
	//Anthem Institute (formly The Chubb Institute) - CUNet
	if(collegeID >= 20038 && collegeID <= 20045)
	{
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Anthem Institute does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Tiffin University Undergrad and Graduate- Datamark
	if (collegeID >= 52415 && collegeID <= 52418)
	{
		var thisProgram = frm['custom[program]'].value;
				
		thisMed=/^Med/;
		compareMed = thisMed.exec(thisProgram);
		
		thisMH=/(^MH)/i;
		compareMH = thisMH.exec(thisProgram);
		
		thisMSCJ=/^MSCJ/;
		compareMSCJ = thisMSCJ.exec(thisProgram);
		 
		thisMBA=/^MBA/;
		compareMBA = thisMBA.exec(thisProgram);
		 
		if (compareMed || compareMH || compareMSCJ || compareMBA)
		{
			if (frm['custom[education_level_code]'].value == "NHS" || frm['custom[education_level_code]'].value == "GED" || frm['custom[education_level_code]'].value == "HS" || frm['custom[education_level_code]'].value == "SOMCOLL" || frm['custom[education_level_code]'].value == "ASSOC")
			{
				alert('Currently, Tiffin University is only accepting for their Master Program - Bachelor or greater.');
				frm['custom[education_level_code]'].focus();
				return false;
			}
		}
		
		
		if (frm['custom[education_level_code]'].value == "NHS")
		{
			alert('Currently, Tiffin University required at least a GED or High School Graduate for their Degree Completion Programs.');
			frm['custom[education_level_code]'].focus();
			return false;	
		}
		
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Tiffin University does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
		
		
		if (frm['custom[transfer_credits]'].value == "0-20" || frm['custom[transfer_credits]'].value == "21-38" || frm['custom[transfer_credits]'].value == "39-44")
		{
			alert('Currently, Tiffin University required a minimum of 45 or more transferable units for the Degree Completion Programs.');
			frm['custom[transfer_credits]'].focus();
			return false;	
		}

		/*-------Start Date Validation------*/
		//Graduate MBA Validation
		if(frm['custom[program]'].value != 'MBAFN' || frm['custom[program]'].value != 'MBAGM' || frm['custom[program]'].value != 'MBAHA' || frm['custom[program]'].value != 'MBAHR' || frm['custom[program]'].value != 'MBAIB' || frm['custom[program]'].value != 'MBAL' || frm['custom[program]'].value != 'MBAMK' || frm['custom[program]'].value != 'MBASM')
		{
			//alert(frm['custom[program]'].value);
			if(frm['custom[start_date]'].value == 'October 2010')
			{
				alert('October 2010 start dates are only avialable for Graduate MBA programs.');
				frm['custom[start_date]'].focus();
				return false;
			}
			if(frm['custom[start_date]'].value == 'March 2011')
			{
				alert('March 2011 start dates are only avialable for Graduate MBA programs.');
				frm['custom[start_date]'].focus();
				return false;
			}			
			if(frm['custom[start_date]'].value == 'July 2011')
			{
				alert('July 2011 start dates are only avialable for Graduate MBA programs.');
				frm['custom[start_date]'].focus();
				return false;
			}
		}
		//MSCJ Forensic Psychology Validation
		if(frm['custom[program]'].value == 'MSCJFP')
		{
			if(frm['custom[start_date]'].value == 'January 2011')
			{
				alert('January 2011 start date is not offered for the MSCJ Forensic Psychology program.');
				frm['custom[start_date]'].focus();
				return false;
			}
			if(frm['custom[start_date]'].value == 'May 2011')
			{
				alert('May 2011 start date is not offered for the MSCJ Forensic Psychology program.');
				frm['custom[start_date]'].focus();
				return false;
			}
		}
		/*--------End Start Date Validation--------*/
		
}
	
	
	
	
	//South University - CUNet
	if(collegeID >= 25150 && collegeID <= 25158 || collegeID == 25161)
	{	
		var thisProgram = frm['custom[program]'].value;
				
		thisAMBA=/AMBA/;
		compareAMBA = thisAMBA.exec(thisProgram);
		
		thisMBA=/^MBA/i;
		compareMBA = thisMBA.exec(thisProgram);
		
		thisMA=/^MA/;
		compareMA = thisMA.exec(thisProgram);
		 
		if (compareAMBA || compareMBA || compareMA)
		{
			if (frm['custom[bsDegree]'].value != "Yes")
			{
				alert('Currently, South University is only accepting for their Master Program - Bachelor or greater.');
				frm['custom[bsDegree]'].focus();
				return false;
			}
		}
		
		/*
		//var thisProgram = frm['custom[program]'].value;
		var thisCollegeID = collegeID;
		var thisZip = frm.zip.value;
		switch(thisCollegeID)
		{
    
    }
		
	if(collegeID == 25154 || collegeID == 25157){	
		if (frm['custom[program]'].value == "AMBA")
		{
			var urlGetPrograms = 'http://'+location.host+"/get/south.php?"; 
	
			var url = urlGetPrograms+"zip="+thisZip+"&file="+thisFile;
			
			alert(url);
			
			xmlHttp = getHttpRequestObject();
			if (xmlHttp) 
			{	
				if (fieldName == "program")
				{
					document.getElementById(fieldName).options.length=0;
					document.getElementById(fieldName).options[0] = new Option('loading..','');
					xmlHttp.open('POST', url, true);
					xmlHttp.onreadystatechange = function() {
						if (xmlHttp.readyState == 4)  
						{				
							if (xmlHttp.status == 200)
							{
								var result = xmlHttp.responseText;
								
								//alert(result);
								
								if (result==0)
								{
									//alert('No programs are offered in this category');
									//alert('Currently, this campus does not accept applicant near your zipcode - please select a campus near your city.');
									alert('Sorry, this program is not offered in your area.');
									//document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
									//document.getElementById(fieldName).options[0]= new Option('Zipcode out of area.', '');
								}
								
								xmlHttp.abort();
								return false;
							}
						}
						//break;
					}
					xmlHttp.send(null);
				}
			}
		}
	}  */
      
		
		//Must have RN license for Nursing program
		if (frm['custom[program]'].value == "BSN in Nursing RN to BSN")
		{
			if (frm['custom[rnDegree]'].value != "Yes")
			{
				alert('Currently, South University required a current RN license for the nursing program.');
				frm['custom[rnDegree]'].focus();
				return false;
			}
		}
		
		//Must have a BS in Nursing for MS in Nursing program
		if (frm['custom[program]'].value == "MS in Nursing")
		{
			if (frm['custom[rnBS]'].value != "Yes")
			{
				alert('Currently, South University requires a BS in Nursing for the MS in Nursing program.');
				frm['custom[rnBS]'].focus();
				return false;
			}
		}
		
		
		/*if(frm.state.value != "AL" && frm.state.value != "FL" && frm.state.value != "GA" && frm.state.value != "SC"){
			//alert('Currently,South University is only accept in the state' + frm.state.value + '.');
			alert('Currently, South University is only accepting in these states - AL, FL, GA, and SC');
			return false;
		}*/
		
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, South University does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}

	}
	
	
	//Westwood College - CUNet
	if ((collegeID >= 20875 && collegeID <= 20890) || collegeID == 21615 || collegeID == 21618 || collegeID == 20012)
	{
		if (frm['custom[program]'].value == "31" || frm['custom[program]'].value == "44") //Master and MBA programs
		{
			if (frm['custom[education]'].value == "1" || frm['custom[education]'].value == "2" || frm['custom[education]'].value == "3" || frm['custom[education]'].value == "4")
			{
				alert("Currently, Westwood College required for their Master Programs - Bachelor or greater.");
				frm['custom[education]'].focus();
				return false;
			}
		}
		
		if (collegeID >= 20875 && collegeID <= 20890)//Westwood College Campuses - states reject
		{
			if(frm.state.value == "AK" || frm.state.value == "AL" || frm.state.value == "AR" || frm.state.value == "CT" || frm.state.value == "DE" || frm.state.value == "FC" || frm.state.value == "GM" || frm.state.value == "GU" || frm.state.value == "ID" || frm.state.value == "KY" || frm.state.value == "MA" || frm.state.value == "ME" || frm.state.value == "MH" || frm.state.value == "MI" || frm.state.value == "MS" || frm.state.value == "NH" || frm.state.value == "NJ" || frm.state.value == "OR" || frm.state.value == "PR" || frm.state.value == "RI" || frm.state.value == "VT" || frm.state.value == "WA")
			{
				alert('Currently, Westwood College is not accepting in this state.');
				return false;
			}
			
			if (frm.gradyear.value > 2010)
			{
				alert("Currently, Westwood College does not accept HS Grad 2011 and later.");
				frm.gradyear.focus();
				return false;
			}
		}
	
		
		if(collegeID == 20012)//Westwood College Online
		{
			if (frm.gradyear.value >= 2007) //current year minus 3
			{
				if (frm['custom[program]'].value == "51" || frm['custom[program]'].value == "34" || frm['custom[program]'].value == "52" || frm['custom[program]'].value == "50" || frm['custom[program]'].value == "53" || frm['custom[program]'].value == "31" || frm['custom[program]'].value == "42" || frm['custom[program]'].value == "2" || frm['custom[program]'].value == "47" || frm['custom[program]'].value == "48" || frm['custom[program]'].value == "49" || frm['custom[program]'].value == "15" || frm['custom[program]'].value == "54" || frm['custom[program]'].value == "1" || frm['custom[program]'].value == "29" || frm['custom[program]'].value == "45")
				{
					alert("Currently, Westwood College Online does not accept HS Grad 2007 and later for the selected program.");
					return false;
				}
			}
			
			//alert("test " + frm.state.value);
			
			if(frm.state.value == "TX")
			{
				alert('Currently, Westwood College Online is not accepting in this state - TX');
				return false;
			}
		}
		
		if(collegeID == 21618)//Redstone College - Denver Aviation - states reject
		{
			if(frm.state.value == "AL" || frm.state.value == "AR" || frm.state.value == "CT" || frm.state.value == "DC" || frm.state.value == "FL" || frm.state.value == "GA" || frm.state.value == "HI" || frm.state.value == "IA" || frm.state.value == "IN" || frm.state.value == "KY" || frm.state.value == "LA" || frm.state.value == "MA" || frm.state.value == "MD" || frm.state.value == "ME" || frm.state.value == "MS" || frm.state.value == "NJ" || frm.state.value == "OH" || frm.state.value == "PA" || frm.state.value == "SC" || frm.state.value == "VT" || frm.state.value == "WV")
			{
				alert('Currently, Westwood College is not accepting in this state for it Aviation Programs.');
				return false;
			}
			
			if (frm.gradyear.value > 2010)
			{
				alert("Currently, Westwood College does not accept HS Grad 2011 and later.");
				frm.gradyear.focus();
				return false;
			}
		}
		
	}
	
	
	
	//Kaplan University - Datamark
	if (collegeID == 50026)
	{
		var thisProgram = frm['custom[program]'].value;
				
		/*thisMS=/^MS/i;
		compareMS = thisMS.exec(thisProgram);
		
		thisMBA=/^MBA/i;
		compareMBA = thisMBA.exec(thisProgram);
		
		thisMPA=/^MPA/i;
		compareMPA = thisMPA.exec(thisProgram);
		
		thisMA=/^MA/i;
		compareMA = thisMA.exec(thisProgram);
		 
		if (compareMS || compareMBA || compareMPA || compareMA)*/
		
		//If -- for All MBA; All MPA; MSA; All MSCJ; MSHA; All MSIT; All MSLS; All MSM; All MSPH; All MSPY
		
		thisMBA=/^(MBA)/i;
		compareMBA = thisMBA.exec(thisProgram);
		
		thisMPA=/^(MPA)/i;
		compareMPA = thisMPA.exec(thisProgram);
		
		thisMSA=/^(MSA)/i;
		compareMSA = thisMSA.exec(thisProgram);
		
		thisMSCJ=/^(MSCJ)/i;
		compareMSCJ = thisMSCJ.exec(thisProgram);
		
		thisMSHA=/^(MSHA)/i;
		compareMSHA = thisMSHA.exec(thisProgram);
		
		thisMSIT=/^(MSIT)/i;
		compareMSIT = thisMSIT.exec(thisProgram);
		
		thisMSLS=/^(MSLS)/i;
		compareMSLS = thisMSLS.exec(thisProgram);
		
		thisMSM=/^(MSM)/i;
		compareMSM = thisMSM.exec(thisProgram);
		
		thisMSPH=/^(MSPH)/i;
		compareMSPH = thisMSPH.exec(thisProgram);
		
		thisMSPY=/^(MSPY)/i;
		compareMSPY = thisMSPY.exec(thisProgram);
		
		//
		thisMAT=/^(MAT)/i;
		compareMAT = thisMAT.exec(thisProgram);
		
		thisMSE=/^(MSE)/i;
		compareMSE = thisMSE.exec(thisProgram);
		
		thisMSHE=/^(MSHE)/i;
		compareMSHE = thisMSHE.exec(thisProgram);
		
		thisMSEIT=/^(MSEIT)/i;
		compareMSEIT = thisMSEIT.exec(thisProgram);
		
		//
		thisMSN=/^(MSN)/i;
		compareMSN = thisMSN.exec(thisProgram);
		
		thisNAC=/^(NAC)/i;
		compareNAC = thisNAC.exec(thisProgram);
		
		thisNEC=/^(NEC)/i;
		compareNEC = thisNEC.exec(thisProgram);
		
		thisRN=/^(RN)/i;
		compareRN = thisRN.exec(thisProgram);
		
		//
		thisCSTC=/^(CSTC)/i;
		compareCSTC = thisCSTC.exec(thisProgram);
		
		thisMSCCJ=/^(MSCCJ)/i;
		compareMSCCJ = thisMSCCJ.exec(thisProgram);
		
		
		//if (compareMSPY || compareMSCJ || compareMSIT || compareMSLS || compareMBA || compareMSA || compareMSM || compareMSHA || compareMSPH || compareMAT || compareMSE || compareMSHE || compareMSEIT)
		if (compareMBA || compareMPA || compareMSA || compareMSCJ || compareMSHA || compareMSIT || compareMSLS || compareMSM || compareMSPH || compareMSPY || compareMAT || compareMSE || compareMSHE || compareMSEIT)	
		{
			//if (thisProgram != "MASC" && thisProgram != "MSNNA" && thisProgram != "MSNNE")
			//{
				if (frm['custom[bachelors]'].value != "Yes")
				{
					alert('Currently, Kaplan University Online is only accepting for their Master Programs - Bachelor or greater.');
					//frm['custom[bachelors]'].focus();
					return false;
				}
				
				//alert ('h2');
				
				if (frm['custom[education_level]'].value == "Still in high school" || frm['custom[education_level]'].value == "GED" || frm['custom[education_level]'].value == "HighSchool" || frm['custom[education_level]'].value == "SomeCollegeLessThan2" || frm['custom[education_level]'].value == "Associates")
				{
					alert('Currently, Kaplan University Online is only accepting for their Master Programs - Bachelor or greater.');
					//frm['custom[education_level]'].focus();
					return false;
				}
			//}
		}
		
		//alert ('h1');
		
		if (frm['custom[optin]'].checked == false)
		{
			alert('You must acknowledge that you will be contacted by  Kaplan University.');
			return false;
		}
		
		//alert ('h2');
		
		if (frm['custom[have_computer]'].value != "Yes")
		{
				alert('Currently, Kaplan University Online required at least a computer and internet access.');
				//frm['custom[have_computer]'].focus();
				return false;
		}
		
		//alert ('h3');
		
		if (frm['custom[education_level]'].value == "Still in high school" || frm['custom[education_level]'].value == "NONE")
		{
			alert('Currently, Kaplan University Online required at least a HS/GED or greater.');
			//frm['custom[education_level]'].focus();
			return false;
		}
		
		//alert ('h4');
		
		if (frm['custom[us_citizen]'].value != "Yes")
		{
			alert('Currently, Kaplan University required at least a  U.S. citizen, national, or permanent resident.');
			//frm['custom[us_citizen]'].focus();
			return false;
		}
		
		//alert ('h5');
		
		if (compareRN)
		//if (frm['custom[program]'].value == "RNBSNC" || frm['custom[program]'].value == "RNMSN")
		{
			
			if (frm['custom[rnlicense]'].value != "Yes")
			{
				alert('Currently, Kaplan University required a current US license as a registered nurse without restriction.');
				//frm['custom[registered_license]'].focus();
				return false;
			}
			
			if (frm['custom[education_level]'].value == "Still in high school" || frm['custom[education_level]'].value == "GED" || frm['custom[education_level]'].value == "HighSchool" || frm['custom[education_level]'].value == "SomeCollegeLessThan2")
			{
				alert('Currently, Kaplan University required at least an associate or higher for its nursing program.');
				//frm['custom[education_level]'].focus();
				return false;
			}
		
		}
		
		
		//alert ('h6');
		
		if (compareMSN || compareNAC || compareNEC)
		//if (frm['custom[program]'].value == "MSNNA" || frm['custom[program]'].value == "MSNNE")
		{
			
			if (frm['custom[rnlicense]'].value != "Yes")
			{
				alert('Currently, Kaplan University required a current US license as a registered nurse without restriction.');
				//frm['custom[extrafield7]'].focus();
				return false;
			}
			
			if (frm['custom[nursing_degree]'].value != "Yes")
			{
				alert('Currently, Kaplan University required a bachelor degree in nursing for their Master Nursing Programs.');
				//frm['custom[extrafield7]'].focus();
				return false;
			}
			
			if (frm['custom[education_level]'].value == "Still in high school" || frm['custom[education_level]'].value == "GED" || frm['custom[education_level]'].value == "HighSchool" || frm['custom[education_level]'].value == "SomeCollegeLessThan2" || frm['custom[education_level]'].value == "Associates")
			{
				alert("Currently, Kaplan University required for their Master Programs - Bachelor or greater.");
				//frm['custom[education_level]'].focus();
				return false;
			}
		
		}
		
		
		//alert ('h7');
	
		if (compareCSTC || compareMSCCJ)
		//if (frm['custom[program]'].value == "CSITECH" || frm['custom[program]'].value == "MASC")
		{
			if (frm['custom[associates]'].value != "Yes")
			{
				alert('Currently, Kaplan University required a minimum of an associate degree from a regionally accredited institution.');
				//frm['custom[associates]'].focus();
				return false;
			}
			
			if (frm['custom[enforcement]'].value != "Yes")
			{
				alert('Currently, Kaplan University required currently or recently employed in the law enforcement field.');
				//frm['custom[enforcement]'].focus();
				return false;
			}
			
			if (frm['custom[education_level]'].value == "Still in high school" || frm['custom[education_level]'].value == "GED" || frm['custom[education_level]'].value == "HighSchool" || frm['custom[education_level]'].value == "SomeCollegeLessThan2")
			{
				alert("Currently, Kaplan University required for this program - Associate Degree or greater.");
				//frm['custom[education_level]'].focus();
				return false;
			}
		}	
	}
	
	
	//Steven-Haggar Online - Education Dynamic
	if(collegeID == 80026)
	{
		if (frm['custom[program]'].value == "95" || frm['custom[program]'].value == "97" || frm['custom[program]'].value == "107" || frm['custom[program]'].value == "108")
		{
			if (frm['custom[ddRNConfirmation]'].value != "Yes")
			{
				alert('Currently, Steven-Haggar Online required a license as a registered nurse.');
				return false;
			}
		}
	}
	
	
	//SJVC - Datamark
	if(collegeID >= 52419 && collegeID <= 52426)
	{	
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, San Joaquin Valley College does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//International Academy of Design & Technology - CB
	if((collegeID >= 85346 && collegeID <= 85353) || collegeID == 85343)
	{	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, IADT does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//CTU - HomeStudy - CB
	if(collegeID == 85345)
	{	
		if(frm.dayphone.value != frm['custom[extrafield6]'].value )
		{
			alert("Day phone does not match - please try again.");
			frm['custom[extrafield6]'].focus();
			return false;
		}
		
		if (frm['custom[extrafield3]'].value == "-1" || frm['custom[extrafield3]'].value == "-2" || frm['custom[extrafield3]'].value == "8")
		{
			alert('Currently, Colorado Technical University required at least a High School Graduate or GED.');
			frm['custom[extrafield3]'].focus();
			return false;
		}
	}

	//ECPI - Medical Careers Institute - CB
	if((collegeID >= 85354 && collegeID <= 85365))
	{	
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, ECPI - Medical Careers Institute does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	//Dover College - CB
	if(collegeID == 85344 || collegeID == 85368 || collegeID == 85366 || collegeID == 85367)
	{	
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Dover College does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
		
		if(frm.email.value != frm['custom[extrafield1]'].value )
		{
			alert("Email address does not match - please try again.");
			frm['custom[extrafield1]'].focus();
			return false;
		}
	}
	
	
	//Institute of Technology (IOT) - CB
	if(collegeID >= 85369 && collegeID <= 85372)
	{	
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Institute of Technology does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	if (collegeID == 80027 || collegeID == 80028) //Rocky Mountain College of Art + Design - ED
	{
		
		if (frm['custom[chkSubmitConfirmation]'].checked == false)
		{
			alert("You must acknowledge that you will be contacted by Rocky Mountain College of Art & Design.");
			return false;
		}
	}
	
	
	
	//Northwestern College - CB
	if(collegeID >= 85373 && collegeID <= 85375)
	{	
		if (frm['custom[extrafield3]'].value == "12 months or more" || frm['custom[extrafield3]'].value == "6-12 months")
		{
			alert('Currently, Northwestern College is only accepting starting classes within 6 months or less.');
			return false;
		}
		
		if (frm['custom[extrafield4]'].value == "High School Student")
		{
			alert('Currently, Northwestern College required at least a High School Diploma or GED.');
			frm['custom[extrafield3]'].focus();
			return false;
		}
		
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Northwestern College does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	
	//Keller Schools - CB
	//if(collegeID >= 85467 && collegeID <= 85559)
	if(collegeID == 85714 || collegeID == 85559)
	{	
		if (frm['custom[extrafield6]'].value == "Associate Degree" || frm['custom[extrafield6]'].value == "GED" || frm['custom[extrafield6]'].value == "HS Diploma")
		{
			alert('Currently, Keller is only accepting for their Master Programs - Bachelor or greater.');
			frm['custom[extrafield6]'].focus();
			return false;
		}
		
		if (frm.gradyear.value > 2008)
		{
			alert("Currently, Keller does not accept HS Grad 2009 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	//Kaplan - CB
	if(collegeID >= 85564 && collegeID <= 85570)
	{	
		if (frm.gradyear.value > 2008)
		{
			alert("Currently, Kaplan does not accept HS Grad 2009 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	//Harrison College Online - CB
	if(collegeID == 85562)
	{	
		if (frm['custom[extrafield4]'].value == "NOGED")
		{
			alert('Currently, Harrison College Online required at least a High School Diploma or GED.');
			frm['custom[extrafield4]'].focus();
			return false;
		}
		
		if (frm['custom[program]'].value == "NURS")
		{
			if (frm['custom[extrafield4]'].value != "GRADASSD" || frm['custom[extrafield4]'].value != "GRADBACH" || frm['custom[extrafield4]'].value != "GRADCERT")
			{
				alert('Currently, Harrison College Online is only accepting for their Nursing Programs - Associate Degree or greater.');
				return false;
			}
		}
		
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Harrison College Online does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	//Keiser University eCampus Online
	if(collegeID == 85563 || collegeID == 85580)
	{	
		var thisProgram = frm['custom[program]'].value;
				
		thisMS=/^MS/i;
		compareMS = thisMS.exec(thisProgram);
		
		thisMBA=/^MBA/i;
		compareMBA = thisMBA.exec(thisProgram);
				
		thisMA=/^MA/i;
		compareMA = thisMA.exec(thisProgram);
		 
		if (compareMS || compareMBA || compareMA)
		{
				
			if (frm['custom[extrafield5]'].value == "Associate Degree" || frm['custom[extrafield5]'].value == "HS Diploma/GED" || frm['custom[extrafield5]'].value == "Other" || frm['custom[extrafield5]'].value == "Some College")
			{
				alert('Currently, Keiser University is only accepting for their Master Programs - Bachelor or greater.');
				return false;
			}
		}
		
		
		if (frm['custom[program]'].value == "BSN")
		{
			if (frm['custom[extrafield9]'].value != "yes")
			{
				alert('Currently, Keiser University required a licensed RN in the U.S.');
				return false;
			}
			if (frm['custom[extrafield10]'].value != "yes")
			{
				alert('Currently, Keiser University required an associate degree or a nursing program diploma');
				return false;
			}
			if (frm['custom[extrafield11]'].value != "yes")
			{
				alert('Currently, Keiser University required a U.S. citizen or permanent resident.');
				return false;
			}
		}
		
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Keiser University does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Everest University Online - CB
	if(collegeID == 85561)
	{	
	    if (frm.gradyear.value > 2010)
        {
			alert("Currently, Everest University Online does not accept HS Grad 2011 and later.");
            frm.gradyear.focus();
            return false;
        }
		
  		if(frm.state.value == 'TX' || frm.state.value == 'WI'){
  			alert('Currently, Everest University Online is not accepting in these state - TX, WI');
  			return false;
  		}
  }
  
  
	//DeVry Univ - Collegebound
	if (collegeID >= 85376  && collegeID <= 85466)
	{	
		if(frm.email.value != frm['custom[extrafield4]'].value )
		{
			alert("Email address does not match - please try again.");
			frm['custom[extrafield4]'].focus();
			return false;
		}
		
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, DeVry University does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	}
	
	
 //Drexel University  - CB
	if(collegeID == 85571)
	{	
		var thisProgram = frm['custom[program]'].value;
    		
		thisMS=/^MS/i;
		compareMS = thisMS.exec(thisProgram);
		
		thisMBA=/^MBA/i;
		compareMBA = thisMBA.exec(thisProgram);
				
		thisMPH=/^MPH/i;
		compareMPH = thisMPH.exec(thisProgram);
		
		thisEDD=/(EDD)/i;
		compareEDD = thisEDD.exec(thisProgram);
		

    
		if (compareEDD)
		{
			if (frm['custom[extrafield3]'].value == "ASSOC" || frm['custom[extrafield3]'].value == "INCOLL" || frm['custom[extrafield3]'].value == "HS" || frm['custom[extrafield3]'].value == "SC" || frm['custom[extrafield3]'].value == "BACH")
			{
				alert('Currently, Drexel University is only accepting for their Doctrate Programs - Master or greater.');
				return false;
			}
		}
		
		
		if (compareMS || compareMBA || compareMPH)
		{
			if (frm['custom[extrafield3]'].value == "ASSOC" || frm['custom[extrafield3]'].value == "INCOLL" || frm['custom[extrafield3]'].value == "HS" || frm['custom[extrafield3]'].value == "SC")
			{
				alert('Currently, Drexel University is only accepting for their Master Programs - Bachelor or greater.');
				return false;
			}
		}
		
	   if (frm.gradyear.value > 2008)
		{
			alert("Currently, Drexel University does not accept HS Grad 2009 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	}	

  //West Virginia Wesleyan College (WVWC) - Online - CB
	if(collegeID == 85572)
	{		 
			if (frm['custom[program]'].value == "429")
		{
			if (frm['custom[extrafield2]'].value == "High School Diploma" || frm['custom[extrafield2]'].value == "Some College - 0-23 Semester Credits" || frm['custom[extrafield2]'].value == "Some College - 24-47 Semester Credits" || frm['custom[extrafield2]'].value == "Associate's Degree")
			{
				alert('Currently, West Virginia Wesleyan College is only accepting for their Master Programs - Bachelor or greater.');
				return false;
			}
		}	
	}	
	
	
	//Stevens-Henager Online - CB
	if(collegeID == 85573)
	{	
	    if (frm.gradyear.value > 2010)
      {
			alert("Currently, Stevens-Henager Online does not accept HS Grad 2011 and later.");
            frm.gradyear.focus();
            return false;
      }
  }
  
  
  //South Texas Vocational Technical Institute - Ed Experts
	if (collegeID >= 85574  && collegeID <= 85578)
	{	
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, DeVry University does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	}
	
	
	 //Ashland University College of Nursing - CB
	if(collegeID == 85579)
	{	
		if (frm['custom[extrafield4]'].value == "No")
		{
			alert('Currently, Ashland University College of Nursing required a Registered Nurse (RN) degree.');
			frm['custom[extrafield4]'].focus();
			return false;
		}
		
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Ashland University College of Nursing does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Keiser University eCampus Online - Tier 1
	if(collegeID == 85580)
	{	
		var thisProgram = frm['custom[program]'].value;
				
		thisMS=/^MS/i;
		compareMS = thisMS.exec(thisProgram);
		
		thisMBA=/^MBA/i;
		compareMBA = thisMBA.exec(thisProgram);
				
		thisMA=/^MA/i;
		compareMA = thisMA.exec(thisProgram);
		 
		if (compareMS || compareMBA || compareMA)
		{
				
			if (frm['custom[extrafield5]'].value == "Associate Degree" || frm['custom[extrafield5]'].value == "HS Diploma/GED" || frm['custom[extrafield5]'].value == "Other" || frm['custom[extrafield5]'].value == "Some College")
			{
				alert('Currently, Keiser University is only accepting for their Master Programs - Bachelor or greater.');
				return false;
			}
		}
		
		
		if (frm['custom[program]'].value == "BSN")
		{
			if (frm['custom[extrafield9]'].value != "yes")
			{
				alert('Currently, Keiser University required a licensed RN in the U.S.');
				return false;
			}
			if (frm['custom[extrafield10]'].value != "yes")
			{
				alert('Currently, Keiser University required an associate degree or a nursing program diploma');
				return false;
			}
			if (frm['custom[extrafield11]'].value != "yes")
			{
				alert('Currently, Keiser University required a U.S. citizen or permanent resident.');
				return false;
			}
		}
		
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Keiser University does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
		//Eastwick College - Alloy
  if(collegeID >= 84244 && collegeID <= 84248)
  {
    //Must be 18 or older
    if(frm.age_filter.value < '18')
    {
      alert('Currently, Eastwick College is only accepting students age 18 and older.');
      return false;
    }
    
    //Confirm Email
    if(frm['custom[confirmEmail]'].value != frm.email.value)
    {
      alert('Your email addresses do not match!');
      return false;
    }
    
    /*//Enrollment Level Validation - Acceptable Values: not-enrolled, hs-senior
    if(frm['custom[enrollmentLevel]'].value != "not-enrolled" && frm['custom[enrollmentLevel]'].value != "hs-senior")
    {
      alert('Currently, Eastwick College is only looking for students that are "Not Enrolled" or "HS Seniors".');
      return false;
    }    */
      
    //Checkbox Validation
    if(frm['custom[acknowledge]'].checked == false)
    {
      alert('Please mark the checkbox to acknowledge that Eastwick College may contact you regarding this request.');
      return false;
    }
  }
  
  //Berkely College - Alloy
  if((collegeID >= 84249 && collegeID <= 84254) || collegeID == 84262 || collegeID == 84263)
  {
    //Must be 19 or older
    if(frm.age_filter.value < '19')
    {
      alert('Currently, Berkeley College is only accepting students age 19 and older.');
      return false;
    }
    
    //Enrollment Level Validation
    if(frm['custom[enrollmentLevel]'].value != "not-enrolled" && frm['custom[enrollmentLevel]'].value != "hs-senior" && frm['custom[enrollmentLevel]'].value != "cl-freshman")
    {
      alert('Currently, Berkeley College is only looking for students that are "Not Enrolled", "HS Seniors" or "College Freshman".');
      return false;
    }
    
    //Checkbox Validation
    if(frm['custom[acknowledge]'].checked == false)
    {
      alert('Please mark the checkbox to acknowledge that Berkeley College may contact you regarding this request.');
      return false;
    }
  }
  
  //Dover Business College - Alloy
  if(collegeID >= 84255 && collegeID <= 84256)
  {
    //Must be 19 or older
    if(frm.age_filter.value < '19')
    {
      alert('Currently, Dover Business College is only accepting students age 19 and older.');
      return false;
    }
    //Enrollment Level Validation - Acceptable Values: not-enrolled, hs-senior (Dover Campus Only!)
    if(collegeID == 84256)
    {
      if(frm['custom[enrollmentLevel]'].value != "not-enrolled" && frm['custom[enrollmentLevel]'].value != "hs-senior")
      {
        alert('Currently, Dover Business College is only looking for students that are "Not Enrolled" or "HS Seniors".');
        return false;
      }
    }
    //Checkbox Validation
    if(frm['custom[acknowledge]'].checked == false)
    {
      alert('Please mark the checkbox to acknowledge that Dover Business College may contact you regarding this request.');
      return false;
    }
  }

  //TechSkills - Alloy
  if(collegeID >= 84257 && collegeID <= 84261)
  {
    //Must be 18 or older
    if(frm.age_filter.value < '18')
    {
      alert('Currently, TechSkills is only accepting students age 18 and older.');
      return false;
    }
  
    //Checkbox Validation
    if(frm['custom[acknowledge]'].checked == false)
    {
      alert('Please mark the checkbox to acknowledge that TechSkills may contact you regarding this request.');
      return false;
    }
  
  }
  
  //Computer Systems Institute - Geary +PGM
  if(collegeID >= 84264 && collegeID <= 84266)
  {
  //Must Have US Citizenship +
    if(frm['custom[custom_1]'].value == 'No')
    {
      alert('Currently, Computer Systems Institute is accepting at least US residency.');
      return false;
    }
    //Must be HS Grad/GED holder
    if(frm['custom[education]'].value == 'No High School Diploma/GED')
    {
      alert('Currently, Computer Systems Institute is only looking for students who have a High School Diploma.');
      return false;
    }
    
    if(frm['custom[education]'].value == 'GED')
    {
      alert('Currently, Computer Systems Institute is only looking for students who have a High School Diploma.');
      return false;
    }
    
    if(frm['custom[program]'].value == '24111' || frm['custom[program]'].value == '24119'){
    alert('Currently, Computer Systems Institute is not accepting requests for their ESL program.');
    return false;
    }
  }
  
  //Southwest Career College
  if(collegeID == 85581)
  {
    //Email Validation
    if(frm['custom[extrafield1]'].value != frm.email.value)
    {
      alert('Your email address does not match!');
      return false;
    }
  }
  
  
  
  //UOP - CB
	if(collegeID >= 85582 && collegeID <= 85707)
	{		
  
      if (frm['custom[extrafield15]'].value == "HS-JR" || frm['custom[extrafield15]'].value == "HS-Some" || frm['custom[extrafield15]'].value == "N")
  		{
  			alert('Currently, University of Phoenix required at least a High School Diploma or GED.');
  			frm['custom[extrafield15]'].focus();
  			return false;
  		}
  		
  		//Checkbox Validation
      if(frm['custom[extrafield12]'].checked == false)
      {
        alert('Please mark the checkbox to acknowledge that University of Phoenix may contact you regarding this request.');
        return false;
      }
  		
  		//BSN||LPN/BSN||LVN/BSN||MSN||MSN/ED||MSN/FNP||MSN/MBA/HC||MSN/MHA||MSN/NPFT||NHCE||SNC
  		if (frm['custom[program]'].value == "BSN" || frm['custom[program]'].value == "LPN/BSN" || frm['custom[program]'].value == "LVN/BSN" || frm['custom[program]'].value == "MSN" 
      || frm['custom[program]'].value == "MSN/ED" || frm['custom[program]'].value == "MSN/FNP" || frm['custom[program]'].value == "MSN/MBA/HC" || frm['custom[program]'].value == "MSN/MHA" 
      || frm['custom[program]'].value == "MSN/NPFT" || frm['custom[program]'].value == "NHCE" || frm['custom[program]'].value == "SNC")
  		{
  			if (frm['custom[extrafield5]'].value != "Yes")
  			{
  				alert('Currently, University of Phoenix required an unrestricted license to practice as a registered nurse in at least one U.S. state.');
  				return false;
  			}
  		}
    
      /*if (frm['custom[extrafield16]'].value == "Not Qualified")
  		{
  			frm['custom[extrafield16]'].focus();
  			return false;
  		}   */
    			
  		$thisProgram = frm['custom[program]'].value;
  		
  		thisBS=/^BS/;
  		compareBS = thisBS.exec($thisProgram);
  		
      //program_type=MA||MAED||MBA||ME||MFA||MS||MCERT||MST		
  		thisMA=/^MA/;
  		compareMA = thisMA.exec($thisProgram);
  		
  		thisMAED=/^MAED/;
  		compareMAED = thisMAED.exec($thisProgram);
  		
  		thisMBA=/^MBA/;
  		compareMBA = thisMBA.exec($thisProgram);
  		
  		thisME=/^ME/;
  		compareME = thisME.exec($thisProgram);
  		
  		thisMFA=/^MFA/;
  		compareMFA = thisMFA.exec($thisProgram);
  		
  		thisMS=/^MS/;
  		compareMS = thisMS.exec($thisProgram);
  		
  		thisMCERT=/^MCERT/;
  		compareMCERT = thisMCERT.exec($thisProgram);
  		
  		thisMST=/^MST/;
  		compareMST = thisMST.exec($thisProgram);
  		
  		//PHD||PSY||DBA||EDD||MD
  		thisPHD=/^PHD/;
  		comparePHD = thisPHD.exec($thisProgram);
  		
  		thisPSY=/^PSY/;
  		comparePSY = thisPSY.exec($thisProgram);
  		
  		thisDBA=/^DBA/;
  		compareDBA = thisDBA.exec($thisProgram);
  		
  		thisEDD=/^EDD/;
  		compareEDD = thisEDD.exec($thisProgram);
  		
  		thisMD=/^MD/;
  		compareMD = thisMD.exec($thisProgram);
  		
  		
  		if (compareMA || compareMAED || compareMBA || compareME || compareMFA || compareMS || compareMCERT || compareMST)
  		{
  			if (frm['custom[extrafield15]'].value == "COLLEGE 1YR" || frm['custom[extrafield15]'].value == "COLLEGE 2YR" || frm['custom[extrafield15]'].value == "COLLEGE 3YR OR MORE" || frm['custom[extrafield15]'].value == "GED" || frm['custom[extrafield15]'].value == "HS-JR" || frm['custom[extrafield15]'].value == "HS-SR" || frm['custom[extrafield15]'].value == "HS-Some" || frm['custom[extrafield15]'].value == "HSGRAD" || frm['custom[extrafield15]'].value == "N")
  			{
  				alert('Currently, University of Phoenix is only accepting for their MASTER Programs - Bachelor or greater.');
  				frm['custom[extrafield15]'].focus();
  				return false;
  			}
  		}
  		
  		
  		if (comparePHD || comparePSY || compareDBA || compareEDD || compareMD)
  		{
  			if (frm['custom[extrafield15]'].value == "COLLEGE 1YR" || frm['custom[extrafield15]'].value == "COLLEGE 2YR" || frm['custom[extrafield15]'].value == "COLLEGE 3YR OR MORE" || frm['custom[extrafield15]'].value == "GED" || frm['custom[extrafield15]'].value == "HS-JR" || frm['custom[extrafield15]'].value == "HS-SR" || frm['custom[extrafield15]'].value == "HS-Some" || frm['custom[extrafield15]'].value == "HSGRAD" || frm['custom[extrafield15]'].value == "N"  || frm['custom[extrafield15]'].value == "BACHELOR")
  			{
  				alert('Currently, University of Phoenix is only accepting for their Doctorate Programs - Master or greater.');
  				frm['custom[extrafield15]'].focus();
  				return false;
  			}  			
  		}
	}

  //Kaplan University Online Grad - CB
	if (collegeID == 85709 || collegeID == 85234)
	{	
		if (frm['custom[hascomputer]'].value != "Yes")
		{
			alert('Currently, Kaplan University Online required at least a computer and internet access.');   
			frm['custom[hascomputer]'].focus();
      return false;
		}
  	
		//if (frm['custom[extrafield2]'].value == "StillHighSchool" || frm['custom[extrafield2]'].value == "GED" || frm['custom[extrafield2]'].value == "HighSchool" || frm['custom[extrafield2]'].value == "SomeCollegeLessThan2" || frm['custom[extrafield2]'].value == "NONE")	
		if (frm['custom[extrafield2]'].value == "StillHighSchool" || frm['custom[extrafield2]'].value == "NONE")
		{
			alert('Currently, Kaplan University Online required at least a HS or GED diploma.');   
			frm['custom[extrafield2]'].focus();
      return false;
		}
		
		
		if (frm['custom[iscitizen]'].value != "Yes")
		{
			alert('Currently, Kaplan University required at least a  U.S. citizen, national, or permanent resident.');   
			frm['custom[iscitizen]'].focus();
      return false;
		}
		 
    if (collegeID == 85709)
    { 	
    		if (frm.gradyear.value > 2007)
    		{
    			alert('Currently, Kaplan University does not accept HS Grad 2008 and later.');
    			frm.gradyear.focus();
    			return false;
    		}
    }
    else
    {
        if (frm.gradyear.value > 2010)
    		{
    			alert('Currently, Kaplan University does not accept HS Grad 2011 and later.');
    			frm.gradyear.focus();
    			return false;
    		}
    }
    
    //Checkbox Validation
    if(frm['custom[optin]'].checked == false)
    {
      alert('Please mark the checkbox to acknowledge that Kaplan University may contact you regarding this request.');
      return false;
    }
		
	
    var program = frm['custom[program]'].value;	
	  //alert('hello3 '+program);
	
		thisMSHE=/^(MSHE)/i;   //
  	compareMSHE = thisMSHE.exec(program);
  	
  	thisMAT=/^(MAT)/i;   //
  	compareMAT = thisMAT.exec(program);
  	
  	thisMATI=/^(MATI)/i;   //
  	compareMATI = thisMATI.exec(program);
  	
  	thisMSE=/^(MSE)/i;   //
  	compareMSE = thisMSE.exec(program);
  	
  	thisMSEIT=/^(MSEIT)/i;   //
  	compareMSEIT = thisMSEIT.exec(program);
  	
  	thisMASC=/^(MASC)/i;   //
  	compareMASC = thisMASC.exec(program);
  	
  	thisBSN=/^(BSN)/i;   //
  	compareBSN = thisBSN.exec(program);  
  
  	thisMSPY=/^(MSPY)/i;   //
  	compareMSPY = thisMSPY.exec(program);
  	
  	thisMSHA=/^(MSHA)/i;      //
  	compareMSHA = thisMSHA.exec(program);
  	
  	thisMSPH=/^(MSPH)/i;      //
  	compareMSPH = thisMSPH.exec(program);
  	
  	thisAASMA=/^(AASMA)/i;   //
  	compareAASMA = thisAASMA.exec(program);
  	
  	thisMBA=/^(MBA)/i;   //
  	compareMBA = thisMBA.exec(program);
  	
  	thisMSA=/^(MSA)/i;     //
  	compareMSA = thisMSA.exec(program);
  	
  	thisMSM=/^(MSM)/i;    //
  	compareMSM = thisMSM.exec(program);
  	
  	thisMSCJ=/^(MSCJ)/i;     //
  	compareMSCJ = thisMSCJ.exec(program);
  	
  	thisCSTC=/^(CSTC)/i;       //
  	compareCSTC = thisCSTC.exec(program);
 	
  	//thisMSCCJ=/^(?!MSCCJ)/i;
  	//compareMSCCJ = thisMSCCJ.exec(program);
  	
  	thisMSLS=/^(MSLS)/i;   //
  	compareMSLS = thisMSLS.exec(program);
  	
  	thisMPA=/^(MPA)/i;   //
  	compareMPA = thisMPA.exec(program);
  	
  	thisMSIT=/^(MSIT)/i;    //
  	compareMSIT = thisMSIT.exec(program);
  	
  	thisMSNN=/^(MSN)/i;    //
  	compareMSNN = thisMSNN.exec(program);
  	
  	thisRNMSN=/^(RNMSN)/i;     //
  	compareRNMSN = thisRNMSN.exec(program);
  	
  	//--Undergrad
  	thisECC=/^(ECC)/i;     //
  	compareECC = thisECC.exec(program);
  	
  	thisRMC=/^(RMC)/i;     //
  	compareRMC = thisRMC.exec(program);
  	
  	thisSSC=/^(SSC)/i;     //
  	compareSSC = thisSSC.exec(program);
  	
  		
		if (compareAASMA)
  	{  			
  			if (frm['custom[extrafield21]'].value != "Yes")
    		{
  				alert('Currently, Kaplan University required comfortable dealing with blood and other bodily fluids.');   
    			frm['custom[extrafield21]'].focus();
          return false;
    		}		
    		if (frm['custom[extrafield22]'].value != "Yes")
    		{
  				alert('Currently, Kaplan University required comfortable working with needles.');   
    			frm['custom[extrafield22]'].focus();
          return false;
    		}
    		if (frm['custom[extrafield23]'].value != "Yes")
    		{
  				alert('Currently, Kaplan University required comfortable assisting a physician with patient preparation, examinations, and patient relations.');   
    			frm['custom[extrafield23]'].focus();
          return false;
    		}
  	}
  	
	  if (compareMPA || compareMATI || compareMSPY || compareMSCJ || compareMSIT || compareMSLS || compareMBA || compareMSA || compareMSM || compareMSHA || compareMSPH || compareMAT || compareMSE || compareMSHE || compareMSEIT)
  	{
  			if (frm['custom[extrafield5]'].value != "Yes")
  			{
  				alert('Currently, Kaplan University is only accepting for their MASTER Programs - Bachelor or greater.');
  				frm['custom[extrafield5]'].focus();
  				return false;
  			}
  			
    		if (frm['custom[extrafield2]'].value == "StillHighSchool" || frm['custom[extrafield2]'].value == "HighSchool" || frm['custom[extrafield2]'].value == "GED" || frm['custom[extrafield2]'].value == "SomeCollegeLessThan2" || frm['custom[extrafield2]'].value == "NONE" || frm['custom[extrafield2]'].value == "Associates")
  			{
  				alert('Currently, Kaplan University required for their Master Program - Bachelor or greater.');
  				frm['custom[extrafield2]'].focus();
  				return false;
  			}
  	}
  	
  	if (compareCSTC || compareMASC)
		{			
    		if (frm['custom[extrafield13]'].value != "Yes")
    		{
				  alert('Currently, Kaplan University required a minimum of an associate degree from a regionally accredited institution.');   
    			frm['custom[extrafield13]'].focus();
          return false;
    		}
    		
    		if (frm['custom[extrafield14]'].value != "Yes")
    		{
				  alert('Currently, Kaplan University required currently or recently employed in the law enforcement field.');   
    			frm['custom[extrafield14]'].focus();
          return false;
    		}
    		
    		if (frm['custom[extrafield2]'].value == "StillHighSchool" || frm['custom[extrafield2]'].value == "HighSchool" || frm['custom[extrafield2]'].value == "GED" || frm['custom[extrafield2]'].value == "SomeCollegeLessThan2" || frm['custom[extrafield2]'].value == "NONE")
  			{
  				alert('Currently, Kaplan University required a minimum of an associate degree or greater.');
  				frm['custom[extrafield2]'].focus();
  				return false;
  			}
		}	
			
		if (compareBSN || compareRNMSN)
		{			
			  if (frm['custom[extrafield7]'].value != "Yes")
    		{
				  alert('Currently, Kaplan University required a current US license as a registered nurse without restriction.');   
    			frm['custom[extrafield7]'].focus();
          return false;
    		}
    		
    		
    		if (frm['custom[extrafield2]'].value == "HighSchool" || frm['custom[extrafield2]'].value == "GED" || frm['custom[extrafield2]'].value == "SomeCollegeLessThan2" || frm['custom[extrafield2]'].value == "NONE")
    		{
				  alert('Currently, Kaplan University required at least an associate or higher for its nursing program.');   
    			frm['custom[extrafield2]'].focus();
          return false;
    		}
		}
		
		
		if (compareMSNN)
		{			
		   // alert('1');
    		if (frm['custom[extrafield7]'].value != "Yes")
    		{
    			alert('Currently, Kaplan University required a current US license as a registered nurse without restriction.');   
    			frm['custom[extrafield7]'].focus();
          return false;
    		}
    		
    		//alert('2');
    		
    		if (frm['custom[extrafield9]'].value != "Yes")
    		{
    			alert('Currently, Kaplan University required at least a Bachelor or higher for its nursing program.');   
    			frm['custom[extrafield9]'].focus();
          return false;
    		}
    		
    		//alert('3');
    	
    	 	if (frm['custom[extrafield2]'].value == "StillHighSchool" || frm['custom[extrafield2]'].value == "HighSchool" || frm['custom[extrafield2]'].value == "GED" || frm['custom[extrafield2]'].value == "SomeCollegeLessThan2" || frm['custom[extrafield2]'].value == "NONE" || frm['custom[extrafield2]'].value == "Associates")
  			{
  				alert('Currently, Kaplan University required for their Master Program - Bachelor or greater.');
  				frm['custom[extrafield2]'].focus();
  				return false;
  			}
  	}
  	
  	if (compareECC || compareRMC || compareSSC)
		{					
    		if (frm['custom[extrafield2]'].value == "HighSchool" || frm['custom[extrafield2]'].value == "GED" || frm['custom[extrafield2]'].value == "SomeCollegeLessThan2" || frm['custom[extrafield2]'].value == "NONE" || frm['custom[extrafield2]'].value == "HSGED")
    		{
				  alert('Currently, Kaplan University required at least an associate degree or higher.');   
    			frm['custom[extrafield2]'].focus();
          return false;
    		}
		}
		
	}

 	//Kaplan - DIRECT - Concord Law School - CB
	if(collegeID == 85708)
	{		
	  //Checkbox Validation
    if(frm['custom[optin]'].checked == false)
    {
      alert('Please mark the checkbox to acknowledge that Concord Law School may contact you regarding this request.');
      return false;
    }
    
		if (frm['custom[extrafield3]'].value == "YES")
		{
			alert('Currently, Kaplan Concord Law School does not accept multiple enrollment in another educational programs.');
			frm['custom[extrafield3]'].focus();
			return false;
		} 
               
		if (frm['custom[extrafield2]'].value == "NO")
		{
			alert('Currently, Kaplan Concord Law School required at least a bachelor degree or higher.');
			frm['custom[extrafield2]'].focus();
			return false;
		}
		
		if (frm['custom[extrafield5]'].value == "NO")
		{
			alert('Currently, Kaplan Concord Law School required 20-25 hours a week to devote to obtaining a legal education.');
			frm['custom[extrafield5]'].focus();
			return false;
		} 
	}
	
	//Walden - CB
	if(collegeID == 85560)
	{
    //24 and Older
    if(frm['custom[extrafield5]'].value == '2')
    {
      alert('Currently, Walden University is only accepting students 24 and older.');
      return false;
    }
		
		
		//Education Level Validation
		if(frm['custom[campus_key]'].value == 'Masters' || frm['custom[campus_key]'].value == 'MBA' || frm['custom[campus_key]'].value == 'MS Ed' || frm['custom[campus_key]'].value == 'MS Ed - Special Ed' || frm['custom[campus_key]'].value == 'MS Ed - Teacher Preparation' || frm['custom[campus_key]'].value == 'MS Nursing')
		{
			if(frm['custom[extrafield2]'].value == 'HS' || frm['custom[extrafield2]'].value == 'NURS' || frm['custom[extrafield2]'].value == 'SOMECOL' || frm['custom[extrafield2]'].value == 'ASSOC')
			{
				alert('Currently, Walden University is only accepting Bachelor\'s or higher for their Master\'s Programs.');
				frm['custom[extrafield2]'].focus();
				return false;
			}
		}
			
		if(frm['custom[campus_key]'].value == 'PhD' || frm['custom[campus_key]'].value == 'PhD/Doctorate Education')		
		{
			if(frm['custom[extrafield2]'].value == 'HS' || frm['custom[extrafield2]'].value == 'NURS' || frm['custom[extrafield2]'].value == 'SOMECOL' || frm['custom[extrafield2]'].value == 'ASSOC' || frm['custom[extrafield2]'].value == 'BACH')
			{
				alert('Currently, Walden University is only accepting Master\'s or higher for their PhD Programs.');
				frm['custom[extrafield2]'].focus();
				return false;
			}
		}
  }
	
	//Baker College Online
	if(collegeID == 85713)
	{
		//Age Validation
		if(frm['custom[extrafield2]'].value == '18 or younger' || frm['custom[extrafield2]'].value == '19 - 24')
		{
			alert('You do not meet the age requirement for Baker Online.');
			frm['custom[extrafield2]'].focus();
			return false;
		}
		//Education Level Validation
		if(frm['custom[educationlevel]'].value == 'Not yet graduated')
		{
			alert('You do not meet the Education Level requirment.');
			frm['custom[educationlevel]'].focus();
			return false;
		}

		//Grad Year Validation
		if(frm.gradyear.value > 2009)
		{
			alert('Currently, Baker Online is only accepting high school grads of 2009 and earlier.');
			frm.gradyear.focus();
			return false;
		}
	}

	//Central Career School
	if(collegeID == 84267)
	{
		//Age Validation
		if(frm.age_filter.value < 18)
		{
			alert('Currently, Central Career School is only accepting students age 18+');
			return false;
		}
		//Acknowledge Validation
		if(frm['custom[acknowledge]'].checked == false)
		{
			alert('Please check the box to acknowledge your request to be contacted by Central Career School.');
			frm['customo[acknowledge]'].focus();
			return false;
		}
	}

	//Herzing Online
	if(collegeID == 84268)
	{
		//Age Validation
		if(frm.age_filter.value < 22)
		{
			alert('Currently, Herzing Online is only accepting students age 22+');
			return false;
		}

		//Acknowledge Checkbox
		if(frm['custom[acknowledge]'].checked == false)
		{
			alert('Please check the box acknowleding your request to be contacted by Herzing College.');
			frm['custom[acknowledge]'].focus();
			return false;
		}	

		//Military Check
		if(frm['custom[military]'].value == 'N')
		{
			alert('Sorry, you do not meet the current requirements.');
			return false;
		}
		
	}
	
	//Health Training Center
	if(collegeID >= 84270 && collegeID <= 84276)
	{
		//Age Validation
		if(frm.age_filter.value < 18)
		{
			alert('Currently, Health Training Center is only accepting students age 18+');
			return false;
		}

		//Female Only
		if(frm['custom[gender]'].value == 'M')
		{
			alert('Sorry, You do not meet the requirements for Health Training Center.');
			return false;
		}
	
		//Acknowledge Checkbox
		if(frm['custom[acknowledge]'].checked == false)
		{
			alert('Please check the box acknowleding your request to be contacted by Health Training Center.');
			frm['custom[acknowledge]'].focus();
			return false;
		}

		//HS Grad Check
		if(frm['custom[hsgrad]'].value == 'No')
		{
			alert('You must be a high school graduate or equivalent to request info from Health Training Center.');
			return false;
		}		
	}

	//Porter & Chester Military
	if(collegeID == 84269)
	{
		//Age Validation 18-25yrs
		if(frm.age_filter.value < 18 || frm.age_filter.value > 25)
		{
			alert('You must be between the ages of 18 and 25 to submit your info to Porter & Chester Institute.');
			return false;
		}

		//Military Affiliation
		if(frm['custom[military]'].value == 'No')
		{
			alert('You must currently be affiliated with the military to qualify.');
			return false;
		}

		//Checkbox Validation
		if(frm['custom[acknowledge]'].checked == false)
		{
			alert('Please check the box acknowleding your request to be contacted by Porter & Chester Institute.');
			frm['custom[acknowledge]'].focus();
			return false;
		}
	}
	
	//Westwood Online - CB
	if(collegeID == 85715)
	{
		//Program Gradyear validation
		if(frm.gradyear.value >= 2007)
		{
			if(frm['custom[program]'].value == 2|| frm['custom[program]'].value == 15 || frm['custom[program]'].value == 31 || frm['custom[program]'].value == 34 || frm['custom[program]'].value == 42 || frm['custom[program]'].value == 47 || frm['custom[program]'].value == 48 || frm['custom[program]'].value == 49 || frm['custom[program]'].value == 50 || frm['custom[program]'].value == 51 || frm['custom[program]'].value == 52 || frm['custom[program]'].value == 53 || frm['custom[program]'].value == 54)
			{
			   if(frm.gradyear.value > 2006)
			   {
				    alert('Your gradyear must be 2006 or earlier for the selected program.');
				    return false;
			   }
			}
			else
			{
			   if(frm.gradyear.value > 2007)
			   {
				    alert('Currently, Westwood College is only accepting HS Grads year 2007 and Earlier.'); 
				    return false;
			   }
			}
		}

		//Checkbox Validation
		if(frm['custom[extrafield6]'].checked == false)
		{
			alert('Please check the box acknowledging your request to be contacted by Westwood College.');
			frm['custom[extrafield6]'].focus();
			return false;
		}
	}
	
	//RAS Online
	if(collegeID == 85002)
	{
		if(frm['custom[program]'].value == 'SoN-RNtoBSN-BS|Nursing')
		{
			if(frm['custom[extrafield3]'].value == 'No')
			{
				alert('You must currently have an associates degree or nursing diploma to submit.');
				return false;
			}
		}
	}
	
  
	//Everest College, Institute, and University - Academix Direct
	if(collegeID >= 88001 && collegeID <= 88016)
	{	
		if (frm.gradyear.value > 2008)
		{
			alert("Currently, Everest does not accept HS Grad 2009 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	  //Checkbox Validation
		if(frm['custom[Contact]'].checked == false)
		{
			alert('Please check the box acknowledging your request to be contacted by Everest.');
			frm['custom[Contact]'].focus();
			return false;
		} 
		
	}	
  
  
  //Walden University - Academix Direct
	if(collegeID == 88000)
	{	
		var thisProgram = frm['custom[program]'].value;
				
		thisPHD=/^PHD/i;
		comparePHD = thisPHD.exec(thisProgram);
		
		thisEDD=/^EDD/i;
		compareEDD = thisEDD.exec(thisProgram);
		
		thisDBA=/^DBA/i;
		compareDBA = thisDBA.exec(thisProgram);
		
		if (comparePHD || compareEDD || compareDBA)
		{
			if (frm['custom[education_level_code]'].value == "BACH")
			{
				alert('Currently, Walden University is only accepting for their Doctrate Programs - Master or greater.');
				return false;
			}
		}
		
		if (frm.gradyear.value > 2002)
		{
			alert("Currently, Walden University does not accept HS Grad 2003 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	  //Checkbox Validation
		if(frm['custom[Contact]'].checked == false)
		{
			alert('Please check the box acknowledging your request to be contacted by Walden University.');
			frm['custom[Contact]'].focus();
			return false;
		} 
		
	}	
	
	
	//Full Sail University - Academix Direct
	if(collegeID == 88017)
	{	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Full Sail University does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	  //Checkbox Validation
		if(frm['custom[Contact]'].checked == false)
		{
			alert('Please check the box acknowledging your request to be contacted by Full Sail University.');
			frm['custom[Contact]'].focus();
			return false;
		} 
		
	}
  
  
  //Heald College - Academix Direct
	if(collegeID >= 88018 && collegeID <= 88028)
	{	
		if (frm['custom[HS3]'].value > 2010)
		{
			alert("Currently, Heald College does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	  //Checkbox Validation
		if(frm['custom[Contact]'].checked == false)
		{
			alert('Please check the box acknowledging your request to be contacted by Heald College.');
			frm['custom[Contact]'].focus();
			return false;
		} 
		
	}
  
  //Career Point College - Target Direct
  if(collegeID >= 87077 && collegeID <= 87079)
  {
    if(frm['custom[_tdmcontrolare_you_18]'].value == 'No')
    {
      alert("Currently, Career Point College is only accepting requests from students age 18+.");
      return false;
    }
  }
  
  //Tulsa Welding School - Target Direct
  if(collegeID >= 87074 && collegeID <= 87075)
  {
    if(frm['custom[_tdmcontrolhighest_level_of_ed_None_HSGED_AS_BS_MS]'].value == 'None of the Above')
    {
      alert("You do not meet the level of education requirement");
      return false;
    }
  }
  
  //Southern Technical College - Target Direct
  if(collegeID >= 87059 && collegeID <= 87063)
  {
    if(frm['custom[_tdmcontrolHS_Diploma_GED_Y_N]'].value == 'No')
    {
      alert("Currently, Southern Technical College requires that you have your High School Diploma or GED.");
      return false;
    }
  }
  
  //The Ohio and Illinois Institutes for Broadcasting - Target Direct
  if(collegeID >= 87113 && collegeID <= 87117)
  {
    if(frm['custom[_tdmcontrolUS_Citizen_Yes_No]'].value == 'No')
    {
      alert("You must be a US citizen.");
      return false;
    }
  }
  
  //Lancaster Bible College and Graduate School - Target Direct
  if(collegeID >= 87002 && collegeID <= 87003)
  {
    if(frm['custom[_tdmcontrolage_22_Lancaster_Bible_College]'].value == 'No')
    {
       alert("Currently, Lancaster Bible College and Graduate School is not accepting students under 22 years old.");
       return false;
    }
    
    if(frm['custom[_tdmcontrolcollege_credits_Lancaster_Bible_College]'].value == 'No')
    {
       alert("Currently, Lancaster Bible College and Graduate School is requiring 21 transfer credits.");
       return false;
    }
  }
  
  //The Refrigeration School - Target Direct
  if(collegeID == 87144)
  {
    if(frm['custom[_tdmcontrolhighest_level_of_ed_None_HSGED_AS_BS_MS_DR]'].value == "None of the Above")
    {
      alert("You do not meet the level of education requirements.");
      return false;
    }
  }
  
  
   //Jolie Hair and Beauty Academy - Target Direct
	if(collegeID >= 87140 && collegeID <= 87142)
	{	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Jolie Hair and Beauty Academy does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	 //Salter College - Target Direct
	if(collegeID == 87049)
	{	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Salter College does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	 //Salter School - Target Direct
	if(collegeID >= 87067 && collegeID <= 87070)
	{	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Salter School does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Suburban Technical School - Target Direct
	if(collegeID == 87047)
	{	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Suburban Technical School does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//TCI College of Technology - Target Direct
	if(collegeID == 87005)
	{	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, TCI College of Technology does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	 //The Salter School of Nursing and Allied Health - Target Direct
	if(collegeID == 87045)
	{	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, The Salter School of Nursing and Allied Health does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
  //Seacoast Career Schools - Target Direct
	if(collegeID == 87080 || collegeID == 87081)
	{	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Seacoast Career Schools does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//The Chicago School of Professional Psychology - Target Direct
	if(collegeID == 87052 || collegeID == 87058)
	{	
	  var thisProgram = frm['custom[program]'].value;
    		
		thisPHD=/(Ph.D.)/i;
		comparePHD = thisPHD.exec(thisProgram);
				
		thisPSYD=/(Psy.D.)/i;
		comparePSYD = thisPSYD.exec(thisProgram);
		
		thisEDS=/(Ed.S.)/i;
		compareEDS = thisEDS.exec(thisProgram);
		 
		if (comparePHD || comparePSYD || compareEDS)
		{
			if (frm['custom[_tdmcontrolhighest_level_of_ed_Chicago_School_of_Prof_Psyc]'].value == "Bachelors")
			{
				alert('Currently, The Chicago School of Professional Psychology is only accepting for their Doctrate Programs - Master or greater.');
				return false;
			}
		}
	
	}
	
	 //Computer Career Center El Paso a division of Vista College - Target Direct
  if(collegeID == 87120 || collegeID == 87051)
  {
    if(frm['custom[_tdmcontroldo_have_HS_Diploma_or_GED_dropdown_No_Not_Accepted]'].value == "No")
    {
      alert("You do not meet the level of education requirements.");
      return false;
    }
  }
  
	
	//Cornerston University  - Target Direct
	if(collegeID == 87095)
	{	
	  var thisProgram = frm['custom[program]'].value;
    
    //alert (thisProgram);
    		
		thisMaster=/(Master)/i;
		compareMaster = thisMaster.exec(thisProgram);
				
		thisAssociate=/(Associate)/i;
		compareAssociate = thisAssociate.exec(thisProgram);
		
		thisBachelor=/(Bachelor)/i;
		compareBachelor = thisBachelor.exec(thisProgram);
		 
		if (compareMaster || compareAssociate || compareBachelor)
		{
			if (frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "No High School Diploma/GED")
			{
				alert('Currently, Cornerston University required at least High School Diploma/GED.');
				return false;
			}
		}
		
		if (compareMaster)
		{
			if (frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "No High School Diploma/GED" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 0-23 College Credits" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 24-47 College Credits" || 
frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 48 or more College Credits" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Have High School Diploma/GED")
			{
				alert('Currently, Cornerston University is only accepting for their Master Programs - Bachelor or greater.');
				return false;
			}
		}
		
		
		if(frm['custom[_tdmcontrolage_atleast_21_IPD_Geary]'].value == "Under 21")
    {
      alert('Currently, Cornerston University required age at least 21 and over.');
      return false;
    }
    
    //Checkbox Validation
		if(frm['custom[_tdmcontrolacknowledge_contact_Geary_Schools]'].checked == false)
		{
			alert('Please check the box acknowledging your request to be contacted by Cornerston University.');
			frm['custom[_tdmcontrolacknowledge_contact_Geary_Schools]'].focus();
			return false;
		} 
	
	}
	
	
	//First Institute - Target Direct
	if(collegeID == 87044)
	{	
		if (frm.gradyear.value > 2008)
		{
			alert("Currently, First Institute does not accept HS Grad 2009 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	
	//Ohio Dominican University - Target Direct
	if(collegeID == 87147)
	{	
	  var thisProgram = frm['custom[program]'].value;
    
    //alert (thisProgram);
    		
		thisMaster=/(Master)/i;
		compareMaster = thisMaster.exec(thisProgram);
				
		thisAssociate=/(Associate)/i;
		compareAssociate = thisAssociate.exec(thisProgram);
		
		thisBachelor=/(Bachelor)/i;
		compareBachelor = thisBachelor.exec(thisProgram);
		 
		if (compareMaster || compareAssociate || compareBachelor)
		{
			if (frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "No High School Diploma/GED")
			{
				alert('Currently, Ohio Dominican University required at least High School Diploma/GED.');
				return false;
			}
		}
		
		if (compareMaster)
		{
			if (frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "No High School Diploma/GED" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 0-23 College Credits" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 24-47 College Credits" || 
frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 48 or more College Credits" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Have High School Diploma/GED")
			{
				alert('Currently, Ohio Dominican University is only accepting for their Master Programs - Bachelor or greater.');
				return false;
			}
		}
		
		
		if(frm['custom[_tdmcontrolage_atleast_21_IPD_Geary]'].value == "Under 21")
    {
      alert('Currently, Ohio Dominican University required age at least 21 and over.');
      return false;
    }
    
    //Checkbox Validation
		if(frm['custom[_tdmcontrolacknowledge_contact_Geary_Schools]'].checked == false)
		{
			alert('Please check the box acknowledging your request to be contacted by Ohio Dominican University.');
			frm['custom[_tdmcontrolacknowledge_contact_Geary_Schools]'].focus();
			return false;
		} 
	
	}
	
	
	//William Penn University - Target Direct
	if(collegeID == 87090)
	{	
	  var thisProgram = frm['custom[program]'].value;
    
    //alert (thisProgram);
    		
		thisMaster=/(Master)/i;
		compareMaster = thisMaster.exec(thisProgram);
				
		thisAssociate=/(Associate)/i;
		compareAssociate = thisAssociate.exec(thisProgram);
		
		thisBachelor=/(Bachelor)/i;
		compareBachelor = thisBachelor.exec(thisProgram);
		
		thisCertificate=/(Certificate)/i;
		compareCertificate = thisCertificate.exec(thisProgram);
		 
		if (compareMaster || compareAssociate || compareBachelor || compareCertificate)
		{
			if (frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "No High School Diploma/GED")
			{
				alert('Currently, William Penn University required at least High School Diploma/GED.');
				return false;
			}
		}
		
		if (compareMaster)
		{
			if (frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "No High School Diploma/GED" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 0-23 College Credits" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 24-47 College Credits" || 
frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 48 or more College Credits" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Have High School Diploma/GED")
			{
				alert('Currently, William Penn University is only accepting for their Master Programs - Bachelor or greater.');
				return false;
			}
		}
		
		
		if(frm['custom[_tdmcontrolage_atleast_21_IPD_Geary]'].value == "Under 21")
    {
      alert('Currently, William Penn University required age at least 21 and over.');
      return false;
    }
    
    //Checkbox Validation
		if(frm['custom[_tdmcontrolacknowledge_contact_Geary_Schools]'].checked == false)
		{
			alert('Please check the box acknowledging your request to be contacted by William Penn University.');
			frm['custom[_tdmcontrolacknowledge_contact_Geary_Schools]'].focus();
			return false;
		} 
	
	}
	
	
	//Gwynedd Mercy College - Target Direct
	if(collegeID == 87038 || collegeID == 87039)
	{	
	  var thisProgram = frm['custom[program]'].value;
    
    //alert (thisProgram);
    		
		thisMaster=/(Master)/i;
		compareMaster = thisMaster.exec(thisProgram);
				
		thisAssociate=/(Associate)/i;
		compareAssociate = thisAssociate.exec(thisProgram);
		
		thisBachelor=/(Bachelor)/i;
		compareBachelor = thisBachelor.exec(thisProgram);
		
		thisCertificate=/(Certificate)/i;
		compareCertificate = thisCertificate.exec(thisProgram);
		 
		if (compareMaster || compareAssociate || compareBachelor || compareCertificate)
		{
			if (frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "No High School Diploma/GED")
			{
				alert('Currently, Gwynedd Mercy College required at least High School Diploma/GED.');
				return false;
			}
		}
		
		if (compareMaster)
		{
			if (frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "No High School Diploma/GED" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 0-23 College Credits" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 24-47 College Credits" || 
frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 48 or more College Credits" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Have High School Diploma/GED")
			{
				alert('Currently, Gwynedd Mercy College is only accepting for their Master Programs - Bachelor or greater.');
				return false;
			}
		}
		
		
		if(frm['custom[_tdmcontrolage_atleast_21_IPD_Geary]'].value == "Under 21")
    {
      alert('Currently, Gwynedd Mercy College required age at least 21 and over.');
      return false;
    }
    
    //Checkbox Validation
		if(frm['custom[_tdmcontrolacknowledge_contact_Geary_Schools]'].checked == false)
		{
			alert('Please check the box acknowledging your request to be contacted by Gwynedd Mercy College.');
			frm['custom[_tdmcontrolacknowledge_contact_Geary_Schools]'].focus();
			return false;
		} 
	
	}
	
	//Lansdale School of Business - Target Direct
	if(collegeID == 87135 || collegeID == 87136)
	{	
		if (frm.gradyear.value > 2009)
		{
			alert("Currently, Lansdale School of Business does not accept HS Grad 2010 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Computer Career Center Las Cruces a division of Vista College
	if(collegeID == 87100)
  {
    if(frm['custom[_tdmcontroldo_have_HS_Diploma_or_GED_dropdown_No_Not_Accepted]'].value == "No")
    {
      alert("You must have your High School Diploma or GED.");
      return false;
    }
  }
	
	//Computer Career Center Lubbock a division of Vista College
	if(collegeID == 87082)
	{
    if(frm['custom[_tdmcontroldo_have_HS_Diploma_or_GED_dropdown_No_Not_Accepted]'].value == "No")
    {
      alert("You must have your High School Diploma or GED.");
      return false;
    }
  }
  
  //Eagle Gate College
  if(collegeID == 87092)
  {
    if(frm.gradyear.value > 2008)
    {
      alert("Currently, Eagle Gate college is only accepting high school grads ealier than 2009.");
      return false;
    }
  }
  
  //Provo College
  if(collegeID == 87006)
  {
    if(frm.gradyear.value > 2008)
    {
      alert("Currently, Provo College is only accepting high school grads ealier than 2009.");
      return false;
    }
  }
  
  //New Professions Technical Institute
  if(collegeID == 87122)
  {
    if(frm.gradyear.value > 2009)
    {
      alert("Currently, New Professions Technical Institute is only accepting high school grads earlier than 2010.");
      return false;
    }
  }
  
  //Bay State College
  if(collegeID >= 87034 && collegeID <= 87035)
  {
    if(frm.gradyear.value > 2006)
    {
      alert("Currently, Bay State College is only accepting high school grads 2006 and below.");
      return false;
    }
    
    if(frm['custom[_tdmcontrolAge_18_35_BSC]'].value != "Yes")
    {
      alert("You must be between the ages of 18 and 35.");
      return false;
    }
    
    if(frm['custom[_tdmcontrolqualifier_BSC]'].checked == false)
    {
      alert("Check the box to confirm your inquiry from Bay State College.");
      return false;
    }
  }
  
  //Strayer University - Target Direct
	if(collegeID == 87148 || collegeID == 87168)
	{	
	  var thisProgram = frm['custom[program]'].value;
    
    //alert (thisProgram);
    		
		thisMaster=/(Master)/i;
		compareMaster = thisMaster.exec(thisProgram);
				
		thisExecutive=/(Executive)/i;
		compareExecutive = thisExecutive.exec(thisProgram);
		
		if (compareMaster || compareExecutive)
		{
			if (frm['custom[_tdmcontrolhighest_level_of_ed_Strayer]'].value == "Not yet completed high school" || frm['custom[_tdmcontrolhighest_level_of_ed_Strayer]'].value == "High school graduate" || frm['custom[_tdmcontrolhighest_level_of_ed_Strayer]'].value == "Some college" || 
frm['custom[_tdmcontrolhighest_level_of_ed_Strayer]'].value == "Associate degree")
			{
				alert('Currently, Strayer University is only accepting for their Master Programs - Bachelor or greater.');
				return false;
			}
		}
		
		if(frm['custom[_tdmcontrolhighest_level_of_ed_Strayer]'].value == "Not yet completed high school")
    {
      alert('Currently, Strayer University required at least High School Diploma/GED..');
      return false;
    }
    
    //Checkbox Validation
		if(frm['custom[_tdmcontrolconsent_Strayer]'].checked == false)
		{
			alert('Please check the box acknowledging your request to be contacted by Strayer University.');
			frm['custom[_tdmcontrolconsent_Strayer]'].focus();
			return false;
		} 
	
	}

	//Institute of Professional Careers
	if(collegeID == 87097)
	{
		if(frm['custom[_tdmcontrolConfirm_Request_IPC]'].checked == false)
		{
			alert("Please check the box confirming your request to be contacted.");
			return false;
		}
	}

	//Michigan Institute of Aviation and Technology
	if(collegeID == 87046)
	{
		if(frm['custom[_tdmcontroldrivers_license_MIAT]'].value != "Yes")
		{
			alert("You must have a valid driver license.");
			return false;
		}
		if(frm['custom[_tdmcontrolfelony_MIAT]'].value != "No")
		{
			alert("Currently, Michigan Institute of Aviation and Technology is not accepting students with felonies on their record.");
			return false;
		}
		if(frm['custom[_tdmcontrolrelocate_Michigan_Institute_of_Aviation_Technology]'].value == "No")
		{
			alert("You must be willing to relocate or already live in the area.");
			return false;
		}
	}

	//Professional Training Centers
	if(collegeID == 87125)
	{
		if(frm.gradyear.value > 2009)
		{
			alert("Currently, Professional Training Centers is only accepting High School Graduates from 2009 or ealier.");
			return false;
		}
	}

	//Accounting and Business School of the Rockies
	if(collegeID >= 87083 && collegeID <= 87084)
	{
		if(frm.gradyear.value > 2009)
		{
			alert("Currently, Accounting and Business School of the Rockies is only accepting High School Graduates from 2009 or ealier.");
			return false;
		}
	}

	//TriState Business Institute
	if(collegeID == 87073)
	{
		if(frm.gradyear.value > 2008)
		{
			alert("Currently, TriState Business Institute is only accepting High School Graduates from 2008 or ealier.");
			return false;
		}
	}

	//TriState Institute Birmingham
	if(collegeID == 87065)
	{
		if(frm.gradyear.value > 2008)
		{
			alert("Currently, TriState Institute Birmingham is only accepting High School Graduates from 2008 or ealier.");
			return false;
		}
	}

	//Moore Career College
	if(collegeID == 87019)
	{
		if(frm.gradyear.value > 2009)
		{
			alert("Currently, Moore Career College is only accepting High School Graduates from 2009 or ealier.");
			return false;
		}
	}

	//Intellitec Medical Institute
	if(collegeID == 87021)
	{
		if(frm['custom[_tdmcontroldo_have_HS_Diploma_or_GED_dropdown_No_Not_Accepted]'].value != "Yes")
		{
			alert("You must have your high school diploma or GED.");
			return false;
		}
	}

	//AmeriTech College
	if(collegeID >= 87041 && collegeID <= 87043)
	{
		if(frm.gradyear.value > 2008)
		{
			alert("Currently, AmeriTech College is only accepting High School Graduates from 2008 or ealier.");
			return false;
		}
	}

	//Baker University
	if(collegeID == 87126)
	{	
	   var thisProgram = frm['custom[program]'].value;
    		
		thisMaster=/(Master)/i;
		compareMaster = thisMaster.exec(thisProgram);
		
		if (compareMaster)
		{	         
			if (frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "No High School Diploma/GED" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Have High School Diploma/GED" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 0-23 College Credits" || 
frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 24-47 College Credits" || frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "Completed 48 or more College Credits")
			{
				alert('Currently, Baker University is only accepting for their Master Programs - Bachelor or greater.');
				return false;
			}
		}
		
		if(frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "No High School Diploma/GED")
		{
			alert("You do not meet the level of education requirement.");
			return false;
		}
		
		if(frm['custom[_tdmcontrolage_atleast_21_IPD_Geary]'].value == "Under 21")
		{
			alert("You must be at least 21 years old.");
			return false;
		}
    
		if(frm['custom[_tdmcontrolacknowledge_contact_Geary_Schools]'].checked == false)
		{
			alert("Check the box acknowledging your request for information.");
			return false;
		}		
	}

	//Belhaven College
	if(collegeID == 87094)
	{
		if(frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "No High School Diploma/GED")
		{
			alert("You do not meet the level of education requirement.");
			return false;
		}
		if(frm.age_filter.value < 21)
		{
			alert("You must be at least 21 years old.");
			return false;
		}
		if(frm['custom[_tdmcontrolacknowledge_contact_Geary_Schools]'].checked == false)
		{
			alert("Check the box acknowledging your request for information.");
			return false;
		}		
	}

	//Benedictine University
	if(collegeID == 87023)
	{
		if(frm['custom[_tdmcontrolhighest_level_of_ed_Geary_Schools]'].value == "No High School Diploma/GED")
		{
			alert("You do not meet the level of education requirement.");
			return false;
		}
		if(frm.age_filter.value < 22)
		{
			alert("You must be at least 22 years old.");
			return false;
		}
		if(frm['custom[_tdmcontrolacknowledge_contact_Geary_Schools]'].checked == false)
		{
			alert("Check the box acknowledging your request for information.");
			return false;
		}		
	}	
	
	//Eastwick College - Target
	if(collegeID >= 87085 && collegeID <= 87089)
	{
		if(frm.gradyear.value > 2009)
		{
			alert("Currently, Eastwick College is only accepting High School Graduates from 2009 or ealier.");
			return false;
		}
	}
	
	//Platt College - Target Direct
	if(collegeID == 87064)
	{		
		if(frm['custom[_tdmcontrolhighest_level_of_ed_None_HSGED_AS_BS_MS_DR]'].value == "None of the Above")
    {
      alert('Currently, Platt College required at least a High School Diploma/GED.');
      return false;
    }
	}
	
	  //Key College
	if (collegeID == 87071)
	{	
		if (frm.gradyear.value > 2010)
		{
			alert("Currently, Key College does not accept HS Grad 2011 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	}
	
	  //Tulsa Welding school 
	if (collegeID == 87074 || collegeID == 87075)
	{	
		if (frm.gradyear.value > 2011)
		{
			alert("Currently, Tulsa Welding School does not accept HS Grad 2012 and later.");
			frm.gradyear.focus();
			return false;
		}
		
	}
	
	/*
	//Ashford University Online
	if(collegeID == 20488)
	{
    if(frm['custom[levelOfEducation]'].value != 'HS' && frm['custom[levelOfEducation]'].value != 'GED' && frm['custom[levelOfEducation]'].value != 'SOME' && frm['custom[levelOfEducation]'].value != 'ASSOC')
    {
      alert('Currently, Ashford University is only accepting students that have not recieved a Bachelor\'s or higher.');
      return false;
    }
    
    if(frm.age_filter.value < 22)
    {
      alert('Currently, Ashford University is only accepting students age 22 and older for their Bachelors Programs.');
      return false;
    }
  }
  */
  
  //Ashford University Online  - CUNet
	if(collegeID == 20488)
	{	
	    if (frm.gradyear.value > 2006)
        {
            alert('Currently, Ashford University Online does not accept this HS Grad year.');
            frm.gradyear.focus();
            return false;
        }
		
  		if(frm.state.value == 'KS' || frm.state.value == 'AR'){
  			alert('Currently, Ashford University Online is not accepting in these state - AR, KS');
  			return false;
  		}
          
  		if (frm['custom[age]'].value == "under 17" || frm['custom[age]'].value == "17-21")
  		{
  			alert('Currently, Ashford University Online only accept age 22 and over.');
  			frm['custom[age]'].focus();
  			return false;
  		}
  				
  		$thisProgram = frm['custom[program]'].value;
  		
  		thisAA=/^AA/;
  		compareAA = thisAA.exec($thisProgram);
  		
  		thisBA=/^BA/;
  		compareBA = thisBA.exec($thisProgram);
  				
  		thisMA=/^MA/;
  		compareMA = thisMA.exec($thisProgram);
  		
  		thisMBA=/^MBA/;
  		compareMBA = thisMBA.exec($thisProgram);
  		
  		thisMaster=/^Master/;
  		compareMaster = thisMaster.exec($thisProgram);
  		
  		thisMPA=/^MPA/;
  		compareMPA = thisMPA.exec($thisProgram);
  		
  
  		if (compareAA)
  		{
  			if (frm['custom[levelOfEducation]'].value == "ASSOC" || frm['custom[levelOfEducation]'].value == "BACH" || frm['custom[levelOfEducation]'].value == "MAST" || frm['custom[levelOfEducation]'].value == "DOCT")
  			{
  				alert('Currently, Ashford University Online is only accepting for their Assoicate Program - HS, GED, and Some College.');
  				frm['custom[levelOfEducation]'].focus();
  				return false;
  			}
  		}
  		else if (compareBA)
  		{
  			if (frm['custom[levelOfEducation]'].value == "BACH" || frm['custom[levelOfEducation]'].value == "MAST" || frm['custom[levelOfEducation]'].value == "DOCT")
  			{
  				alert('Currently, Ashford University Online is only accepting for their Bachelor Program - HS, GED, Some College, and Associate.');
  				frm['custom[levelOfEducation]'].focus();
  				return false;
  			}
  			
  		}
  		else if (compareMA || compareMBA || compareMaster || compareMPA)
  		{
  			if (frm['custom[levelOfEducation]'].value == "HS" || frm['custom[levelOfEducation]'].value == "GED" || frm['custom[levelOfEducation]'].value == "SOME" || frm['custom[levelOfEducation]'].value == "ASSOC")
  			{
  				alert('Currently, Ashford University Online is only accepting for their MASTER Program - Bachelor or greater.');
  				frm['custom[levelOfEducation]'].focus();
  				return false;
  			}
  			
  		}
	}
  
  //Walden University - AlloyEDU
	if(collegeID == 84282)
	{
    if(frm['custom[education_level_code]'].value == 'HS' || frm['custom[education_level_code]'].value == 'NURS' || frm['custom[education_level_code]'].value == 'SOMECOL' || frm['custom[education_level_code]'].value == 'ASSOC')
    {
      alert('Currently, Walden University is only accepting holders of a Bachelors or higher degree.');
      return false;
    }
    if(frm['custom[acknowledge]'].checked == false)
    {
      alert('Please check the box acknowledging your request for information.');
      frm['custom[acknowledge]'].focus();
      return false;
    }
    if(frm.age_filter.value < 25)
    {
      alert('You do not meet the current age requirments.');
      return false;
    }
  }
  
  //LA Schools - AlloyEDU
  if(collegeID >= 84283 && collegeID <= 84284)
  {
    if(frm['custom[acknowledge]'].checked == false)
    {
      alert('Please check the box acknowledging your request for information.');
      return false;
    }
  }
  
  //Full Sail University - Education Dynamics
  if(collegeID == 80029)
  {
    var program = frm['custom[program]'].value;
  
		if(program == '2' || program == '2' || program == '5' || program == '6' || program == '11' || program == '166' || program == '273')
		{
      if(frm['custom[ddEducationLevel]'].value != 'BS' && frm['custom[ddEducationLevel]'].value != 'MS' && frm['custom[ddEducationLevel]'].value != 'PHD')
      {
        alert('You must have a Bachelor\'s or higher to apply for the Master\'s programs.');
        return false;
      }
    }
    
    if(frm['custom[chkSubmitConfirmation]'].checked == false)
    {
      alert('Please check the box acknowledging your request for info.');
      return false;
    }
  }
  
  //College America - CB
  if(collegeID == 85720){
      var field = document.getElementById("program");
      var program = field[field.selectedIndex].text;

	    thisNursing =/^Nurs/i;
	    compareNursing = thisNursing.exec(program);
	    
	    if(compareNursing)
	    {
        if(frm['custom[extrafield3]'].value == '')
        {
          alert('Please fill out all fields.');
          return false;
        }
        if(frm['custom[extrafield3]'].value == 'No')
        {
          alert('You must have an RN License to apply for the selected program.');
          return false;
        }
      }
  }
  
  //Stevens-Henagar - CB
  if(collegeID == 85721){
      var field = document.getElementById("program");
      var program = field[field.selectedIndex].text;

	    thisNursing =/^Nurs/i;
	    compareNursing = thisNursing.exec(program);
	    
	    if(compareNursing)
	    {
        if(frm['custom[extrafield3]'].value == '')
        {
          alert('Please fill out all fields.');
          return false;
        }
        if(frm['custom[extrafield3]'].value == 'No')
        {
          alert('You must have an RN License to apply for the selected program.');
          return false;
        }
      }
  }
  
  
   //ECPI - ME - CB
	if((collegeID >= 85767 && collegeID <= 85778))
	{	
		if (frm.gradyear.value > 2007)
		{
			alert("Currently, ECPI - does not accept HS Grad 2008 and later.");
			frm.gradyear.focus();
			return false;
		}
	}
	
	//Southern Career College
	if(collegeID == 84285)
	{
    if(frm.gradyear.value < 1950 || frm.gradyear.value > 2010)
    {
      alert('Currently, Southern Career College is only accepting high school grads between 1950 and 2010.');
      return false;
    }
    
    if(frm.age_filter.value < 18)
    {
      alert('You must be 18 or older.');
      return false;
    }
    
    if(frm['custom[acknowledge]'].checked == false)
    {
      alert('Please check the box acknowledging your request for information.');
      return false;
    }
  }
  
	return true;	
}

//_____________________________________________________________________________________________________
// ****************************************************************************************************
// ----------------------------------------------------------------------------------------------------
// getPrograms.js
//-----------------------------------------------------------------------------------------------------
//----------- This function returns modifies the list of programs available for UOP depending on the area of interest and level of edu. --------#
function GetProgramsUOP(formName, fieldName, area, state, zip, location, education)
{	
	if (area == "")
	{
		alert('Please choose an area of interest.');
		document.getElementById("program_type2").focus();
	}

	else
	{	
		//var urlGetPrograms = "http://www.dotschools.com/universityofphoenix/getPrograms.php?";
		var urlGetPrograms = "http://dotschools.com/universityofphoenix/getPrograms.php?";
		var url = urlGetPrograms+"area="+area+"&state="+state+"&zip="+zip+"&location="+location+"&education="+education;
		
		//alert(url);
		//http://www.dotschools.com/universityofphoenix/getPrograms.php?area=7&state=CA&zip=92843&location=Campus&education=48%20or%20more

		
		xmlHttp = getHttpRequestObject();
		if (xmlHttp) 
		{
			document.getElementById(fieldName).options.length=0;
			document.getElementById(fieldName).options[0] = new Option('loading..','');
			xmlHttp.open('POST', url, true);
			xmlHttp.onreadystatechange = function() {
				if (xmlHttp.readyState == 4)  
				{				
					if (xmlHttp.status == 200)
					{					
						var result = xmlHttp.responseText;
						if (result==0)
						{
							alert('No programs are offered in this category');
							document.getElementById(fieldName).options.length=0;
						}
						else
						{						
							arr = result.split(":");
							document.getElementById(fieldName).options.length=0;
							document.getElementById(fieldName).options[0] = new Option('Select one..','');
							for(i=0,j=1;i<arr.length-1;i++,j++)
							{
								brr = arr[i].split(",");
								document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
							}
						}
						xmlHttp.abort();
						return false;
					}
				}
			}
			xmlHttp.send(null);
		}
	}
}


function GetProgramsAshford(formName, fieldName, age, edulevel, collegeID)
{	
	
	var urlGetPrograms = "http://www.dotschools.com/ashford/getPrograms.php?";
	var url = urlGetPrograms+"age="+age+"&level="+edulevel+"&college_id="+collegeID;


	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() 
		{
			
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					if (result == 0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options.length = 0;
						document.getElementById(fieldName).options[0] = new Option('No Programs Available','');
					}
					else if (result==1)
					{
						alert('Please apply to Ashford Graduate Programs.');
						document.getElementById(fieldName).options.length = 0;
						document.getElementById(fieldName).options[0] = new Option('No Programs Available','');
					}
					else
					{						
						arr = result.split(":");
						document.getElementById(fieldName).options.length = 0;
						document.getElementById(fieldName).options[0] = new Option('Select one..','');
						for(i = 0, j = 1; i < arr.length - 1; i++, j++)
						{
							brr = arr[i].split(",");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}

function getProgramsAshfordCU(collegeID, degree, fieldName){
  var host = 'http://'+location.host+'/get/programs.php?';
  var url = host+'college_id='+collegeID+'&degree='+degree;
  
  //alert(url);
  
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() 
		{
			
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					//alert(result);
					if (result == 0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options.length = 0;
						document.getElementById(fieldName).options[0] = new Option('No Programs Available in this category...','');
					}
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length = 0;
						document.getElementById(fieldName).options[0] = new Option('Select one..','');
						for(i = 0, j = 1; i < arr.length - 1; i++, j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}


function GetProgramsWalden(formName, fieldName, edulevel)
{
	var urlGetPrograms = 'http://'+location.host+"/corporate/custom/getDynamicPrograms.php?";
	//var urlGetPrograms = "http://www.dotschools.com/corporate/custom/getDynamicPrograms.php?";
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id=50061";

	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');

		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
		
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					if (result==0)
					{
						document.getElementById(fieldName).options[0]= new Option('No programs offered.', '');
					}	
					else
					{						
						arr = result.split(":");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one..','');
						for (i = 0, j = 1; i < arr.length-1; i++, j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}


function GetProgramsTiffinOnline(formName, fieldName, edulevel, collegeID){	

	//var urlGetPrograms = "http://www.dotschools.com/tiffin/getPrograms.php?";
	//var urlGetPrograms = "http://dotschools.com/corporate/custom/getDynamicPrograms.php?";
	var urlGetPrograms = 'http://'+location.host+"/corporate/custom/getDynamicPrograms.php?";

	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					/*else if (result ==1)
					{
						alert('Please try Ashford Graduate Programs');
						document.getElementById(fieldName).options[0] = new Option('No Graduate Programs Available', '');
					}*/
					else
					{						
						arr = result.split(":");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one..','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}



function GetProgramsAshworth(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	//var urlGetPrograms = "http://dotschools.com/strayer/getPrograms.php?";
	//var urlGetPrograms = "http://www.dotschools.com/corporate/custom/getDynamicPrograms.php?";
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}



function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID, state){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID+"&state="+state;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}


function GetProgramsKaplanUniversity(formName, fieldName, edulevel, collegeID, state){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID+"&state="+state;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}

function GetProgramsAshfordUniversity(formName, fieldName, edulevel, collegeID, programCategory){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID+"&programCategory="+programCategory;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}



function GetProgramsCapellaUniversity(formName, fieldName, edulevel, collegeID, studyArea){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"edulevel="+edulevel+"&college_id="+collegeID+"&studyArea="+studyArea;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
					 if(collegeID == 85252){
						alert('There are no programs in this category that meet your current level of education.');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					 }else{
           	alert('There are no programs available in this area.');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
           }
          }
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}

function GetEducationCapellaUniversity(collegeID){
  	var urlGetEducation = 'http://'+location.host+"/strayer/getPrograms.php?";
	
	 var url = urlGetEducation+"college_id="+collegeID+"&get=edu";
	//alert(url);
	 xmlHttp = getHttpRequestObject();
	 if (xmlHttp)
	 {
    document.getElementById('extrafield3').options.length=0;
    document.getElementById('extrafield3').options[0] = new Option('loading...', '');
    xmlHttp.open('POST', url, true);
    xmlHttp.onreadystatechange = function() {
      if(xmlHttp.readyState == 4)
      {
        if (xmlHttp.status == 200)
        {
          var result = xmlHttp.responseText;
        
          if (result == 0)
          {
            alert('Error fetching education level results!');
            document.getElementById('extrafield3').option[0] = new Option('Error!!', '');
          }
        
          else
          {
            arr = result.split("*");
            document.getElementById('extrafield3').options.length=0;
            document.getElementById('extrafield3').options[0] = new Option('Select one...', '');
            for(i=0, j=1;i<arr.length-1;i++,j++)
            {
              brr = arr[i].split("|");
              document.getElementById('extrafield3').options[j] = new Option(brr[1], brr[0]);
            }
          }
          xmlHttp.abort();
          return false;
        }
      }
    }
    xmlHttp.send(null);
  }
}


function GetProgramsCareerPointCollege(formName, fieldName, edulevel, collegeID, state){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID+"&state="+state;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
	
}


function GetProgramsFullSailUniversity(formName, fieldName, edulevel, collegeID, state){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID+"&state="+state;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}


function GetProgramsKellerGraduateSchoolManagement(formName, fieldName, edulevel, collegeID, state){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID+"&state="+state;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}

function getSchoolsKeller(formName, fieldName, collegeID, startID, endID, zip){	
	
	var urlGetPrograms = 'http://'+location.host+"/get/schools.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"college_id="+collegeID+"&startID="+startID+"&endID="+endID+"&zip="+zip;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
	  document.getElementById('ajaxLoader').style.display = "";
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('Fetching Campuses...','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{
        			
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
					  document.getElementById('ajaxLoader').style.display="none";
           	alert('We could not find any Keller Schools at this time.');
						document.getElementById(fieldName).options[0]= new Option('No Schools.', '');
           }
          
					
					else
					{	
            setTimeout('document.getElementById(\'ajaxLoader\').style.display = "none"', 2000);					
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}


function getProgramsKellerCon(collegeID, campusID, fieldName){

  //Populate Programs
	var urlGetPrograms = 'http://'+location.host+"/get/programs.php?"; 
	
	var url = urlGetPrograms+"college_id="+collegeID+"&campus_id="+campusID;
	
	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('We could not find any programs for that campus.');
						document.getElementById(fieldName).options[0]= new Option('No Programs Found...', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}

function getProgramsWaldenCB(collegeID, campus, fieldName)
{
	var getProgramsURL = 'http://'+location.host+'/get/programs.php?';
	var url = getProgramsURL+'college_id='+collegeID+'&campus='+campus;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('We could not find any programs for that campus.');
						document.getElementById(fieldName).options[0]= new Option('No Programs Found...', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}

function cbWaldenShowHidden(){
	var program = document.getElementById('program').value;
	//alert(program);
	
	if(program == 'CRT.W1NUR.NUR.W1EDUC' || program == 'CRT.W1NUR.NUR.W1INF' || program == 'CRT.W1NUR.NUR.W1LMG' || program == 'MS.W1HHS.NUR.W1ED' || program == 'NURSING.GEN.INTEREST' || program == 'MS.W1HHS.NUR.W1IS' || program == 'MS.W1HHS.NUR.W1LMS'	|| program == 'MS.W1HHS.NUR.W1ED2' || program == 'NURSING.GEN.INTERES2' || program == 'MS.W1HHS.NUR.W1IS2' || program == 'MS.W1HHS.NUR.W1LMS2')
	{
		document.getElementById('extrafield6Field').style.display = '';
	}
	else
	{
		document.getElementById('extrafield6Field').style.display = 'none';
	}

	if(program == 'PHD.W1EDU.EDU.W1CIA' || program == 'PHD.W1EDU.EDU.W1AE' || program == 'PHD.W1EDU.EDU.W1CC' || program == 'PHD.W1EDU.EDU.W1EC' || program == 'PHD.W1EDU.EDU.W1GN' || program == 'PHD.W1EDU.EDU.W1HE' || program == 'PHD.W1EDU.EDU.W1KL' || program == 'PHD.W1EDU.EDU.W1SD' || program == 'PHD.W1EDU.EDU.W1SE' || program == 'EDD.W1EDU.EDU.W1AL' || program == 'EDD.W1EDU.EDU.W1HEAL' || program == 'EDD.W1EDU.EDU.W1TL' || program == 'MAT.W1EDU.EDU.W1ECE' || program == 'MAT.W1EDU.EDU.W1EBD' || program == 'MAT.W1EDU.EDU.W1LD' ||program == 'SPED.W1EDU.EDU.W1EBD' || program == 'MS.W1EDU.EDU.W1EBD' || program == 'SPED.W1EDU.EDU.W1LD' || program == 'MS.W1EDU.EDU.W1LD' || program == 'MS.W1EDU.EDU.W1ADL' || program == 'MS.W1EDU.EDU.W1RCIA' || program == 'MS.W1EDU.EDU.W1EL' || program == 'MS.W1EDU.EDU.W1RERL' || program == 'MS.W1EDU.EDU.W1REM' || program == 'M.E.GN||MS.W1EDU.EDU.W1RITC' || program == 'MS.W1EDU.EDU.W1RLL' || program == 'MS.W1EDU.EDU.W1RMA' || program == 'MS.W1EDU.EDU.W1RMK' || program == 'MS.W1EDU.EDU.W1ML' || program == 'MS.W1EDU.EDU.W1SCI' || program == 'MS.W1EDU.EDU.W1SPED' || program == 'MS.W1EDU.EDU.W1RTL')
	{
		document.getElementById('extrafield4Field').style.display = '';
	}
	else
	{
		document.getElementById('extrafield4Field').style.display = 'none';
	}
}

function GetProgramsSouthOnlineUniversity(formName, fieldName, edulevel, collegeID){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}


function GetProgramsAshfordUniversityCUNet(formName, fieldName, edulevel, collegeID){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}



function GetProgramsWesternGovernorsUniversityDatamark(formName, fieldName, edulevel, collegeID){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}


//
function GetProgramsArgosyUndergrad(formName, fieldName, edulevel, collegeID, zip){	

	//var urlGetPrograms = "http://www.dotschools.com/argosy/getPrograms.php?";
	//var urlGetPrograms = "http://www.dotschools.com/corporate/custom/getDynamicPrograms.php?";
	//alert(urlGetPrograms);
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID+"&fieldname="+fieldName+"&zip="+zip;
	
	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{	
		if (fieldName == "program")
		{
			document.getElementById(fieldName).options.length=0;
			document.getElementById(fieldName).options[0] = new Option('loading..','');
			xmlHttp.open('POST', url, true);
			xmlHttp.onreadystatechange = function() {
				if (xmlHttp.readyState == 4)  
				{				
					if (xmlHttp.status == 200)
					{
						var result = xmlHttp.responseText;
						
						//alert(result);
						
						if (result==0)
						{
							//alert('No programs are offered in this category');
							//alert('Currently, this campus does not accept applicant near your zipcode - please select a campus near your city.');
							alert('Please select a Location near your city.');
							//document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
							document.getElementById(fieldName).options[0]= new Option('Zipcode out of area.', '');
						}
						/*else if (result ==1)
						{
							alert('Please try Ashford Graduate Programs');
							document.getElementById(fieldName).options[0] = new Option('No Graduate Programs Available', '');
						}*/
						else
						{						
							arr = result.split("*");
							document.getElementById(fieldName).options.length=0;
							document.getElementById(fieldName).options[0] = new Option('Select one...','');
							for(i=0,j=1;i<arr.length-1;i++,j++)
							{
								brr = arr[i].split("|");
								document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
							}
						}
						xmlHttp.abort();
						return false;
					}
				}
			}
			xmlHttp.send(null);
		}
	}
	else
	{
		alert('hello');
	
	}
	
}


function GetProgramsArgosyGrad(formName, fieldName, edulevel, collegeID){

	//var urlGetPrograms = "http://www.dotschools.com/argosy/getPrograms.php?";
	//var urlGetPrograms = "http://www.dotschools.com/corporate/custom/getDynamicPrograms.php?";	
	//alert(urlGetPrograms);
	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					/*else if (result ==1)
					{
						alert('Please try Ashford Graduate Programs');
						document.getElementById(fieldName).options[0] = new Option('No Graduate Programs Available', '');
					}*/
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();    
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}


var xmlhttp;

function showUndergrad(str)
{
	xmlhttp=getHttpRequestObject();
	if (xmlhttp==null)
	{
	  alert ("Browser does not support HTTP Request");
	  return;
	}
	//var url="argosyUndergradPrograms.php";
	var url = 'http://'+location.host+"/strayer/argosyUndergradPrograms.php"; 
	
	url=url+"?q="+str;
	//url=url+"&sid="+Math.random();
	
	//alert(url);
	
	xmlhttp.onreadystatechange=stateChanged;
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}

//
function showGrad(str)
{
	xmlhttp=getHttpRequestObject();
	if (xmlhttp==null)
	{
	  alert ("Browser does not support HTTP Request");
	  return;
	}
	//var url="argosyUndergradPrograms.php";
	var url = 'http://'+location.host+"/strayer/argosyGradPrograms.php"; 
	
	url=url+"?q="+str;
	//url=url+"&sid="+Math.random();
	
	//alert(url);
	
	xmlhttp.onreadystatechange=stateChanged;
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}

//
function showTiffinUndergrad(str, collegeid)
{
	xmlhttp=getHttpRequestObject();
	if (xmlhttp==null)
	{
	  alert ("Browser does not support HTTP Request");
	  return;
	}
	//var url="argosyUndergradPrograms.php";
	var url = 'http://'+location.host+"/strayer/tiffinUndergradPrograms.php"; 
	
	url=url+"?q="+str+"&r="+collegeid;
	//url=url+"&sid="+Math.random();
	
	//alert(url);
	
	xmlhttp.onreadystatechange=stateChanged;
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}

//
function showTiffinGrad(str, collegeid)
{
	xmlhttp=getHttpRequestObject();
	if (xmlhttp==null)
	{
	  alert ("Browser does not support HTTP Request");
	  return;
	}
	//var url="argosyUndergradPrograms.php";
	var url = 'http://'+location.host+"/strayer/tiffinGradPrograms.php"; 
	
	url=url+"?q="+str+"&r="+collegeid;
	//url=url+"&sid="+Math.random();
	
	//alert(url);
	
	xmlhttp.onreadystatechange=stateChanged;
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}

function stateChanged()
{
	if (xmlhttp.readyState==4)
	{
		document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
	}
}

/*
function GetXmlHttpObject()
{
	if (window.XMLHttpRequest)
	{
	  // code for IE7+, Firefox, Chrome, Opera, Safari
	  return new XMLHttpRequest();
	}
	if (window.ActiveXObject)
	{
	  // code for IE6, IE5
	  return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}
*/

function GetProgramsNationalAmericanUniversity(formName, fieldName, edulevel, collegeID){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}


function GetProgramsUnivRockiesCUNet(formName, fieldName, edulevel, collegeID){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}


function GetProgramsRemingtonCollegeCUNet(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}

function GetProgramsUnivRockiesCB(formName, fieldName, edulevel, collegeID){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}



//
function GetProgramsTiffinUndergrad(formName, fieldName, edulevel, collegeID, state, zip, campus){	

	//var urlGetPrograms = "http://www.dotschools.com/argosy/getPrograms.php?";
	//var urlGetPrograms = "http://www.dotschools.com/corporate/custom/getDynamicPrograms.php?";
	//alert(urlGetPrograms);
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID+"&fieldname="+fieldName+"&zip="+zip+"&campus="+campus;
	
	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{	
		if (fieldName == "program")
		{
			document.getElementById(fieldName).options.length=0;
			document.getElementById(fieldName).options[0] = new Option('loading..','');
			xmlHttp.open('POST', url, true);
			xmlHttp.onreadystatechange = function() {
				if (xmlHttp.readyState == 4)  
				{				
					if (xmlHttp.status == 200)
					{
						var result = xmlHttp.responseText;
						
						//alert(result);
						
						if (result==0)
						{
							alert('No programs are offered in this category');
							document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
						}
						
						else
						{						
							arr = result.split("*");
							document.getElementById(fieldName).options.length=0;
							document.getElementById(fieldName).options[0] = new Option('Select one...','');
							for(i=0,j=1;i<arr.length-1;i++,j++)
							{
								brr = arr[i].split("|");
								document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
							}
						}
						xmlHttp.abort();
						return false;
					}
				}
			}
			xmlHttp.send(null);
		}
	}
	else
	{
		alert('hello');
	
	}
	
}


//
function GetProgramsTiffinGrad(formName, fieldName, edulevel, collegeID, state, zip, campus){	

	//var urlGetPrograms = "http://www.dotschools.com/argosy/getPrograms.php?";
	//var urlGetPrograms = "http://www.dotschools.com/corporate/custom/getDynamicPrograms.php?";
	//alert(urlGetPrograms);
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID+"&fieldname="+fieldName+"&zip="+zip+"&campus="+campus;
	
	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{	
		if (fieldName == "program")
		{
			document.getElementById(fieldName).options.length=0;
			document.getElementById(fieldName).options[0] = new Option('loading..','');
			xmlHttp.open('POST', url, true);
			xmlHttp.onreadystatechange = function() {
				if (xmlHttp.readyState == 4)  
				{				
					if (xmlHttp.status == 200)
					{
						var result = xmlHttp.responseText;
						
						//alert(result);
						
						if (result==0)
						{
							alert('No programs are offered in this category');
							document.getElementById(fieldName).options[0]= new Option('Requirement not met - Bachelor or greater.', '');
						}
						/*else if (result ==1)
						{
							alert('Please try Ashford Graduate Programs');
							document.getElementById(fieldName).options[0] = new Option('No Graduate Programs Available', '');
						}*/
						else
						{						
							arr = result.split("*");
							document.getElementById(fieldName).options.length=0;
							document.getElementById(fieldName).options[0] = new Option('Select one...','');
							for(i=0,j=1;i<arr.length-1;i++,j++)
							{
								brr = arr[i].split("|");
								document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
							}
						}
						xmlHttp.abort();
						return false;
					}
				}
			}
			xmlHttp.send(null);
		}
	}
	else
	{
		alert('hello');
	
	}
	
}


function GetProgramsWestwoodCUNet(formName, fieldName, edulevel, collegeID){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}




//
function GetProgramsSouthUnivCU(formName, fieldName, edulevel, collegeID, state, zip){	

	//var urlGetPrograms = "http://www.dotschools.com/argosy/getPrograms.php?";
	//var urlGetPrograms = "http://www.dotschools.com/corporate/custom/getDynamicPrograms.php?";
	//alert(urlGetPrograms);
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID+"&fieldname="+fieldName+"&zip="+zip;
	
	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{	
		if (fieldName == "program")
		{
			document.getElementById(fieldName).options.length=0;
			document.getElementById(fieldName).options[0] = new Option('loading..','');
			xmlHttp.open('POST', url, true);
			xmlHttp.onreadystatechange = function() {
				if (xmlHttp.readyState == 4)  
				{				
					if (xmlHttp.status == 200)
					{
						var result = xmlHttp.responseText;
						
						//alert(result);
						
						if (result==0)
						{
							//alert('No programs are offered in this category');
							//alert('Currently, this campus does not accept applicant near your zipcode - please select a campus near your city.');
							//alert('Zipcode out of area.);
							//document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
							document.getElementById(fieldName).options[0]= new Option('Zipcode out of area.', '');
						}
						/*else if (result ==1)
						{
							alert('Please try Ashford Graduate Programs');
							document.getElementById(fieldName).options[0] = new Option('No Graduate Programs Available', '');
						}*/
						else
						{						
							arr = result.split("*");
							document.getElementById(fieldName).options.length=0;
							document.getElementById(fieldName).options[0] = new Option('Select one...','');
							for(i=0,j=1;i<arr.length-1;i++,j++)
							{
								brr = arr[i].split("|");
								document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
							}
						}
						xmlHttp.abort();
						return false;
					}
				}
			}
			xmlHttp.send(null);
		}
	}
	else
	{
		alert('hello');
	
	}
	
}


function GetProgramsKaplanUniversityDatamark(formName, fieldName, edulevel, collegeID, state){	
//function GetProgramsStrayerUniversity(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID+"&state="+state;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}

function GetProgramsStevensHenagerOnlineED(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}


//
function GetProgramsEverestCampus(formName, fieldName, edulevel, collegeID, zip){	

	//var urlGetPrograms = "http://www.dotschools.com/argosy/getPrograms.php?";
	//var urlGetPrograms = "http://www.dotschools.com/corporate/custom/getDynamicPrograms.php?";
	//alert(urlGetPrograms);
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID+"&fieldname="+fieldName+"&zip="+zip;
	
	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{	
		if (fieldName == "program")
		{
			document.getElementById(fieldName).options.length=0;
			document.getElementById(fieldName).options[0] = new Option('loading..','');
			xmlHttp.open('POST', url, true);
			xmlHttp.onreadystatechange = function() {
				if (xmlHttp.readyState == 4)  
				{				
					if (xmlHttp.status == 200)
					{
						var result = xmlHttp.responseText;
						
						//alert(result);
						
						if (result==0)
						{
							//alert('No programs are offered in this category');
							//alert('Currently, this campus does not accept applicant near your zipcode - please select a campus near your city.');
							alert('Please select a Location near your city.');
							//document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
							document.getElementById(fieldName).options[0]= new Option('Zipcode out of area.', '');
						}
						/*else if (result ==1)
						{
							alert('Please try Ashford Graduate Programs');
							document.getElementById(fieldName).options[0] = new Option('No Graduate Programs Available', '');
						}*/
						else
						{						
							arr = result.split("*");
							document.getElementById(fieldName).options.length=0;
							document.getElementById(fieldName).options[0] = new Option('Select one...','');
							for(i=0,j=1;i<arr.length-1;i++,j++)
							{
								brr = arr[i].split("|");
								document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
							}
						}
						xmlHttp.abort();
						return false;
					}
				}
			}
			xmlHttp.send(null);
		}
	}
	else
	{
		alert('hello');
	
	}
	
}


function GetProgramsUOPCB(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}



function GetProgramsKaplanOnlineCB(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}

function getProgramsPorterChester(collegeID, campus, fieldName){
	var urlGetPrograms = 'http://'+location.host+"/get/programs.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"campus="+campus+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('We could not find any programs for that campus.');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}

function getProgramsCentralCareerSchool(collegeID, zip, fieldName){
	var urlGetPrograms = 'http://'+location.host+"/get/programs.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"zip="+zip+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('We could not find any programs available in your area.');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}	
}



function GetProgramsFullSailUnivAcademix(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	//alert(urlGetPrograms);
	
	var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}

function GetProgramsWaldenAcademix(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	var str = edulevel; 
  str = str.replace(/&/, "%26");    //Degree & Financial Aid
	
	var url = urlGetPrograms+"eduLevel="+str+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}


function GetProgramsStrayerTarget(formName, fieldName, edulevel, collegeID){	
	var urlGetPrograms = 'http://'+location.host+"/strayer/getPrograms.php?"; 
	
	var str = edulevel; 
  str = str.replace(/&/, "%26");    //Degree & Financial Aid
	
	var url = urlGetPrograms+"eduLevel="+str+"&college_id="+collegeID;
	//var url = urlGetPrograms+"eduLevel="+edulevel+"&college_id="+collegeID;

	//alert(url);
	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('No programs are offered in this category');
						document.getElementById(fieldName).options[0]= new Option('Requirement not met.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}


 
function getCampiCollegeAmerica(zip, collegeID, fieldName){
  var urlGetPrograms = 'http://'+location.host+"/get/schools.php?"; 
	
	var url = urlGetPrograms+"zip="+zip+"&cid="+collegeID;
  //alert(url);
  	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('There are no campuses avialable in your area.');
						document.getElementById(fieldName).options[0]= new Option('Invalid Zip.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}

function getProgramsCollegeAmerica(campus, fieldName, collegeID){
  var urlGetPrograms = 'http://'+location.host+"/get/programs.php?"; 
	
	var url = urlGetPrograms+"campus="+campus+"&cid="+collegeID;
  //alert(url);
  	
	xmlHttp = getHttpRequestObject();
	if (xmlHttp) 
	{
		document.getElementById(fieldName).options.length=0;
		document.getElementById(fieldName).options[0] = new Option('loading..','');
		xmlHttp.open('POST', url, true);
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4)  
			{				
				if (xmlHttp.status == 200)
				{
					var result = xmlHttp.responseText;
					
					//alert(result);
					
					if (result==0)
					{
						alert('There are no programs avialabe for the selected campus.');
						document.getElementById(fieldName).options[0]= new Option('No Programs Available.', '');
					}
					
					else
					{						
						arr = result.split("*");
						document.getElementById(fieldName).options.length=0;
						document.getElementById(fieldName).options[0] = new Option('Select one...','');
						for(i=0,j=1;i<arr.length-1;i++,j++)
						{
							brr = arr[i].split("|");
							document.getElementById(fieldName).options[j] = new Option(brr[1], brr[0]);
						}
					}
					xmlHttp.abort();
					return false;
				}
			}
		}
		xmlHttp.send(null);
	}
}     



// *******************************************************************************************************
// _______________________________________________________________________________________________________
// getCustomQuestions.js
//--------------------------------------------------------------------------------------------------------

function openRegRN(){

  var field = document.getElementById("program");
  var program = field[field.selectedIndex].text;

	thisNursing =/^Nurs/i;
	compareNursing = thisNursing.exec(program);

  //alert(program);
  //alert(compareNursing);

  if(compareNursing)
  {
    //alert('compared');
    document.getElementById("extrafield3Field").style.display = "";
  }
  else
  {
    //alert('not compared');
    document.getElementById("extrafield3Field").style.display = "none";
  }
}

function openRegRNWalden(){

  var field = document.getElementById("program");
  var program = field[field.selectedIndex].text;

	thisNursing =/Nurs/i;
	compareNursing = thisNursing.exec(program);

  //alert(program);
  //alert(compareNursing);

  if(compareNursing)
  {
    //alert('compared');
    document.getElementById("rn_license").style.display = "";
  }
  else
  {
    //alert('not compared');
    document.getElementById("rn_license").style.display = "none";
  }
}

function openEduWalden(){

  var field = document.getElementById("program");
  var program = field[field.selectedIndex].text;

	thisNursing =/Edu/i;
	compareNursing = thisNursing.exec(program);

  //alert(program);
  //alert(compareNursing);

  if(compareNursing)
  {
    //alert('compared');
    document.getElementById("teaching_certificate").style.display = "";
  }
  else
  {
    //alert('not compared');
    document.getElementById("teaching_certificate").style.display = "none";
  }
}   

function openNursing(program)
{
	if (program == "NRBA" || program == "MSNR" || program == "BSN in Nursing RN to BSN")
	{
		document.getElementById("nursing").style.display = "";
		//document.getElementById("engRow2").style.display = "";
	}
	else
	{
		document.getElementById("nursing").style.display = "none";
		//document.getElementById("engRow2").style.display = "none";
	}
}


function openNursing2(program)
{
	if (program == "BSN" || program == "RNMSN")
	{
		document.getElementById("nursing2").style.display = "";
		document.getElementById("nursing3").style.display = "";
		document.getElementById("nursing4").style.display = "";
		document.getElementById("nursing5").style.display = "";
		//document.getElementById("engRow2").style.display = "";
	}
	else
	{
		document.getElementById("nursing2").style.display = "none";
		document.getElementById("nursing3").style.display = "none";
		document.getElementById("nursing4").style.display = "none";
		document.getElementById("nursing5").style.display = "none";
		//document.getElementById("engRow2").style.display = "none";
	}
}

function openCriminalJustice(program)
{
	if (program == "CSTC" || program == "MASC")
	{
		document.getElementById("criminaljustice1").style.display = "";
		document.getElementById("criminaljustice2").style.display = "";
		//document.getElementById("engRow2").style.display = "";
	}
	else
	{
		document.getElementById("criminaljustice1").style.display = "none";
		document.getElementById("criminaljustice2").style.display = "none";
		//document.getElementById("engRow2").style.display = "none";
	}
}

function openHealthScience(program)
{
	if (program == "AASMA")
	{
		document.getElementById("healthscience1").style.display = "";
		document.getElementById("healthscience2").style.display = "";
		document.getElementById("healthscience3").style.display = "";
	}
	else
	{
		document.getElementById("healthscience1").style.display = "none";
		document.getElementById("healthscience2").style.display = "none";
		document.getElementById("healthscience3").style.display = "none";
	}
}

function openTeaching(program)
{
	if (program == "MED - RL")
	{
		document.getElementById("teaching").style.display = "";
		//document.getElementById("engRow2").style.display = "";
	}
	else
	{
		document.getElementById("teaching").style.display = "none";
		//document.getElementById("engRow2").style.display = "none";
	}
}


function openNursingGrandUniv(program)
{
	if (program == "13")
	{
		document.getElementById("nursingGrandUniv").style.display = "";
	}
	else
	{
		document.getElementById("nursingGrandUniv").style.display = "none";
	}
	
}

function openEducationGrandUniv(program)
{
	if (program == "S" || program == "R")
	{
		document.getElementById("eduGrandUniv").style.display = "";
	}
	else
	{
		document.getElementById("eduGrandUniv").style.display = "none";
	}
}

function openHealthGrandUniv(program)
{
	if (program == "40" || program == "45" || program == "58")
	{
		document.getElementById("healthGrandUniv").style.display = "";
	}
	else
	{
		document.getElementById("healthGrandUniv").style.display = "none";
	}
}


function openWaldenCustomQuestions(program)
{
	if (program == "MS.W1EGR.SE" || program == "MS.W1EGR.SY")
	{
		document.getElementById("engineering_degreeField").style.display = "";
		//document.frm['custom[engineering_degree]'].disabled = false;
		document.getElementById("college_mathField").style.display = "";
		//document.frm['custom[college_math]'].disabled = false;
	}
	else
	{
		document.getElementById("engineering_degreeField").style.display = "none";
		//document.frm['custom[engineering_degree]'].disabled = true;
		document.getElementById("college_mathField").style.display = "none";
		//document.frm['custom[college_math]'].disabled = true;
	}
}

function openFullSailEdu(program)
{
	if (program == "20")
	{
		document.getElementById("edumediaFullSail").style.display = "";
	}
	else
	{
		document.getElementById("edumediaFullSail").style.display = "none";
	}
}

function openNursingWGU(program)
{
	if (program == "BSNU" || program == "MSNUE" || program == "MSNUL" || program == "RNMSE" || program == "RNMSL")
	{
		document.getElementById("nursingWGU").style.display = "";
		//document.getElementById("engRow2").style.display = "";
	}
	else
	{
		document.getElementById("nursingWGU").style.display = "none";
		//document.getElementById("engRow2").style.display = "none";
	}
}


function openNursingNationalAmerican(program)
{
	//alert(program);
	
	if (program == "Online Nursing RN-to-BSN B.S.")
	{
		//alert('I am here 2');
		document.getElementById("nursingNA1").style.display = "";
		document.getElementById("nursingNA2").style.display = "";
		document.getElementById("nursingNA3").style.display = "";
	}
	else
	{
		document.getElementById("nursingNA1").style.display = "none";
		document.getElementById("nursingNA2").style.display = "none";
		document.getElementById("nursingNA3").style.display = "none";
	}
}



function openATI1(program)
{
	//alert(program);
	
	if (program == "Aesthetics Laser Certification Preparation Seminar")
	{
		document.getElementById("atiprogram1").style.display = "";
		//document.getElementById("engRow2").style.display = "";
	}
	else
	{
		document.getElementById("atiprogram1").style.display = "none";
		//document.getElementById("engRow2").style.display = "none";
	}
}

function openATI2(program)
{
	if (program == "Aesthetics Laser Certification Preparation Seminar")
	{
		document.getElementById("atiprogram2").style.display = "";
		//document.getElementById("engRow2").style.display = "";
	}
	else
	{
		document.getElementById("atiprogram2").style.display = "none";
		//document.getElementById("engRow2").style.display = "none";
	}
}

function openNursingSU(program)
{
	//alert(program);
	if (program == "BSN in Nursing RN to BSN")
	{
		document.getElementById("nursingSU").style.display = "";
		//document.getElementById("engRow2").style.display = "";
	}
	else
	{
		document.getElementById("nursingSU").style.display = "none";
		//document.getElementById("engRow2").style.display = "none";
	}
}

function openNursingBSSU(program)
{
  if (program == "MS in Nursing"){
    document.getElementById("rnBS").style.display = "";
  }
  else{
    document.getElementById("rnBS").style.display = "none";
  }
}


function openBachSU(program)
{
	if (program == "AMBA" || program == "MBA Master of Business Administration" || program == "MBA in Healthcare Administration" || program == "MA in Professional Counseling")
	{
		document.getElementById("bachSU").style.display = "";
		//document.getElementById("engRow2").style.display = "";
	}
	else
	{
		document.getElementById("bachSU").style.display = "none";
		//document.getElementById("engRow2").style.display = "none";
	}
}


//
function openBachBIZKaplan(program)
{	
	thisMSPY=/^(MSPY)/i;
	compareMSPY = thisMSPY.exec(program);
	
	thisMSCJ=/^(MSCJ)/i;
	compareMSCJ = thisMSCJ.exec(program);
	
	thisMSIT=/^(MSIT)/i;
	compareMSIT = thisMSIT.exec(program);
	
	thisMSLS=/^(MSLS)/i;
	compareMSLS = thisMSLS.exec(program);
	
	thisMBA=/^(MBA)/i;
	compareMBA = thisMBA.exec(program);
	
	thisMSA=/^(MSA)/i;
	compareMSA = thisMSA.exec(program);
	
	thisMSM=/^(MSM)/i;
	compareMSM = thisMSM.exec(program);
	
	thisMSHA=/^(MSHA)/i;
	compareMSHA = thisMSHA.exec(program);
	
	thisMSPH=/^(MSPH)/i;
	compareMSPH = thisMSPH.exec(program);
	
	thisMAT=/^(MAT)/i;
	compareMAT = thisMAT.exec(program);
	
	thisMSE=/^(MSE)/i;
	compareMSE = thisMSE.exec(program);
	
	thisMSHE=/^(MSHE)/i;
	compareMSHE = thisMSHE.exec(program);
	
	thisMSEIT=/^(MSEIT)/i;
	compareMSEIT = thisMSEIT.exec(program);
	
	
	if (compareMSPY || compareMSCJ || compareMSIT || compareMSLS || compareMBA || compareMSA || compareMSM || compareMSHA || compareMSPH || compareMAT || compareMSE || compareMSHE || compareMSEIT)	
	{
		document.getElementById("bachBIZKaplan").style.display = "";
	}
	else
	{
		document.getElementById("bachBIZKaplan").style.display = "none";
	}
}


//
function openTransferKaplan(program)
{
	thisMSPY=/^(?!MSPY)/i;
	compareMSPY = thisMSPY.exec(program);
	
	thisMSHA=/^(?!MSHA)/i;
	compareMSHA = thisMSHA.exec(program);
	
	thisMSPH=/^(?!MSPH)/i;
	compareMSPH = thisMSPH.exec(program);
	
	thisAASMA=/^(?!AASMA)/i;
	compareAASMA = thisAASMA.exec(program);
	
	thisMBA=/^(?!MBA)/i;
	compareMBA = thisMBA.exec(program);
	
	thisMSA=/^(?!MSA)/i;
	compareMSA = thisMSA.exec(program);
	
	thisMSM=/^(?!MSM)/i;
	compareMSM = thisMSM.exec(program);
	
	thisMSCJ=/^(?!MSCJ)/i;
	compareMSCJ = thisMSCJ.exec(program);
	
	thisCSTC=/^(?!CSTC)/i;
	compareCSTC = thisCSTC.exec(program);
	
	thisMSCCJ=/^(?!MSCCJ)/i;
	compareMSCCJ = thisMSCCJ.exec(program);
	
	thisMSLS=/^(?!MSLS)/i;
	compareMSLS = thisMSLS.exec(program);
	
	thisMPA=/^(?!MPA)/i;
	compareMPA = thisMPA.exec(program);
	
	thisMSIT=/^(?!MSIT)/i;
	compareMSIT = thisMSIT.exec(program);
	
	thisMSN=/^(?!MSN)/i;
	compareMSN = thisMSN.exec(program);
	
	thisRN=/^(?!RN)/i;
	compareRN = thisRN.exec(program);
	
	
	if (compareMSPY && compareMSHA && compareMSPH && compareAASMA && compareMBA && compareMSA && compareMSM && compareMSCJ && compareMSCCJ && compareMSLS && compareMPA && compareMSIT && compareRN && compareMSN && compareCSTC)
	{
		//alert(program);
		document.getElementById("transferKaplan").style.display = "";
	}
	else
	{
		document.getElementById("transferKaplan").style.display = "none";
	}
}



function openAssocCJKaplan(program)
{
	thisCSTC=/^(CSTC)/i;
	compareCSTC = thisCSTC.exec(program);
	
	thisMSCCJ=/^(MSCCJ)/i;
	compareMSCCJ = thisMSCCJ.exec(program);
	
	if (compareCSTC || compareMSCCJ)
	{
		document.getElementById("assocCJKaplan").style.display = "";
	}
	else
	{
		document.getElementById("assocCJKaplan").style.display = "none";
	}
}

function openEnforceCJKaplan(program)
{
	thisCSTC=/^(CSTC)/i;
	compareCSTC = thisCSTC.exec(program);
	
	thisMSCCJ=/^(MSCCJ)/i;
	compareMSCCJ = thisMSCCJ.exec(program);
	
	if (compareCSTC || compareMSCCJ)
	{
		document.getElementById("enforceCJKaplan").style.display = "";
	}
	else
	{
		document.getElementById("enforceCJKaplan").style.display = "none";
	}
}

function openContactNurseKaplan(program)
{
	thisMSN=/^(MSN)/i;
	compareMSN = thisMSN.exec(program);
	
	thisRN=/^(RN)/i;
	compareRN = thisRN.exec(program);
	
	if (compareMSN || compareRN)
	//if (program == "RNBSNC" || program == "RNMSN" || program == "MSN" || program == "MSNNA" || program == "MSNNE" || program == "MSN_NI")
	{
		document.getElementById("contactNurseKaplan").style.display = "";
	}
	else
	{
		document.getElementById("contactNurseKaplan").style.display = "none";
	}
}

function openCallNurseKaplan(program)
{
	thisMSN=/^(MSN)/i;
	compareMSN = thisMSN.exec(program);
	
	thisRN=/^(RN)/i;
	compareRN = thisRN.exec(program);
	
	if (compareMSN || compareRN)
	//if (program == "RNBSNC" || program == "RNMSN" || program == "MSN" || program == "MSNNA" || program == "MSNNE" || program == "MSN_NI")
	{
		document.getElementById("callNurseKaplan").style.display = "";
	}
	else
	{
		document.getElementById("callNurseKaplan").style.display = "none";
	}
}

function openLicenseNurseKaplan(program)
{
	thisMSN=/^(MSN)/i;
	compareMSN = thisMSN.exec(program);
	
	thisRN=/^(RN)/i;
	compareRN = thisRN.exec(program);
	
	if (compareMSN || compareRN)
	//if (program == "RNBSNC" || program == "RNMSN" || program == "MSN" || program == "MSNNA" || program == "MSNNE" || program == "MSN_NI")
	{
		document.getElementById("licenseNurseKaplan").style.display = "";
	}
	else
	{
		document.getElementById("licenseNurseKaplan").style.display = "none";
	}
}

function openStateNurseKaplan(program)
{
	thisMSN=/^(MSN)/i;
	compareMSN = thisMSN.exec(program);
	
	thisRN=/^(RN)/i;
	compareRN = thisRN.exec(program);
	
	if (compareMSN || compareRN)
	//if (program == "RNBSNC" || program == "RNMSN" || program == "MSN" || program == "MSNNA" || program == "MSNNE" || program == "MSN_NI")
	{
		document.getElementById("stateNurseKaplan").style.display = "";
	}
	else
	{
		document.getElementById("stateNurseKaplan").style.display = "none";
	}
}

function openDegreeNurseKaplan(program)
{
	thisMSN=/^(MSN)/i;
	compareMSN = thisMSN.exec(program);
	
	thisNAC=/^(NAC)/i;
	compareNAC = thisNAC.exec(program);
	
	thisNEC=/^(NEC)/i;
	compareNEC = thisNEC.exec(program);
	
	if (compareMSN || compareNAC || compareNEC)
	//if (program == "MSN" || program == "MSNNA" || program == "MSNNE" || program == "MSN_NI")
	{
		document.getElementById("degreeNurseKaplan").style.display = "";
	}
	else
	{
		document.getElementById("degreeNurseKaplan").style.display = "none";
	}
}


function openNursingEduDyn(program)
{
	if (program == "95" || program == "97" || program == "107" || program == "108")
	{
		document.getElementById("nursingEduDyn").style.display = "";
		//document.getElementById("engRow2").style.display = "";
	}
	else
	{
		document.getElementById("nursingEduDyn").style.display = "none";
		//document.getElementById("engRow2").style.display = "none";
	}
}


function openNursingKeiser(program)
{
	if (program == "BSN")
	{
		document.getElementById("nursingKU").style.display = "";
		document.getElementById("assocKU").style.display = "";
		document.getElementById("citizenKU").style.display = "";
	}
	else
	{
		document.getElementById("nursingKU").style.display = "none";
		document.getElementById("assocKU").style.display = "none";
		document.getElementById("citizenKU").style.display = "none";
	}
	
}


function openWestwoodCredit(program)
{
  //alert('program is ');
  
	if (program == "51" || program == "34" || program == "52" || program == "31" || program == "50" || program == "53")
	//if (program == "51")
  {
		document.getElementById("westwoodcredit").style.display = "";
		//document.getElementById("engRow2").style.display = "";
	}
	else
	{
		document.getElementById("westwoodcredit").style.display = "none";
		//document.getElementById("engRow2").style.display = "none";
	}
}


function openNursingUOP(program)
{
	if (program == "SNC" || program == "BSN" || program == "MSN" || program == "MSN/ED" || program == "MSN/FNP" || program == "MSN/MBA/HC" || program == "MSN/MHA" || program == "MSN/NPFT" || program == "LPN/BSN" || program == "LVN/BSN")
	{
		document.getElementById("nursingUOP").style.display = "";
		//document.getElementById("engRow2").style.display = "";
	}
	else
	{
		document.getElementById("nursingUOP").style.display = "none";
		//document.getElementById("engRow2").style.display = "none";
	}
}


function openNursingRASOnline(program){
	//alert(program);
	if(program == "SoN-RNtoBSN-BS|Nursing")
	{
		document.getElementById('extrafield3Field').style.display = "";
	}
	else
	{
		document.getElementById('extrafield3Field').style.display = "none";
	}
}




//--- Kaplan CB ----  Undergrad and Grad -- NEW  
function openBestCallTimeKaplan(program)    //ok
{
  //alert('hellobestcalltime');
	thisMSNN=/^(MSN)/i;
	compareMSNN = thisMSNN.exec(program);
	
	thisRN=/^(RN)/i;
	compareRN = thisRN.exec(program);
	
	thisBSN=/^(BSN)/i;
	compareBSN = thisBSN.exec(program);
	
	if (compareMSNN || compareRN || compareBSN)
	//if (program == "RNBSNC" || program == "RNMSN" || program == "MSN" || program == "MSNNA" || program == "MSNNE" || program == "MSN_NI")
	{
		document.getElementById("bestCallTimeKaplan").style.display = "";
	}
	else
	{
		document.getElementById("bestCallTimeKaplan").style.display = "none";
	}
}


function openPreferredContactKaplan(program)    //ok
{
//alert('hello1');
	thisMSN=/^(MSN)/i;
	compareMSN = thisMSN.exec(program);
	
	thisRN=/^(RN)/i;
	compareRN = thisRN.exec(program);
	
	thisBSN=/^(BSN)/i;
	compareBSN = thisBSN.exec(program);
	
	if (compareMSN || compareRN || compareBSN)
	//if (program == "RNBSNC" || program == "RNMSN" || program == "MSN" || program == "MSNNA" || program == "MSNNE" || program == "MSN_NI")
	{
		document.getElementById("preferredContactKaplan").style.display = "";
	}
	else
	{
		document.getElementById("preferredContactKaplan").style.display = "none";
	}
}


function openNurseLicenseKaplan(program)    //ok
{
//alert('hello2');

	thisMSNN=/^(MSN)/i;
	compareMSNN = thisMSNN.exec(program);
	
	thisRN=/^(RN)/i;
	compareRN = thisRN.exec(program);
	
	thisBSN=/^(BSN)/i;
	compareBSN = thisBSN.exec(program);
	
	if (compareMSNN || compareRN || compareBSN)
	//if (program == "RNBSNC" || program == "RNMSN" || program == "MSN" || program == "MSNNA" || program == "MSNNE" || program == "MSN_NI")
	{
		document.getElementById("nurseLicenseKaplan").style.display = "";
	}
	else
	{
		document.getElementById("nurseLicenseKaplan").style.display = "none";
	}
}

function openNurseLicenseStateKaplan(program)   //ok
{
	thisMSN=/^(MSN)/i;
	compareMSN = thisMSN.exec(program);
	
	thisRN=/^(RN)/i;
	compareRN = thisRN.exec(program);
	
	thisBSN=/^(BSN)/i;
	compareBSN = thisBSN.exec(program);
	
	if (compareMSN || compareRN || compareBSN)
	//if (program == "RNBSNC" || program == "RNMSN" || program == "MSN" || program == "MSNNA" || program == "MSNNE" || program == "MSN_NI")
	{
		document.getElementById("nurseLicenseStateKaplan").style.display = "";
	}
	else
	{
		document.getElementById("nurseLicenseStateKaplan").style.display = "none";
	}
}

function openBachNurseDegreeKaplan(program)    //ok
{
	thisMSNN=/^(MSN)/i;
	compareMSNN = thisMSNN.exec(program);
	
	thisNAC=/^(NAC)/i;
	compareNAC = thisNAC.exec(program);
	
	thisNEC=/^(NEC)/i;
	compareNEC = thisNEC.exec(program);
	
	if (compareMSNN || compareNAC || compareNEC)
	//if (program == "MSN" || program == "MSNNA" || program == "MSNNE" || program == "MSN_NI")
	{
		document.getElementById("bachNurseDegreeKaplan").style.display = "";
	}
	else
	{
		document.getElementById("bachNurseDegreeKaplan").style.display = "none";
	}
}


function openBachDegreeKaplan(program) //ok
{	
  thisMPA=/^(MPA)/i;   //
	compareMPA = thisMPA.exec(program);
	
	thisMATI=/^(MATI)/i;   //
	compareMATI = thisMATI.exec(program);
	
	thisMSPY=/^(MSPY)/i;   //
	compareMSPY = thisMSPY.exec(program);
	
	thisMSCJ=/^(MSCJ)/i;    //
	compareMSCJ = thisMSCJ.exec(program);
	
	thisMSIT=/^(MSIT)/i;    //
	compareMSIT = thisMSIT.exec(program);
	
	thisMSLS=/^(MSLS)/i;   //
	compareMSLS = thisMSLS.exec(program);
	
	thisMBA=/^(MBA)/i;   //
	compareMBA = thisMBA.exec(program);
	
	thisMSA=/^(MSA)/i;     //
	compareMSA = thisMSA.exec(program);
	
	thisMSM=/^(MSM)/i;    //
	compareMSM = thisMSM.exec(program);
	
	thisMSHA=/^(MSHA)/i;    //
	compareMSHA = thisMSHA.exec(program);
	
	thisMSPH=/^(MSPH)/i;     //
	compareMSPH = thisMSPH.exec(program);
	
	thisMAT=/^(MAT)/i;       //
	compareMAT = thisMAT.exec(program);
	
	thisMSE=/^(MSE)/i;       //
	compareMSE = thisMSE.exec(program);
	
	thisMSHE=/^(MSHE)/i;    //
	compareMSHE = thisMSHE.exec(program);
	
	thisMSEIT=/^(MSEIT)/i;       //
	compareMSEIT = thisMSEIT.exec(program);
	
	
	if (compareMPA || compareMATI || compareMSPY || compareMSCJ || compareMSIT || compareMSLS || compareMBA || compareMSA || compareMSM || compareMSHA || compareMSPH || compareMAT || compareMSE || compareMSHE || compareMSEIT)	
	{
		document.getElementById("bachDegreeKaplan").style.display = "";
	}
	else
	{
		document.getElementById("bachDegreeKaplan").style.display = "none";
	}
}



function openCreditTransferKaplan(program)
{
  thisMSHE=/^(?!MSHE)/i;   //
	compareMSHE = thisMSHE.exec(program);
	
	thisMAT=/^(?!MAT)/i;   //
	compareMAT = thisMAT.exec(program);
	
	thisMATI=/^(?!MATI)/i;   //
	compareMATI = thisMATI.exec(program);
	
	thisMSE=/^(?!MSE)/i;   //
	compareMSE = thisMSE.exec(program);
	
	thisMSEIT=/^(?!MSEIT)/i;   //
	compareMSEIT = thisMSEIT.exec(program);
	
	thisMASC=/^(?!MASC)/i;   //
	compareMASC = thisMASC.exec(program);
	
	thisBSN=/^(?!BSN)/i;   //
	compareBSN = thisBSN.exec(program);  

  
	thisMSPY=/^(?!MSPY)/i;   //
	compareMSPY = thisMSPY.exec(program);
	
	thisMSHA=/^(?!MSHA)/i;      //
	compareMSHA = thisMSHA.exec(program);
	
	thisMSPH=/^(?!MSPH)/i;      //
	compareMSPH = thisMSPH.exec(program);
	
	thisAASMA=/^(?!AASMA)/i;   //
	compareAASMA = thisAASMA.exec(program);
	
	thisMBA=/^(?!MBA)/i;   //
	compareMBA = thisMBA.exec(program);
	
	thisMSA=/^(?!MSA)/i;     //
	compareMSA = thisMSA.exec(program);
	
	thisMSM=/^(?!MSM)/i;    //
	compareMSM = thisMSM.exec(program);
	
	thisMSCJ=/^(?!MSCJ)/i;     //
	compareMSCJ = thisMSCJ.exec(program);
	
	thisCSTC=/^(?!CSTC)/i;       //
	compareCSTC = thisCSTC.exec(program);
	
	//thisMSCCJ=/^(?!MSCCJ)/i;
	//compareMSCCJ = thisMSCCJ.exec(program);
	
	thisMSLS=/^(?!MSLS)/i;   //
	compareMSLS = thisMSLS.exec(program);
	
	thisMPA=/^(?!MPA)/i;   //
	compareMPA = thisMPA.exec(program);
	
	thisMSIT=/^(?!MSIT)/i;    //
	compareMSIT = thisMSIT.exec(program);
	
	thisMSNN=/^(?!MSN)/i;    //
	compareMSNN = thisMSNN.exec(program);
	
	thisRN=/^(?!RN)/i;     //
	compareRN = thisRN.exec(program);
	
	//alert('compare '+compareMPA);  
 	if (compareMSHE || compareMAT || compareMATI || compareMSE || compareMSEIT || compareMASC || compareBSN || compareMSPY || compareMSHA || compareMSPH || compareAASMA || compareMBA || compareMSA || compareMSM || compareMSCJ || compareMSCCJ || compareMSLS || compareMPA || compareMSIT || compareRN || compareMSNN || compareCSTC) 	
  //if (compareMSHE && compareMAT && compareMATI && compareMSE && compareMSEIT && compareMASC && compareBSN && compareMSPY && compareMSHA && compareMSPH && compareAASMA && compareMBA && compareMSA && compareMSM && compareMSCJ && compareMSCCJ && compareMSLS && compareMPA && compareMSIT && compareRN && compareMSNN && compareCSTC)
  {
		//alert(program);
		document.getElementById("creditTransferKaplan").style.display = "";
	}
	else
	{
		document.getElementById("creditTransferKaplan").style.display = "none";
	}
}


function openLookStartKaplan(program)
{
  thisMSHE=/^(?!MSHE)/i;   //
	compareMSHE = thisMSHE.exec(program);
	
	thisMAT=/^(?!MAT)/i;   //
	compareMAT = thisMAT.exec(program);
	
	thisMATI=/^(?!MATI)/i;   //
	compareMATI = thisMATI.exec(program);
	
	thisMSE=/^(?!MSE)/i;   //
	compareMSE = thisMSE.exec(program);
	
	thisMSEIT=/^(?!MSEIT)/i;   //
	compareMSEIT = thisMSEIT.exec(program);
	
	thisMASC=/^(?!MASC)/i;   //
	compareMASC = thisMASC.exec(program);
	
	thisBSN=/^(?!BSN)/i;   //
	compareBSN = thisBSN.exec(program);  

  
	thisMSPY=/^(?!MSPY)/i;   //
	compareMSPY = thisMSPY.exec(program);
	
	thisMSHA=/^(?!MSHA)/i;      //
	compareMSHA = thisMSHA.exec(program);
	
	thisMSPH=/^(?!MSPH)/i;      //
	compareMSPH = thisMSPH.exec(program);
	
	thisAASMA=/^(?!AASMA)/i;   //
	compareAASMA = thisAASMA.exec(program);
	
	thisMBA=/^(?!MBA)/i;   //
	compareMBA = thisMBA.exec(program);
	
	thisMSA=/^(?!MSA)/i;     //
	compareMSA = thisMSA.exec(program);
	
	thisMSM=/^(?!MSM)/i;    //
	compareMSM = thisMSM.exec(program);
	
	thisMSCJ=/^(?!MSCJ)/i;     //
	compareMSCJ = thisMSCJ.exec(program);
	
	thisCSTC=/^(?!CSTC)/i;       //
	compareCSTC = thisCSTC.exec(program);
	
	//thisMSCCJ=/^(?!MSCCJ)/i;
	//compareMSCCJ = thisMSCCJ.exec(program);
	
	thisMSLS=/^(?!MSLS)/i;   //
	compareMSLS = thisMSLS.exec(program);
	
	thisMPA=/^(?!MPA)/i;   //
	compareMPA = thisMPA.exec(program);
	
	thisMSIT=/^(?!MSIT)/i;    //
	compareMSIT = thisMSIT.exec(program);
	
	thisMSNN=/^(?!MSN)/i;    //
	compareMSNN = thisMSNN.exec(program);
	
	thisRN=/^(?!RN)/i;     //
	compareRN = thisRN.exec(program);
	
	
	//if (compareMSPY && compareMSHA && compareMSPH && compareAASMA && compareMBA && compareMSA && compareMSM && compareMSCJ && compareMSCCJ && compareMSLS && compareMPA && compareMSIT && compareRN && compareMSN && compareCSTC)  
 	if (compareMSHE || compareMAT || compareMATI || compareMSE || compareMSEIT || compareMASC || compareBSN || compareMSPY || compareMSHA || compareMSPH || compareAASMA || compareMBA || compareMSA || compareMSM || compareMSCJ || compareMSCCJ || compareMSLS || compareMPA || compareMSIT || compareRN || compareMSNN || compareCSTC) 	
  {
		//alert(program);
		document.getElementById("lookStartKaplan").style.display = "";
	}
	else
	{
		document.getElementById("lookStartKaplan").style.display = "none";
	}
}

function openBloodfluidsKaplan(program)    //ok
{
	thisAASMA=/^(AASMA)/i;
	compareAASMA = thisAASMA.exec(program);
		
	if (compareAASMA)
	{
		document.getElementById("bloodfluidsKaplan").style.display = "";
	}
	else
	{
		document.getElementById("bloodfluidsKaplan").style.display = "none";
	}
}

function openWorkNeedlesKaplan(program)     //ok
{
	thisAASMA=/^(AASMA)/i;
	compareAASMA = thisAASMA.exec(program);
		
	if (compareAASMA)
	{
		document.getElementById("workNeedlesKaplan").style.display = "";
	}
	else
	{
		document.getElementById("workNeedlesKaplan").style.display = "none";
	}
}

function openAssistPhysicianKaplan(program)  //ok
{
	thisAASMA=/^(AASMA)/i;
	compareAASMA = thisAASMA.exec(program);
		
	if (compareAASMA)
	{
		document.getElementById("assistPhysicianKaplan").style.display = "";
	}
	else
	{
		document.getElementById("assistPhysicianKaplan").style.display = "none";
	}
}



function openAssocDegreeKaplan(program)
{
	thisCSTC=/^(CSTC)/i;
	compareCSTC = thisCSTC.exec(program);
	
	thisMSCCJ=/^(MSCCJ)/i;
	compareMSCCJ = thisMSCCJ.exec(program);
	
	if (compareCSTC || compareMSCCJ)
	{
		document.getElementById("assocDegreeKaplan").style.display = "";
	}
	else
	{
		document.getElementById("assocDegreeKaplan").style.display = "none";
	}
}

function openEmployedLawKaplan(program)
{
	thisCSTC=/^(CSTC)/i;
	compareCSTC = thisCSTC.exec(program);
	
	thisMSCCJ=/^(MSCCJ)/i;
	compareMSCCJ = thisMSCCJ.exec(program);
	
	if (compareCSTC || compareMSCCJ)
	{
		document.getElementById("employedLawKaplan").style.display = "";
	}
	else
	{
		document.getElementById("employedLawKaplan").style.display = "none";
	}
}









function displayPreferredPhone(prefPhoneType)
{
	switch (prefPhoneType)
	{
		case "home":
			document.getElementById("prefPhoneTypeText").innerHTML = "Home Phone";	
			document.getElementById("prefPhoneCol").style.display = "";
			//document.getElementById("area_code").name= "area_code";
			//document.getElementById("phone_prefix").name= "phone_prefix";
			//document.getElementById("phone_suffix").name= "phone_suffix";
			document.getElementById("altPhoneList").options[0] = new Option('- Select One -','');
			document.getElementById("altPhoneList").options[1] = new Option('Work','work');
			document.getElementById("altPhoneList").options[2] = new Option('Mobile','mobile');
			break;
			
		
		case "work":
			document.getElementById("prefPhoneTypeText").innerHTML = "Work Phone";	
			document.getElementById("prefPhoneCol").style.display = "";
			//document.getElementById("area_code").name= "area_code_2";
			//document.getElementById("phone_prefix").name= "phone_prefix_2";
			//document.getElementById("phone_suffix").name= "phone_suffix_2";
			document.getElementById("altPhoneList").options[0] = new Option('- Select One -','');
			document.getElementById("altPhoneList").options[1] = new Option('Home','home');
			document.getElementById("altPhoneList").options[2] = new Option('Mobile','mobile');
			break;
		
		
		case "mobile":
			document.getElementById("prefPhoneTypeText").innerHTML = "Mobile Phone";	
			document.getElementById("prefPhoneCol").style.display = "";
			//document.getElementById("area_code").name= "area_code3";
			//document.getElementById("phone_prefix").name= "phone_prefix3";
			//document.getElementById("phone_suffix").name= "phone_suffix3";
			document.getElementById("altPhoneList").options[0] = new Option('- Select One -','');
			document.getElementById("altPhoneList").options[1] = new Option('Home','home');
			document.getElementById("altPhoneList").options[2] = new Option('Work','work');
			break;
		
		default:
			document.getElementById("prefPhoneCol").style.display = "none";
	}
	document.getElementById("altPhoneCol").style.display = "none";
}

function displayAlternatePhone(altPhoneType)
{
	switch (altPhoneType)
	{
		case "home":
			document.getElementById("altPhoneTypeText").innerHTML = "Home Phone";	
			document.getElementById("altPhoneCol").style.display = "";
			//document.getElementById("area_code2").name= "area_code";
			//document.getElementById("phone_prefix2").name= "phone_prefix";
			//document.getElementById("phone_suffix2").name= "phone_suffix";
			break;
			
		
		case "work":
			document.getElementById("altPhoneTypeText").innerHTML = "Work Phone";	
			document.getElementById("altPhoneCol").style.display = "";
			//document.getElementById("area_code2").name= "area_code_2";
			//document.getElementById("phone_prefix2").name= "phone_prefix_2";
			//document.getElementById("phone_suffix2").name= "phone_suffix_2";
			break;
		
		case "mobile":
			document.getElementById("altPhoneTypeText").innerHTML = "Mobile Phone";	
			document.getElementById("altPhoneCol").style.display = "";
			//document.getElementById("area_code2").name= "area_code3";
			//document.getElementById("phone_prefix2").name= "phone_prefix3";
			//document.getElementById("phone_suffix2").name= "phone_suffix3";
			break;
		
		default:
			document.getElementById("altPhoneCol").style.display = "none";
	}
}


function openNorwichCustomQuestions(program)
{
	document.getElementById("titleField").style.display = "";

	switch(program)
	{
		case "NU_MSBC":
			break;			
			
		case "NU_MDY":
		case "NU_MMH":
		case "NU_MBA":
		case "NU_MCE":
		case "NU_MJA":
		case "NU_MSOL":
			document.getElementById("what_semester_are_you_considering_startingField").style.display = "";
			document.frm['custom[what_semester_are_you_considering_starting]'].disabled = false;		
			
			document.getElementById("Best_time_to_callField").style.display = "";
			document.frm['custom[Best_time_to_call]'].disabled = false;	
			
			document.getElementById("Norwich_AlumnusField").style.display = "";
			document.frm['custom[Norwich_Alumnus]'].disabled = false;
			
			
			
			document.getElementById("CISSP_CertificateField").style.display = "none";
			document.frm['custom[CISSP_Certificate]'].disabled = true;
			
			document.getElementById("Degree_OtherField").style.display = "none";
			document.frm['custom[Degree_Other]'].disabled = true;
			
			document.getElementById("Licensed_NursingField").style.display = "none";
			document.frm['custom[Licensed_Nursing]'].disabled = true;
				
			break;
		
		
		case "NU_MSIA":
			document.getElementById("CISSP_CertificateField").style.display = "";
			document.frm['custom[CISSP_Certificate]'].disabled = false;
						
			
			document.getElementById("Degree_OtherField").style.display = "none";
			document.frm['custom[Degree_Other]'].disabled = true;
			
			document.getElementById("Licensed_NursingField").style.display = "none";
			document.frm['custom[Licensed_Nursing]'].disabled = true;
			
			document.getElementById("what_semester_are_you_considering_startingField").style.display = "none";
			document.frm['custom[what_semester_are_you_considering_starting]'].disabled = true;	
			
			document.getElementById("Best_time_to_callField").style.display = "none";
			document.frm['custom[Best_time_to_call]'].disabled = true;	
			
			document.getElementById("Norwich_AlumnusField").style.display = "none";
			document.frm['custom[Norwich_Alumnus]'].disabled = true;
						
			break;
		
		
		case "NU_MPA":
			document.getElementById("what_semester_are_you_considering_startingField").style.display = "";
			document.frm['custom[what_semester_are_you_considering_starting]'].disabled = false;
			
			document.getElementById("Best_time_to_callField").style.display = "";
			document.frm['custom[Best_time_to_call]'].disabled = false;
			
	
			document.getElementById("Degree_OtherField").style.display = "none";
			document.frm['custom[Degree_Other]'].disabled = true;
			
			document.getElementById("Licensed_NursingField").style.display = "none";
			document.frm['custom[Licensed_Nursing]'].disabled = true;
			
			document.getElementById("Norwich_AlumnusField").style.display = "none";
			document.frm['custom[Norwich_Alumnus]'].disabled = true;
			
			break;
		
		
		case "NU_MSN":			
			document.getElementById("Degree_OtherField").style.display = "";
			document.frm['custom[Degree_Other]'].disabled = false;
			
			document.getElementById("Licensed_NursingField").style.display = "";
			document.frm['custom[Licensed_Nursing]'].disabled = false;
						
						
			document.getElementById("CISSP_CertificateField").style.display = "none";
			document.frm['custom[CISSP_Certificate]'].disabled = true;
			
			document.getElementById("what_semester_are_you_considering_startingField").style.display = "none";
			document.frm['custom[what_semester_are_you_considering_starting]'].disabled = true;
			
			document.getElementById("Best_time_to_call_questionField").style.display = "none";
			document.frm['custom[Best_time_to_call_question]'].disabled = true;		
			
			document.getElementById("Norwich_AlumnusField").style.display = "none";
			document.frm['custom[Norwich_Alumnus]'].disabled = true;
			
			
			break;
			
					
	}
	
	switch(program)
	{
		case "NU_MSBC":
		case "NU_MSIA":
		case "NU_MPA":
			document.frm['custom[Highest_Degree_Earned]'].options.length=0;
			document.frm['custom[Highest_Degree_Earned]'].options[0] = new Option('High School', 'High School');
			document.frm['custom[Highest_Degree_Earned]'].options[1] = new Option('Associates', 'Associates');
			document.frm['custom[Highest_Degree_Earned]'].options[2] = new Option('Bachelors', 'Bachelors');
			document.frm['custom[Highest_Degree_Earned]'].options[3] = new Option('Masters', 'Masters');
			document.frm['custom[Highest_Degree_Earned]'].options[4] = new Option('Doctorate', 'Doctorate');
			
			break;			
			
		case "NU_MDY":
		case "NU_MMH":
		case "NU_MBA":
		case "NU_MCE":
		case "NU_MJA":
		case "NU_MSOL":
		case "NU_MSN":	
			document.frm['custom[Highest_Degree_Earned]'].options.length=0;
			document.frm['custom[Highest_Degree_Earned]'].options[0] = new Option('Nursing Diploma', 'Nursing Diploma');
			document.frm['custom[Highest_Degree_Earned]'].options[1] = new Option('Associates', 'Associates');
			document.frm['custom[Highest_Degree_Earned]'].options[2] = new Option('Bachelors', 'Bachelors');
			document.frm['custom[Highest_Degree_Earned]'].options[3] = new Option('BSN', 'BSN');
			document.frm['custom[Highest_Degree_Earned]'].options[4] = new Option('Masters', 'Masters');
			document.frm['custom[Highest_Degree_Earned]'].options[5] = new Option('Doctorate', 'Doctorate');
				
			break;		
	}
}	

//_____________________________________________________________________________________________________________________
// ********************************************************************************************************************
// popus.js
// --------------------------------------------------------------------------------------------------------------------
function popup(page)
{
	if(page=="how_it_works")
	{
		window.open("popup.php?page="+page, "","height=450,width=840,top=0,left=0,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,titlebar=yes,toolbar=yes,directories=no");
	}
	else if(page=="privacy_and_terms")
	{
		window.open("popup.php?page="+page, "","height=720,width=840,top=0,left=0,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,titlebar=yes,toolbar=yes,directories=no");
	}
}

//_____________________________________________________________________________________________________________________
// ********************************************************************************************************************
// autotab.js
//----------------------------------------------------------------------------------------------------------------------
var phone_field_length=0;
function TabNext(obj,event,len,next_field) {
	if (event == "down") {
		phone_field_length=obj.value.length;
		}
	else if (event == "up") {
		if (obj.value.length != phone_field_length) {
			phone_field_length=obj.value.length;
			if (phone_field_length == len) {
				next_field.focus();
				}
			}
		}
	}
//_____________________________________________________________________________________________________________________
// ********************************************************************************************************************
// autotab2.js
//----------------------------------------------------------------------------------------------------------------------
var phone_field_length2=0;
function TabNext2(obj,event,len,next_field) {
	if (event == "down") {
		phone_field_length2=obj.value.length;
		}
	else if (event == "up") {
		if (obj.value.length != phone_field_length2) {
			phone_field_length2=obj.value.length;
			if (phone_field_length2 == len) {
				next_field.focus();
				}
			}
		}
	}
	
//_____________________________________________________________________________________________________________________
// ********************************************************************************************************************
// masks.js
//----------------------------------------------------------------------------------------------------------------------

function _MaskAPI(){
	this.version = "0.4b";
	this.instances = 0;
	this.objects = {};
}
MaskAPI = new _MaskAPI();

function Mask(m, t){
	this.mask = m;
	this.type = (typeof t == "string") ? t : "string";
	this.error = [];
	this.errorCodes = [];
	this.value = "";
	this.strippedValue = "";
	this.allowPartial = false;
	this.id = MaskAPI.instances++;
	this.ref = "MaskAPI.objects['" + this.id + "']";
	MaskAPI.objects[this.id] = this;
}

// define the attach(oElement) function
Mask.prototype.attach = function (o){
	$addEvent(o, "onkeydown", "return " + this.ref + ".isAllowKeyPress(event, this);", true);
	$addEvent(o, "onkeyup", "return " + this.ref + ".getKeyPress(event, this);", true);
	$addEvent(o, "onblur", "this.value = " + this.ref + ".format(this.value);", true);
}

Mask.prototype.isAllowKeyPress = function (e, o){
	if( this.type != "string" ) return true;
	var xe = new qEvent(e);

	if( ((xe.keyCode > 47) && (o.value.length >= this.mask.length)) && !xe.ctrlKey ) return false;
	return true;
}

Mask.prototype.getKeyPress = function (e, o, _u){
	this.allowPartial = true;
	var xe = new qEvent(e);

//	var k = String.fromCharCode(xe.keyCode);

	if( (xe.keyCode > 47) || (_u == true) || (xe.keyCode == 8 || xe.keyCode == 46) ){
		var v = o.value, d;
		if( xe.keyCode == 8 || xe.keyCode == 46 ) d = true;
		else d = false

		if( this.type == "number" ) this.value = this.setNumber(v, d);
		else if( this.type == "date" ) this.value = this.setDateKeyPress(v, d);
		else this.value = this.setGeneric(v, d);

		o.value = this.value;
	}
	/* */

	this.allowPartial = false;
	return true;
}

Mask.prototype.format = function (s){
	if( this.type == "number" ) this.value = this.setNumber(s);
	else if( this.type == "date" ) this.value = this.setDate(s);
	else this.value = this.setGeneric(s);
	return this.value;
}

Mask.prototype.throwError = function (c, e, v){
	this.error[this.error.length] = e;
	this.errorCodes[this.errorCodes.length] = c;
	if( typeof v == "string" ) return v;
	return true;
}

Mask.prototype.setGeneric = function (_v, _d){
	var v = _v, m = this.mask;
	var r = "x#*", rt = [], nv = "", t, x, a = [], j=0, rx = {"x": "A-Za-z", "#": "0-9", "*": "A-Za-z0-9" };

	// strip out invalid characters
	v = v.replace(new RegExp("[^" + rx["*"] + "]", "gi"), "");
	if( (_d == true) && (v.length == this.strippedValue.length) ) v = v.substring(0, v.length-1);
	this.strippedValue = v;
	var b=[];
	for( var i=0; i < m.length; i++ ){
		// grab the current character
		x = m.charAt(i);
		// check to see if current character is a mask, escape commands are not a mask character
		t = (r.indexOf(x) > -1);
		// if the current character is an escape command, then grab the next character
		if( x == "!" ) x = m.charAt(i++);
		// build a regex to test against
		if( (t && !this.allowPartial) || (t && this.allowPartial && (rt.length < v.length)) ) rt[rt.length] = "[" + rx[x] + "]";
		// build mask definition table
		a[a.length] = { "chr": x, "mask": t };
	}

	var hasOneValidChar = false;
	// if the regex fails, return an error
	if( !this.allowPartial && !(new RegExp(rt.join(""))).test(v) ) return this.throwError(1, "The value \"" + _v + "\" must be in the format " + this.mask + ".", _v);
	// loop through the mask definition, and build the formatted string
	else if( (this.allowPartial && (v.length > 0)) || !this.allowPartial ){
		for( i=0; i < a.length; i++ ){
			if( a[i].mask ){
				while( v.length > 0 && !(new RegExp(rt[j])).test(v.charAt(j)) ) v = (v.length == 1) ? "" : v.substring(1);
				if( v.length > 0 ){
					nv += v.charAt(j);
					hasOneValidChar = true;
				}
				j++;
			} else nv += a[i].chr;
			if( this.allowPartial && (j > v.length) ) break;
		}
	}
	
	if( this.allowPartial && !hasOneValidChar ) nv = "";
	if( this.allowPartial ){
		if( nv.length < a.length ) this.nextValidChar = rx[a[nv.length].chr];
		else this.nextValidChar = null;
	}

	return nv;
}

Mask.prototype.setNumber = function(_v, _d){
	var v = String(_v).replace(/[^\d.-]*/gi, ""), m = this.mask;
	// make sure there's only one decimal point
	v = v.replace(/\./, "d").replace(/\./g, "").replace(/d/, ".");

	// check to see if an invalid mask operation has been entered
	if( !/^[\$]?((\$?[\+-]?([0#]{1,3},)?[0#]*(\.[0#]*)?)|([\+-]?\([\+-]?([0#]{1,3},)?[0#]*(\.[0#]*)?\)))$/.test(m) )
		return this.throwError(1, "An invalid mask was specified for the \nMask constructor.", _v);

	if( (_d == true) && (v.length == this.strippedValue.length) ) v = v.substring(0, v.length-1);

	if( this.allowPartial && (v.replace(/[^0-9]/, "").length == 0) ) return v;
	this.strippedValue = v;

	if( v.length == 0 ) v = NaN;
	var vn = Number(v);
	if( isNaN(vn) ) return this.throwError(2, "The value entered was not a number.", _v);

	// if no mask, stop processing
	if( m.length == 0 ) return v;

	// get the value before the decimal point
	var vi = String(Math.abs((v.indexOf(".") > -1 ) ? v.split(".")[0] : v));
	// get the value after the decimal point
	var vd = (v.indexOf(".") > -1) ? v.split(".")[1] : "";
	var _vd = vd;

	var isNegative = (vn != 0 && Math.abs(vn)*-1 == vn);

	// check for masking operations
	var show = {
		"$" : /^[\$]/.test(m),
		"(": (isNegative && (m.indexOf("(") > -1)),
		"+" : ( (m.indexOf("+") != -1) && !isNegative )
	}
	show["-"] = (isNegative && (!show["("] || (m.indexOf("-") != -1)));


	// replace all non-place holders from the mask
	m = m.replace(/[^#0.,]*/gi, "");

	/*
		make sure there are the correct number of decimal places
	*/
	// get number of digits after decimal point in mask
	var dm = (m.indexOf(".") > -1 ) ? m.split(".")[1] : "";
	if( dm.length == 0 ){
		vi = String(Math.round(Number(vi)));
		vd = "";
	} else {
		// find the last zero, which indicates the minimum number
		// of decimal places to show
		var md = dm.lastIndexOf("0")+1;
		// if the number of decimal places is greater than the mask, then round off
		if( vd.length > dm.length ) vd = String(Math.round(Number(vd.substring(0, dm.length + 1))/10));
		// otherwise, pad the string w/the required zeros
		else while( vd.length < md ) vd += "0";
	}

	/*
		pad the int with any necessary zeros
	*/
	// get number of digits before decimal point in mask
	var im = (m.indexOf(".") > -1 ) ? m.split(".")[0] : m;
	im = im.replace(/[^0#]+/gi, "");
	// find the first zero, which indicates the minimum length
	// that the value must be padded w/zeros
	var mv = im.indexOf("0")+1;
	// if there is a zero found, make sure it's padded
	if( mv > 0 ){
		mv = im.length - mv + 1;
		while( vi.length < mv ) vi = "0" + vi;
	}


	/*
		check to see if we need commas in the thousands place holder
	*/
	if( /[#0]+,[#0]{3}/.test(m) ){
		// add the commas as the place holder
		var x = [], i=0, n=Number(vi);
		while( n > 999 ){
			x[i] = "00" + String(n%1000);
			x[i] = x[i].substring(x[i].length - 3);
			n = Math.floor(n/1000);
			i++;
		}
		x[i] = String(n%1000);
		vi = x.reverse().join(",");
	}


	/*
		combine the new value together
	*/
	if( (vd.length > 0 && !this.allowPartial) || ((dm.length > 0) && this.allowPartial && (v.indexOf(".") > -1) && (_vd.length >= vd.length)) ){
		v = vi + "." + vd;
	} else if( (dm.length > 0) && this.allowPartial && (v.indexOf(".") > -1) && (_vd.length < vd.length) ){
		v = vi + "." + _vd;
	} else {
		v = vi;
	}

	if( show["$"] ) v = this.mask.replace(/(^[\$])(.+)/gi, "$") + v;
	if( show["+"] ) v = "+" + v;
	if( show["-"] ) v = "-" + v;
	if( show["("] ) v = "(" + v + ")";
	return v;
}

Mask.prototype.setDate = function (_v){
	var v = _v, m = this.mask;
	var a, e, mm, dd, yy, x, s;

	// split mask into array, to see position of each day, month & year
	a = m.split(/[^mdy]+/);
	// split mask into array, to get delimiters
	s = m.split(/[mdy]+/);
	// convert the string into an array in which digits are together
	e = v.split(/[^0-9]/);
	
	if( s[0].length == 0 ) s.splice(0, 1);

	for( var i=0; i < a.length; i++ ){
		x = a[i].charAt(0).toLowerCase();
		if( x == "m" ) mm = parseInt(e[i], 10)-1;
		else if( x == "d" ) dd = parseInt(e[i], 10);
		else if( x == "y" ) yy = parseInt(e[i], 10);
	}

	// if year is abbreviated, guess at the year
	if( String(yy).length < 3 ){
		yy = 2000 + yy;
		if( (new Date()).getFullYear()+5 < yy ) yy = yy - 100;
	}

	// create date object
	var d = new Date(yy, mm, dd);

	if( d.getDate() != dd ) return this.throwError(1, "An invalid day was entered.", _v);
	else if( d.getMonth() != mm ) return this.throwError(2, "An invalid month was entered.", _v);

	var nv = "";

	for( i=0; i < a.length; i++ ){
		x = a[i].charAt(0).toLowerCase();
		if( x == "m" ){
			mm++;
			if( a[i].length == 2 ){
				mm = "0" + mm;
				mm = mm.substring(mm.length-2);
			}
			nv += mm;
		} else if( x == "d" ){
			if( a[i].length == 2 ){
				dd = "0" + dd;
				dd = dd.substring(dd.length-2);
			}
			nv += dd;
		} else if( x == "y" ){
			if( a[i].length == 2 ) nv += d.getYear();
			else nv += d.getFullYear();
		}

		if( i < a.length-1 ) nv += s[i];
	}

	return nv;
}

Mask.prototype.setDateKeyPress = function (_v, _d){
	var v = _v, m = this.mask, k = v.charAt(v.length-1);
	var a, e, c, ml, vl, mm = "", dd = "", yy = "", x, p, z;

	if( _d == true ){
		while( (/[^0-9]/gi).test(v.charAt(v.length-1)) ) v = v.substring(0, v.length-1);
		if( (/[^0-9]/gi).test(this.strippedValue.charAt(this.strippedValue.length-1)) ) v = v.substring(0, v.length-1);
		if( v.length == 0 ) return "";
	}

	// split mask into array, to see position of each day, month & year
	a = m.split(/[^mdy]/);
	// split mask into array, to get delimiters
	s = m.split(/[mdy]+/);
	// mozilla wants to add an empty array element which needs removed
	if( s[0].length == 0 ) s.splice(0,1);
	// convert the string into an array in which digits are together
	e = v.split(/[^0-9]/);
	// position in mask
	p = (e.length > 0) ? e.length-1 : 0;
	// determine what mask value the user is currently entering
	c = a[p].charAt(0);
	// determine the length of the current mask value
	ml = a[p].length;

	for( var i=0; i < e.length; i++ ){
		x = a[i].charAt(0).toLowerCase();
		if( x == "m" ) mm = parseInt(e[i], 10)-1;
		else if( x == "d" ) dd = parseInt(e[i], 10);
		else if( x == "y" ) yy = parseInt(e[i], 10);
	}
	
	
	var nv = "";
	var j=0;

	for( i=0; i < e.length; i++ ){
		x = a[i].charAt(0).toLowerCase();
	
		if( x == "m" ){
			z = ((/[^0-9]/).test(k) && c == "m");
			mm++;
			if( (e[i].length == 2 && mm < 10) || (a[i].length == 2 && c != "m") || (mm > 1 && c == "m") || (z && a[i].length == 2) ){
				mm = "0" + mm;
				mm = mm.substring(mm.length-2);
			}
			vl = String(mm).length;
			ml = 2;
			nv += mm;
		} else if( x == "d" ){
			z = ((/[^0-9]/).test(k) && c == "d");
			if( (e[i].length == 2 && dd < 10) || (a[i].length == 2 && c != "d") || (dd > 3 && c == "d") || (z && a[i].length == 2) ){
				dd = "0" + dd;
				dd = dd.substring(dd.length-2);
			}
			vl = String(dd).length;
			ml = 2;
			nv += dd;
		} else if( x == "y" ){
			z = ((/[^0-9]/).test(k) && c == "y");
			if( c == "y" ) yy = String(yy);
			else {
				if( a[i].length == 2 ) yy = d.getYear();
				else yy = d.getFullYear();
			}
			if( (e[i].length == 2 && yy < 10) || (a[i].length == 2 && c != "y") || (z && a[i].length == 2) ){
				yy = "0" + yy;
				yy = yy.substring(yy.length-2);
			}
			ml = a[i].length;
			vl = String(yy).length;
			nv += yy;
		}

		if( ((ml == vl || z) && (x == c) && (i < s.length)) || (i < s.length && x != c ) ) nv += s[i];
	}

	if( nv.length > m.length ) nv = nv.substring(0, m.length);

	this.strippedValue = (nv == "NaN") ? "" : nv;

	return this.strippedValue;
}

function qEvent(e){
	// routine for NS, Opera, etc DOM browsers
	if( window.Event ){
		var isKeyPress = (e.type.substring(0,3) == "key");

		this.keyCode = (isKeyPress) ? parseInt(e.which, 10) : 0;
		this.button = (!isKeyPress) ? parseInt(e.which, 10) : 0;
		this.srcElement = e.target;
		this.type = e.type;
		this.x = e.pageX;
		this.y = e.pageY;
		this.screenX = e.screenX;
		this.screenY = e.screenY;
		if( document.layers ){
			this.altKey = ((e.modifiers & Event.ALT_MASK) > 0);
			this.ctrlKey = ((e.modifiers & Event.CONTROL_MASK) > 0);
			this.shiftKey = ((e.modifiers & Event.SHIFT_MASK) > 0);
			this.keyCode = this.translateKeyCode(this.keyCode);
		} else {
			this.altKey = e.altKey;
			this.ctrlKey = e.ctrlKey;
			this.shiftKey = e.shiftKey;
		}
	// routine for Internet Explorer DOM browsers
	} else {
		e = window.event;
		this.keyCode = parseInt(e.keyCode, 10);
		this.button = e.button;
		this.srcElement = e.srcElement;
		this.type = e.type;
		if( document.all ){
			this.x = e.clientX + document.body.scrollLeft;
			this.y = e.clientY + document.body.scrollTop;
		} else {
			this.x = e.clientX;
			this.y = e.clientY;
		}
		this.screenX = e.screenX;
		this.screenY = e.screenY;
		this.altKey = e.altKey;
		this.ctrlKey = e.ctrlKey;
		this.shiftKey = e.shiftKey;
	}
	if( this.button == 0 ){
		this.setKeyPressed(this.keyCode);
		this.keyChar = String.fromCharCode(this.keyCode);
	}
}

// this method will try to remap the keycodes so the keycode value
// returned will be consistent. this doesn't work for all cases,
// since some browsers don't always return a unique value for a
// key press.
qEvent.prototype.translateKeyCode = function (i){
	var l = {};
	// remap NS4 keycodes to IE/W3C keycodes
	if( !!document.layers ){
		if( this.keyCode > 96 && this.keyCode < 123 ) return this.keyCode - 32;
		l = {
			96:192,126:192,33:49,64:50,35:51,36:52,37:53,94:54,38:55,42:56,40:57,41:48,92:220,124:220,125:221,
			93:221,91:219,123:219,39:222,34:222,47:191,63:191,46:190,62:190,44:188,60:188,45:189,95:189,43:187,
			61:187,59:186,58:186,
			"null": null
		}
	}
	return (!!l[i]) ? l[i] : i;
}

// try to determine the actual value of the key pressed
qEvent.prototype.setKP = function (i, s){
	this.keyPressedCode = i;
	this.keyNonChar = (typeof s == "string");
	this.keyPressed = (this.keyNonChar) ? s : String.fromCharCode(i);
	this.isNumeric = (parseInt(this.keyPressed, 10) == this.keyPressed);
	this.isAlpha = ((this.keyCode > 64 && this.keyCode < 91) && !this.altKey && !this.ctrlKey);
	return true;
}

// try to determine the actual value of the key pressed
qEvent.prototype.setKeyPressed = function (i){
	var b = this.shiftKey;
	if( !b && (i > 64 && i < 91) ) return this.setKP(i + 32);
	if( i > 95 && i < 106 ) return this.setKP(i - 48);
	
	switch( i ){
		case 49: case 51: case 52: case 53: if( b ) i = i - 16; break;
		case 50: if( b ) i = 64; break;
		case 54: if( b ) i = 94; break;
		case 55: if( b ) i = 38; break;
		case 56: if( b ) i = 42; break;
		case 57: if( b ) i = 40; break;
		case 48: if( b ) i = 41; break;
		case 192: if( b ) i = 126; else i = 96; break;
		case 189: if( b ) i = 95; else i = 45; break;
		case 187: if( b ) i = 43; else i = 61; break;
		case 220: if( b ) i = 124; else i = 92; break;
		case 221: if( b ) i = 125; else i = 93; break;
		case 219: if( b ) i = 123; else i = 91; break;
		case 222: if( b ) i = 34; else i = 39; break;
		case 186: if( b ) i = 58; else i = 59; break;
		case 191: if( b ) i = 63; else i = 47; break;
		case 190: if( b ) i = 62; else i = 46; break;
		case 188: if( b ) i = 60; else i = 44; break;

		case 106: case 57379: i = 42; break;
		case 107: case 57380: i = 43; break;
		case 109: case 57381: i = 45; break;
		case 110: i = 46; break;
		case 111: case 57378: i = 47; break;

		case 8: return this.setKP(i, "[backspace]");
		case 9: return this.setKP(i, "[tab]");
		case 13: return this.setKP(i, "[enter]");
		case 16: case 57389: return this.setKP(i, "[shift]");
		case 17: case 57390: return this.setKP(i, "[ctrl]");
		case 18: case 57388: return this.setKP(i, "[alt]");
		case 19: case 57402: return this.setKP(i, "[break]");
		case 20: return this.setKP(i, "[capslock]");
		case 32: return this.setKP(i, "[space]");
		case 91: return this.setKP(i, "[windows]");
		case 93: return this.setKP(i, "[properties]");

		case 33: case 57371: return this.setKP(i*-1, "[pgup]");
		case 34: case 57372: return this.setKP(i*-1, "[pgdown]");
		case 35: case 57370: return this.setKP(i*-1, "[end]");
		case 36: case 57369: return this.setKP(i*-1, "[home]");
		case 37: case 57375: return this.setKP(i*-1, "[left]");
		case 38: case 57373: return this.setKP(i*-1, "[up]");
		case 39: case 57376: return this.setKP(i*-1, "[right]");
		case 40: case 57374: return this.setKP(i*-1, "[down]");
		case 45: case 57382: return this.setKP(i*-1, "[insert]");
		case 46: case 57383: return this.setKP(i*-1, "[delete]");
		case 144: case 57400: return this.setKP(i*-1, "[numlock]");
	}
	
	if( i > 111 && i < 124 ) return this.setKP(i*-1, "[f" + (i-111) + "]");

	return this.setKP(i);
}

// define the addEvent(oElement, sEvent, sCmd, bAppend) function
function $addEvent(o, _e, c, _b){
	var e = _e.toLowerCase(), b = (typeof _b == "boolean") ? _b : true, x = (o[e]) ? o[e].toString() : "";
	// strip out the body of the function
	x = x.substring(x.indexOf("{")+1, x.lastIndexOf("}"));
	x = ((b) ? (x + c) : (c + x)) + "\n";
	return o[e] = (!!window.Event) ? new Function("event", x) : new Function(x);
}


//_____________________________________________________________________________________________________________________
// ********************************************************************************************************************
// Ajax.js
//----------------------------------------------------------------------------------------------------------------------

//----------- This function returns the xmlhttp request object. A common object wll be used for all AJAX page --------#
function getHttpRequestObject() 
{
	var httpRequest = false;
	try 
	{
		httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(ee) 
	{
		try 
		{
			httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(eee) 
		{
			httpRequest = null;
		}
	}
	if (!httpRequest && typeof XMLHttpRequest != "undefined") 
	{
		httpRequest = new XMLHttpRequest();
	}
	return httpRequest;
}
