function doLoad() {
	var thisDate = new Date();
	var dayOfWeek = getDayOfWeek(thisDate.getDay());
	var dateOfMonth = getDateOfMonth(thisDate.getDate());
	var monthOfYear = getMonthOfYear(thisDate.getMonth());
	var datePanel = document.getElementById("currrentDate");
	
	datePanel.innerHTML = dayOfWeek + " " + dateOfMonth + " " + monthOfYear + " " + thisDate.getFullYear();
}

function getDayOfWeek(theDay) {
	switch (theDay) {
		case 0: return "Sunday";
		case 1: return "Monday";
		case 2: return "Tuesday";
		case 3: return "Wednesday";
		case 4: return "Thursday";
		case 5: return "Friday";
		case 6: return "Saturday";
	}
}

function getDateOfMonth(theDate) {
	if (theDate == 1) {
		return theDate + "st";
	} else if (theDate < 3) {
		return theDate + "nd";
	} else {
		return theDate + "th";
	}
}

function getMonthOfYear(theMonth) {
	switch (theMonth) {
		case 0: return "January";
		case 1: return "February";
		case 2: return "March";
		case 3: return "April";
		case 4: return "May";
		case 5: return "June";
		case 6: return "July";
		case 7: return "August";
		case 8: return "September";
		case 9: return "October";
		case 10: return "November";
		case 11: return "December";
	}
}


function onRollOver(img_obj){
	img_obj.src = img_obj.src.split("-off").join("-on");
}

function onRollOut(img_obj){
	img_obj.src = img_obj.src.split("-on").join("-off");	
}  


function e(id){return document.getElementById(id);}

 var str_active_tab_id = "";  
  function hilightTab(str_id){
	if (e(str_id)){
		e(str_id).src = e(str_id).src.split("-off").join("-on");			
		str_active_tab_id = str_id
	}
  }
  
  
  function rollTab(obj, is_in){
	if (is_in){
		onRollOver(obj);
		
	} else if (obj.id != str_active_tab_id ){
		onRollOut(obj);
	}	
  }

// onMouseOver="onRollOver(this);" onMouseOut="onRollOut(this)"

function openApplyOnlinePopup(obj_anchor){
					
	var new_win = window.open(obj_anchor.href,'apply_online','width=475,height=600,resizable=yes,scrollbars=yes,left='+String((screen.width-475)/2)+',top='+ String((screen.height-600)/2) ); 
	if (new_win) { 
		new_win.focus(); 
		return false; 
	} else {
		return true; 							
	}
	
}