function invalidcheck() {

}
	


function checkForm()
{

	//validate zip
	if (validate_zip() == false)
	{
		document.getElementById('basic_info').style.display = 'block';
		document.Entry.zip.focus();
		invalidPop('invalid_zip');
		return false;
	}
	
	//Program checker			
	if ((document.Entry.program.options[document.Entry.program.selectedIndex].value=="0"))
	{
		alert("\nYou must select a program.");
		document.Entry.program.focus();
		return false;
	} 
	

	//check the basic info
	var state = CheckBasicInfo();
	if(state == false) {
		return false;
	}
	
	//check graduation date
	if (document.Entry.graddate.value == "")
	{
		alert("Please enter a graduation date.");
		return false;
	}
	
	var regExp = /(0[1-9]|1[012])[/](0[1-9]|[12][0-9]|3[01])[/](19|20)\d\d/g
	//if (regExp.test(document.Entry.graddate.value))
	if (!document.Entry.graddate.value.match(regExp))
	{
		//alert(document.Entry.graddate.value.match(regExp));
		alert('Please enter a graduation date in the following format:\n MM/DD/YYYY\n\nExample:06/01/2001');
		return false;
	}	

	if ( invalidcheck() == false ) { return false; } 
	


setBool();

// Pressnall Dupe Stopper
if ( typeof ( formSubmission ) == "number" ){
      return false;
	}
formSubmission = 1;
}


















var hidden_questions_prev = 0;

function changefocus(focustype) {
	if (focustype == "alert")
	{
		focusclass = 'focusalert';
	} else {
		focusclass = 'focuslight';
	}
	
	if (document.Entry.program.value == 0)
		{
			document.getElementById('f_program').className=focusclass;
			document.getElementById('f_zip').className='unfocuslight';
			document.getElementById('f_contact').className='unfocuslight';
		} else if (document.Entry.program.value != 0  && document.Entry.zip.value.length < 5) {
			document.getElementById('f_program').className='unfocuslight';
			document.getElementById('f_zip').className=focusclass;
			document.getElementById('f_contact').className='unfocuslight';
		}
		 else if (document.Entry.program.value != 0 && document.Entry.zip.value != '')
		{
		  document.getElementById('f_program').className='unfocuslight';
		  document.getElementById('f_zip').className='unfocuslight';
		  document.getElementById('f_contact').className=focusclass;
		}
}

function changeDetails() {
	if (document.Entry.program.value == 0) {
	updateDetails('default_details');
	}
	else {
	var lookid = document.Entry.program.value;
	lookid = "d_" + document.Entry.program.value;
	updateDetails(lookid);
	}
}
// Switch the graphics.... graphics will have to be created 
// update your cases accordingly and name your images/graphic_file.jpg / gifs accordingly.
// See default case for the default graphic.
function updateDetails(textid) {
	if (current_details != textid)
	{
	switch (textid)
	{
		case 'd_Information Technology Emphasis in Network Management/Microsoft, B.S.':
			document.images["img1"].src = "images/degrees_tech.jpg";
			break;
		// This is the default top right graphic, even if you remove all the cases above
		// and don't swap out the grahics, you'll at least need this default....
		default:
			document.images["img1"].src = "images/degrees_default.jpg";
		break;
	}
	/*
		#########################################################################################
		### Smitty Fade control. You should not have to modify this but you may have to modify
		### the colors outlined below for degree_info3 / degree_info2 / degree_info3
		### to have the appropriate blend look good for your form colors.
		#########################################################################################
	*/
	document.getElementById('degree_details').innerHTML=document.getElementById(textid).innerHTML;
	resetDegreeLinks('c_' + textid);
	document.getElementById('degree_details').className='degree_info4';
		setTimeout("document.getElementById('degree_details').className='degree_info3'",200);
		setTimeout("document.getElementById('degree_details').className='degree_info2'",250);
		setTimeout("document.getElementById('degree_details').className='degree_info'",300);
	current_details=textid;
	updateDetails(textid);
	}
}
function selectProgram(program_id) {
	if (program_id != document.Entry.program.value)
	{
		document.Entry.program.value = program_id;
		resetDegreeLinks('c_d_' + program_id);
		document.Entry.zip.focus();
		changefocus('focuslight');
	}
	
}
var current_details = 0;
