function ScoreboardChangeBorder(jobtd,timetd,color) {
	the_jobtd  = document.getElementById(jobtd);
	the_timetd = document.getElementById(timetd);
	
	the_jobtd.style.borderColor = color;
	the_timetd.style.borderColor = color;
}

function Elem(theid){
	return document.getElementById(theid);
}

function loadJobDescription() {
	thisForm = document.getElementById("JobDescriptionForm");
	thisSelectedValue = thisForm.jobdescriptions_ID[thisForm.jobdescriptions_ID.selectedIndex].value;
	
	var returnText = $.ajax({ 
			url: "career_getDescription.cfm?id="+thisSelectedValue, 
			async: false 
			}).responseText;
	$('#JobDescription').html(returnText);
}

/***** ajax (Crufty for real *****/
var http = getHTTPObject(); // We create the HTTP Object
var results = "";
var msgcontainer = "";

function getHTTPObject() {
	var xmlhttp;
	/*@cc_on
	@if (@_jscript_version >= 5)
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) {
		xmlhttp = false;
		}
	}
	@else
		xmlhttp = false;
	@end @*/
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp = false;
		}
	}
	return xmlhttp;
}

function ajaxdispatch(url,this_msgcontainer,msg){
	msgcontainer = this_msgcontainer;
	http.open("GET", url, true);
	http.onreadystatechange = handleHttpResponse;
	http.send(null);

}

function handleHttpResponse() {
  if (http.readyState == 4) {
	results = http.responseText;
   document.getElementById(msgcontainer).innerHTML = results;
  }
}

function NewChangeMovie(newMovie) {
	ajaxdispatch("/videos/getFLV.cfm?Movie="+newMovie,"MovieDIV","");
}

function ChangeMovie(newMovie) {
	if (isIE) {
		if (document.getElementById("themovie")) {
			document.getElementById("themovie").stop();
			document.getElementById("themovie").fileName = "http://www.teamworkonline.com/videos/wmv/"+newMovie+".wmv";
			document.getElementById("themovie").play();
		}
		else {
			ajaxdispatch("/videos/getWMV.cfm?Movie="+newMovie,"MovieDIV","");
		}
	}
	else {
		ajaxdispatch("/videos/getMPG.cfm?Movie="+newMovie,"MovieDIV","");
	}
}