function fhsu_temp_msg(){
	//alert('Formal approval pending.  Please return on/before 15 Jul 2009.');Contract signed and details  to be posted NLT 15 July 2009
	alert('Contract with FHSU has been signed -- we expect to post degree plans NLT 15 July 2009.');
	
}

function go_now(url) {
	//alert('========= NOTE ===============\nWe are updating our programs.\n\nUntil 1 Jul 09, please go to www.JROTCCollegeCredit.com.\n\nPlease check back on 1 Jun 09');
	// after 1 Map - reactivate below
	location.href = url;
}
function zinko9(ba,aa,ap,dl,st,by){
	var a,b,c,aaa,ppp,ds,db,e
	//ba=stuff before the <at>;  //aa=stuff after the <at>;  //ap=stuff after the <period>
	//dl=text to display as link;  //st=subject in case you want to predefine it
	//by=body in case you want to predefine it
	a = '<a href=\"mai'
	c = '\">'
	aaa = '@'
	ppp = '.'
	if (st){
		ds = '?sub'
		ds += 'ject=\''
		ds += st+'\''
		} else {
		ds = ''
	}
	if (by){
		db = '&bo'
		db += 'dy=\''
		db += by+'\''
		} else {
		db = ''
	}
	a += 'lto:'
	a += ba
	a += aaa
	a += aa
	a += ppp
	a += ap
	e='</a>'
	b += aa
	b += '.'
	b += ap
	if (!dl) {
		dl = ba+aaa+aa+ppp+ap
	}
	//document.write(a+ds+db+c+dl+e)

	var zookie9 = a+ds+db+c+dl+e; 
	return zookie9;

///// *********************************////
/// -- DON'T EDIT ANYTHING ABOVE HERE ---//
///// *********************************////

// instructions - inside each '' pair in the zinko9('','','','','',''); below enter
//   first '' pair: the stuff before the <at> symbol in your email address
//   second '' pair: the stuff after the <at> symbol in your email address
//   third '' pair: the stuff after the first <period> in your email address
//   fourth '' pair: what you want as the displayed link - leave blank and your email address will be link
//   fifth '' pair: if you want to have an automatic subject - enter here - otherwise leave the ''
//   sixth '' pair: if you want to have an automatic body - enter here - otherwise leave the ''
// sample below:
// zinko9('your.name','DomainName','net','Your Name','this is the subject','this is the body');
}










function show_it(passed_div) {
	var this_div = "";
	var this_div_link = "";
	var this_div_bg_color = "";
	var all_divs = new Array(
		'all_hs',
		'ajrotc',
		'afjrotc',
		'njrotc',
		'usmcjrotc',
		'global_studies'
	);
	for (var i=0; i<all_divs.length;i++ ){
		this_div = all_divs[i]+'_courses';
		this_div_link = all_divs[i]+'_link';
		this_div_bg_color = all_divs[i]+'_bg_color';
		//alert ('bg_color for: '+this_div_bg_color+' is: '+document.getElementById(this_div_bg_color).value);


		if (passed_div != all_divs[i]){
			document.getElementById(this_div).style.display = 'none';
			//document.getElementById(this_div_link).style.color = '#ffffff';
			//document.getElementById(this_div_link).style.backgroundColor = document.getElementById(this_div_bg_color).value;
		} else {
			document.getElementById(this_div).style.display = '';
			//document.getElementById(this_div_link).style.color = '#000000';
			//document.getElementById('hs_instruction').style.display = '';
			//document.getElementById(this_div_link).style.backgroundColor = '#FEDC61';
			//document.getElementById(this_div).style.backgroundColor = '#FFF4CF';
		}
	}
}





function course_details(course_number) {
	document.getElementById('course_details').innerHTML = '<img src="images/wait6.gif" width="36" height="36" alt="wait" style="position:relative;top:14px;">&nbsp; Loading Course Information ...';

	document.getElementById('hs_course_detail_title').innerHTML = '';
	document.getElementById('hs_course_detail_credits').innerHTML = '';
	document.getElementById('course_details').style.display = '';
	document.getElementById('hs_supplemental_info').style.display = 'none';
	if(course_number == "LEAD_161") {
		document.getElementById('cof_extra').style.display = '';
	}else {
		document.getElementById('cof_extra').style.display = 'none';
		}

	xajax_course_details(course_number);
}
function get_hs_list(state_loc_id){
var state_loc = new Array(
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'10',
'11',
'12',
'13',
'14',
'15',
'16',
'17',
'18',
'19',
'20',
'21',
'22',
'23',
'24',
'25',
'26',
'27',
'28',
'29',
'30',
'31',
'32',
'33',
'34',
'35',
'36',
'37',
'38',
'39',
'40',
'41',
'42',
'43',
'44',
'45',
'46',
'47',
'48',
'49',
'50',
'51',
'52',
'53',
'54');

for (var i=0;i<state_loc.length;i++) {
	if (state_loc_id != state_loc[i]) {
		document.getElementById('hs_dd_'+state_loc[i]+'').style.display = 'none';
	} else {
		//alert('passed: '+state_loc_id+' and state_loc['+i+'] is: '+state_loc[i]);
		document.getElementById('hs_dd_'+state_loc_id+'').style.display = '';
	}
}
	document.getElementById('hs_holder').style.display = '';
	document.getElementById('chosen_state').value = state_loc_id;
	document.getElementById('chosen_state').title = state_loc_id;

	//document.getElementById('hs_list_holder').style.display="";
	//xajax_get_hs_list(state_loc_id);
}

//// new 2008 functions - for new dbase structure //////
function get_2008_course_dates(co_id){
//	alert('co_id: '+co_id);
	document.getElementById('course_dates_2008_select').innerHTML = 'Select course dates:';
	document.getElementById('course_dates_2008_dd').innerHTML = "&nbsp;&nbsp;&nbsp;getting course dates, please wait ....";
	document.getElementById('submit_step2').style.display = 'none';


	xajax_get_2008_course_dates(co_id);
}

function show_step3_button(value){
	if (value == "not_selected") {
		document.getElementById('submit_step2').style.display = 'none';
	} else {
		document.getElementById('submit_step2').style.display = '';
	}
}

function verify_match(value,id) {
	var match_id = id.substr(0,id.length-1);
	//alert('value: '+value+' ... id: '+id+' ... '+match_id+'');

	if(value != document.getElementById(match_id).value) {
		document.getElementById(id).value = '';
		document.getElementById(match_id).focus();
		document.getElementById(match_id).select();
		alert ('Please check again, '+document.getElementById(match_id).value+' doesn\'t match '+value+'...\n');
	}
}

function check_step2(main_inputs,additional_inputs,course_offering_id,course_dates,id){
	var err=0;
	var err_msg = "To continue, we need your help:\n\n========================\n\n";
	//alert(main_inputs);
	var main_inputs_values = "";
	var main_inputs_pieces = main_inputs.split("|");
	for (n in main_inputs_pieces) {
		var this_id_main = main_inputs_pieces[n];
		//alert(this_id_main);
			if (!document.getElementById(''+this_id_main+'').value) {
				err = 1;
				err_msg += " - We need the "+this_id_main+"\n\n";
			} else {
				main_inputs_values += this_id_main+"~"+document.getElementById(''+this_id_main+'').value+"|";
				// store id~value pair separated by "|" - explode in ajax php function for verification

			}
	}
	if (additional_inputs) {
		//alert(additional_inputs);
		var additional_inputs_values = "";
		var additional_inputs_pieces = additional_inputs.split("|");
		for (n in additional_inputs_pieces) {
		var this_id_add = additional_inputs_pieces[n];
		alert(this_id_add);
				if (!document.getElementById(''+this_id_add+'').value) {
					err = true;
					err_msg += " - We need the "+this_id_add+"\n\n";
				} else {
				additional_inputs_values += this_id_add+"~"+document.getElementById(''+this_id_add+'').value+"|";
				// store id~value pair separated by "|" - explode in ajax php function for verification

			}
		}
	}
	if (err) {
		alert(err_msg);
	} else {
		document.getElementById('info_verification').style.display = '';
		document.getElementById('course_offering_id').style.display = 'none';
		document.getElementById('course_dates_id').style.display = 'none';
		xajax_verify_step2_info(main_inputs_values,additional_inputs_values,course_offering_id,course_dates,id);
		//document.getElementById('step2').submit();
		//alert('we\'re clean!');
	}
}
//// end new 2008 functions ///
function do_submit(what_form){
	document.getElementById(what_form).submit();
}

function get_course_list(program){
	xajax_get_courses(program);
}
function get_course_dates(course,program){
	xajax_get_course_dates(course,program);
}

function get_call_number(course_dates,course,program){
	xajax_get_call_number(course_dates,course,program);
}

function display_verification(course_name,credit_program_id,course_dates){
	xajax_display_verification(course_name,credit_program_id,course_dates);
}
function setDisplay(id,doWhat){
	//alert('id: '+id+' doWhat: '+doWhat);
}

function ad_contactsaaa(){
	alert('******** ACTIVE DUTY MILITARY *********************\n\nPlease contact your Service POC:\n\n   - Rick Forristall (Air Force/Navy/USMC)\n\n    - Harold Tucker (Army)\n\nClick OK to go to our contact page.\n\n');
	window.location="contact.php";
}

function ad_contacts(){
	if(!confirm("******** ACTIVE DUTY MILITARY *********************\n\nPlease contact your Service POC:\n\n   - Rick Forristall (Air Force/Navy/USMC)\n\n    - Harold Tucker (Army)\n\n--------------------------------------------\n\nClick [ OK ] to go to our contact page\n\n \t~ or ~\n\n Click [ Cancel ] to go to back to registration page.\n\n") ){
		return(false);
	} else {
		setTimeout('window.location="contact.php"',200);
	}
}




function createEmailInputs(numInputs){
	var emailInputInnerHTML = '<table width="100%" cellspacing="0" cellpadding="3" border="0">';
	emailInputInnerHTML += '<tr><td colspan="2" align="left">';
	emailInputInnerHTML += 'Enter Email Address for each prospect below:<br />';
	emailInputInnerHTML += '</td></tr>';
	//alert('number Inputs: '+numInputs);
	for (var i=1;i<=numInputs ;i++ ) {
		emailInputInnerHTML += '<tr>';
		emailInputInnerHTML += '<td align="right">';
		emailInputInnerHTML += i+'.';
		emailInputInnerHTML += '</td>';
		emailInputInnerHTML += '<td align="left">';
		emailInputInnerHTML += '<input type="text" name="emailRecipient[]" size="35" id="emailRecipient'+i+'" style="margin-bottom:4px;" /><br />';
		emailInputInnerHTML += '</td>';
		emailInputInnerHTML += '</tr>';
	}
	emailInputInnerHTML += '<tr><td>&nbsp;</td><td align="left"><input type="submit" name="doEmailFunction" value="<< Send Emails >>" /><br /></td>';
	emailInputInnerHTML += '</table>';

	document.getElementById('emailInputs').innerHTML = emailInputInnerHTML;
}

function showFAQAnswer(which){
	document.getElementById(which).style.display = '';
}


function showTestimonial(show,hide){
	document.getElementById(show).style.display='';
	document.getElementById(hide).style.display='none';
}

<!-- script for expanding list of questions on home page -->
<!-- ========================== EXPANDIT by SpeckledFish ========================================= -->


function validateAForm(whatForm,detail){
	//alert('whatForm: '+whatForm+':: detail: '+detail);
	var errMsg = "To process your request, we need your help:";
	var errFound = false;
	switch (whatForm){
	case "getReportDetails":
		if (document.getReportDetails.reportDetail.value == "000000"){
			errFound = true;
			errMsg += "\n";
			errMsg += "  - Please choose the "+detail;
		}
		break;
	}
	if (errFound){
		alert(errMsg);
		return false;
	} else {
		return true;
	}
}




function goback(){
	window.open("http://www.jrotccollegecredit.com/coursehelp.php");
	self.close();
}
function showInstructions(firstTime){
	switch (firstTime){
	case "y":
		document.getElementById('instructionsYES').style.display = '';
		document.getElementById('yes').style.fontWeight = 'bold';
		document.getElementById('instructionsNO').style.display = 'none';
		document.getElementById('no').style.fontWeight = 'normal';
		break;
	case "n":
		document.getElementById('instructionsNO').style.display = '';
		document.getElementById('yes').style.fontWeight = 'normal';
		document.getElementById('instructionsYES').style.display = 'none';
		document.getElementById('no').style.fontWeight = 'bold';
		break;
	}
}

function validateForm(){
	var errMsg = "To process your request, we need your help:";
	var errFound = false;
	if (document.getElementById('fname').value == ""){
		errFound = true;
		errMsg += "\n";
		errMsg += "- Please enter your first name";
	}
	if (document.getElementById('lname').value == ""){
		errFound = true;
		errMsg += "\n";
		errMsg += "- Please enter your last name";
	}
	if (document.getElementById('email').value == ""){
		errFound = true;
		errMsg += "\n";
		errMsg += "- Please enter your email address";
	}
	if (document.getElementById('email').value != document.getElementById('v_email').value){
		errFound = true;
		errMsg += "\n";
		errMsg += "- Your emails don't match, please try again";
	}
	if (document.getElementById('phone').value == ""){
		errFound = true;
		errMsg += "\n";
		errMsg += "- Please enter your phone number";
	}
	if (document.getElementById('phone').value != document.getElementById('v_phone').value){
		errFound = true;
		errMsg += "\n";
		errMsg += "- Your phone numbers don't match, please try again";
	}

	if (document.firstTime.jrotcYN[0].checked == false && document.firstTime.jrotcYN[1].checked == false){
		errFound = true;
		errMsg += "\n";
		errMsg += "- Please indicate if you are a JROTC instructor or cadet";
	}

	if (document.firstTime.jrotcYN[0].checked == true){
		if(document.getElementById('service_id').value == "not_selected"){
			errFound = true;
			errMsg += "\n";
			errMsg += "- Please select your branch of service";
		}
	}


	if (document.getElementById('stat_loc_id').value == 'not_selected'){
			errFound = true;
			errMsg += "\n";
			errMsg += "- Please select your state or location so you can enter your high school name";
	} else {
		var state_loc_id = document.getElementById('chosen_state').value; // get state_loc_id so we can validate the applicable hs_name input id
	
		//errFound = true;
		//errMsg += "state_loc_id: "+state_loc_id;
		if(document.getElementById('hs_id_'+state_loc_id+'').value == "not_selected" ) {
				errFound = true;
				errMsg += "\n";
				errMsg += "- Please select your high school from the drop down";
		}

		if(document.getElementById('hs_id_'+state_loc_id+'').value == "MY SCHOOL IS NOT LISTED" ) {

			if(document.getElementById('hs_name_other_'+state_loc_id+'').value == "" || document.getElementById('hs_name_other_'+state_loc_id+'').value == "enter hs name") {
				errFound = true;
				errMsg += "\n";
				errMsg += "- Please type in your high school name";
			}

		}
	}





	if (errFound){
		alert(errMsg);
		return false;
	} else {
		return true;
	}
}
