//////////////////////////////////////////////
// CXD Careers related functions

function writeTemplatePrintLink(){
	// object detect on print functionality
	if(window.print && document.getElementById){
		// can print, so write the html
		var printLink = "<li><a href=\"javaScript:void(0);\" onclick=\"window.print();\">print this page<\/a><\/li>";
		var oPageTools = document.getElementById("pageToolList");
		//oPageTools.innerHTML = printLink + oPageTools.innerHTML;
		
		// we replace our placeholder with our print link
		oReg = new RegExp("<!-- print -->","ig");
		oPageTools.innerHTML = oPageTools.innerHTML.replace(oReg, printLink);
		
	}else{
		//document.write("&nbsp;");
	}
}


function writeBackLink(){
	// object detect history navigation functionality
	if(window.history){
		document.write("<ul class=\"jumpMenu\"><li><a href=\"javascript:window.history.back();\">Back to the previous page<\/a>.<\/li><\/ul>");
	}
}