/**
 * GLOBAL vars
 */
 var bool_examselected;
var bool_datetimeselected;

/**
 * author Ed Kideys
 * functions to determine status of select options,
 * if user has selected, then enable submit button
 */
 function setexamsel() {
 	bool_examselected = true;
 	if (bool_datetimeselected) {
 		 bool_examselected =false;
 		 bool_datetimeselected=false;
 		 submit_examschedata();
 		 } 
 	}
 	
 function setdatetimesel() {
 	bool_datetimeselected=true;
 	if (bool_examselected) {
 		 bool_examselected =false;
 		 bool_datetimeselected=false;
 		 submit_examschedata();
 		 } 
 	}



/**
 * Quick code to convert month represented by an integer to the corresponding 3 letter string.<b> 
 * input parameter: integer month
 * returns: string (3 letters representing month)
 * author: Ed Kideys
 */
 function monthtostring(intmonth) {
 	var str_month;
		switch (intmonth) {
			case 0: str_month = "Jan"; break;
			case 1: str_month = "Feb"; break;
			case 2: str_month = "Mar"; break;
			case 3: str_month = "Apr"; break;
			case 4: str_month = "May"; break;
			case 5: str_month = "Jun"; break;
			case 6: str_month = "Jul"; break;
			case 7: str_month = "Aug"; break;
			case 8: str_month = "Sep"; break;
			case 9: str_month = "Oct"; break;
			case 10: str_month = "Nov"; break;
			case 11: str_month = "Dec"; break;
		}
 	return str_month;
 }
 
 		
 		 
					



