// JavaScript Document

//for pop up window to send an email of the job to a friend
function popupemail()
{
param1 = document.getElementById("title");
param2 = document.getElementById("state");
mywindow = window.open('../../../emailjob.aspx?loc='+window.location.href+'&title='+param1.value+'&state='+param2.value,'EmailReferralWindow','location=1,scrollbars=1,resizable=1,width=610,height=530');
mywindow.moveTo(100,100);
if (window.focus) {mywindow.focus()}
return false;
}

//creates the dataset for the job detail page body
<!--
var params = Spry.Utils.getLocationParamsAsObject();
var xpath = "/source/job";
if ((params.jobcode))
xpath = "/source/job[ssjobcode = '"+params.jobcode+"']";
var dsjobdetail = new Spry.Data.XMLDataSet("../../../medicaljobs.xml", xpath);
//-->