<!--//
/*********************************
Refer a Job tool
Jeff Hoffmann - Web Strategies
29-SEP-2004

Because TeamSite templates are not true 1 point change templates, making this script external gives us that true 1 point of maintenance.
Use full reference pathing, cause this is used on CEC branch, too.
*********************************/




document.write('<div style="margin:0\;padding:0\;">');
document.write('</form>');
document.write('<form action="//www.capella.edu/careers/refer_a_job/refer_a_job_form.asp" method="post" target="theTool" name="sendjob">');
document.write('<input type="hidden" name="JOB_TITLE" />');
document.write('<input type="hidden" name="JOB_URL" />');
document.write('<input type="hidden" name="SHORT_JOB_DESC" />');
document.write('</form>');
document.write('<form>');
document.write('</div>');

function RemoveHTML(strCode){ 
	var remove= /<\S[^>]*>/g; 
	strCode = strCode.replace(remove," ");
	return strCode;
}

function RaJ(){
	window.document.sendjob.JOB_URL.value=window.location.href;
	window.document.sendjob.JOB_TITLE.value = RemoveHTML(document.getElementById("job_title").innerHTML);
	window.document.sendjob.SHORT_JOB_DESC.value = RemoveHTML(document.getElementById("job_short_desc").innerHTML);
	var theTool = window.open('','theTool','width=575,height=600,resizable=yes');
	theTool.focus();
	window.document.sendjob.submit();
}


if (document.getElementById){
	document.write('<p><strong>Email this job to a friend: </strong>');
	document.write('<a href="javascript:RaJ()\;"><img src="//www.capella.edu/img/btn_email.gif" width="93" height="15" border="0" align="top" /></a>');
	document.write('</p>');
}




//-->


