
function showJobs()
{
  var e=document.getElementById("jobType");
  var url = "http://www.highlinemedicalcenter.com/" + e.options[e.selectedIndex].value +".htm";
  document.location=url;
}

function showConstructionPage()
{
	hideConstruction();
	hideMeetERPatients();
	hideNewPatientCareUnit();
	
	var page = "<div style='background-color:#fff;border:1px solid #666;width:100%;height:100%;'><p><a href='javascript:hideConstruction();'>close</a></p><p align='left'><img src='images/Construction_header.jpg' border='0' /></p><table width='45%' border='0' cellspacing='17'><tr><td><h1 style='padding-left:0px;'>During Construction, Here&#39;s<br>How to Access Services</h1><p>While we&#39;re building a healthier future for our community, we&#39;ll also be re-routing traffic. During construction, the ONLY way to access the Emergency Room will be from 8th Avenue, on the west side of our campus. You can no longer drive to the ER from the main medical center entrance on Sylvester Road. The good news: once you get to the ER we&#39;ll make it as convenient as possible, with free valet parking (for ER patients only, please).</p></td></tr><tr><td><img src='images/er_map.jpg' border='0' /></td></tr><tr><td><hr /></td></tr><tr><td><h2>Not Sure If You Need To Go To The ER?</h2><p><b>Call our free nurse consulting line, 24-NURSE (206-246-8773).</b></p></td></tr></table></div>";
	document.getElementById('ConstructionPage').innerHTML =page;
	document.getElementById('ConstructionPage').style.visibility = 'visible';

}
function hideConstruction()
{
	document.getElementById('ConstructionPage').style.visibility = 'hidden';
}
function showMeetERPatients()
{
	var page = "<div style='background-color:#fff;border:1px solid #666;'><p><a href='javascript:hideMeetERPatients();'>close</a></p><p align='left'><img src='images/Patient_stories_header.gif' border='0' /></p><table width='50%' border='0' cellspacing='17'><tr><td colspan='4'><p>At Highline, we are dedicated to providing fast, state-of-the-art emergency care to our community. You never know when an emergency might strike you or someone you love. If it does, we&#39;ll be there for you. Just ask our patients.</p></td></tr><tr><td colspan='4'>&nbsp;</td></tr><tr><td width='20%' valign='top'><img src='images/patient_john.jpg' border='0' /></td><td width='5%'>&nbsp;</td><td width='70%' valign='middle'><p style='width:300px'><i style='color: #004b83; font: 20px/22px Times, Arial, Helvetica, Verdana, sans-serif; font-style: italic; font-weight: bold;'>&#34;I knew I was in trouble. I needed help fast. I am very grateful that Highline was so close.&#34;</i><br><br><a href=''>Read John&#39;s story...</a></p></td><td width='5%'>&nbsp;</td></tr><tr><td colspan='4'><hr /></td></tr><tr><td width='20%'  valign='top'><img src='images/patient_wendy.jpg' border='0' /></td><td width='5%'>&nbsp;</td><td width='70%' valign='middle'><p><i style='color: #004b83; font: 20px/22px Times, Arial, Helvetica, Verdana, sans-serif; font-style: italic; font-weight: bold;'>&#34;Accidents happen with children. As a mom, it is very reassuring to know that Highline is right here.&#34;</i><br><br><a href=''>Read Wendy&#39;s story...</a></p></td><td width='5%'>&nbsp;</td></tr><tr><td colspan='4'><hr /></td></tr><tr><td width='20%' valign='top'><img src='images/patient_russ.jpg' border='0' /></td><td width='5%'>&nbsp;</td><td width='70%' valign='middle'><p><i style='color: #004b83; font: 20px/22px Times, Arial, Helvetica, Verdana, sans-serif; font-style: italic; font-weight: bold;'>&#34;It was amazing how fast the infection spread. Without the expert care I recieved at Highline, I&#39;m not sure I&#39;d be here today.&#34;</i><br><br><a href=''>Read Russ&#39;s story...</a></p></td><td width='5%'>&nbsp;</td></tr></table></div>";		
	document.getElementById('MeetERPatients').innerHTML =page;
	document.getElementById('MeetERPatients').style.visibility = 'visible';
}
function hideMeetERPatients()
{
	document.getElementById('MeetERPatients').style.visibility = 'hidden';
}
function showNewPatientCareUnit()
{
	var page = "<div style='background-color:#fff;border:1px solid #666;'><p><a href='javascript:hideNewPatientCareUnit();'>close</a></p><p align='left'><img src='images/Patient_care_header.jpg' border='0' /></p><table width='45%' border='0' cellspacing='17'><tr><td colspan='3'><img src='images/Patient_care_img.gif' border='0' /></td></tr><tr><td colspan='3'><p>Construction is under way on a new three-story building on our main campus, which will house a new state-of-the-art ER and patient care unit. When complete in 2010, the new ER will tripple capacity of the current facility and offer the latest advances in medical and communication technologies:</p></td></tr><tr><td width='45%'><ul><li>32 large private treatment rooms, each universally equipped to handle any emergency, and with space for family members to stay with the patient<li>Three triage rooms with bedside registration<li>Private family consultation room<li>Dedicated decontamination room for disasters<li>Fully integrated diagnostic imaging within the ER</ul></td><td width='10%'>&nbsp;</td><td width='45%'><ul><li>Efficient electronic medical records at both bedside and patient registration<li>Sophisticated electronic patient tracking system that lets staff easily monitor how long the patient has been in the ER and the status of diagnostic tests<li>Separate family waiting area<li>Private triage and admitting areas, to protect confidentiallity<li>Convenient free parking and easy drop-off</ul></td></tr><tr><td colspan='3'><a href=''>Construction Update</a><br><a href=''>Campaign For a New ER</a><br><a href=''>Meet our ER Patients</a></td></tr></table></div>";	
	document.getElementById('NewPatientCareUnit').innerHTML =page;
	document.getElementById('NewPatientCareUnit').style.visibility = 'visible';
}
function hideNewPatientCareUnit()
{
	document.getElementById('NewPatientCareUnit').style.visibility = 'hidden';
}
/**/

	function showCal(cal) {
		var currentDate = new Date();
		var month = currentDate.getMonth() + 1;
		if (cal){
			cal = 'HR_';
		} else cal = '';
		var path = "../" + cal + "Class_Calendar.htm?month=" + month;
		document.location=path;
	}



  function mailForm(subject, from, to, form, redirectURL)
  {
    var tx = "";
    tx += "<dv:transaction xmlns:dv=\"http://schemas.flyingmachine.com/dv\">";
    tx += "<dv:request>";
    tx += "<dv:action>SEND-FORM</dv:action>";
    tx += "<dv:request-data>";
    tx += "<dv:subject>" + subject + "</dv:subject>";
    tx += "<dv:mail-from>" + from + "</dv:mail-from>";
    tx += "<dv:mail-to>" + to + "</dv:mail-to>";
    
    tx += formToXml(form);
  
    tx += "</dv:request-data>";
    tx += "</dv:request>";
    tx += "</dv:transaction>";

    if (window.XMLHttpRequest)
    {
      xmlHttpRequest = new XMLHttpRequest();
    }
    else if (window.ActiveXObject)
    {
      xmlHttpRequest = new ActiveXObject("Msxml2.XMLHTTP");
    }
    
    var postData = "tx=" + escape(tx)
    postData=postData.replace(/\+/g,"%2B");

    xmlHttpRequest.open("POST", "dv.php", false);
    xmlHttpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
    xmlHttpRequest.send(postData);
	
 	  document.location=redirectURL;
    
  }
  
  function formToXml(form)
  {
    var xml="";
    xml += "<dv:form>";
    for(var n= 0;n < form.elements.length;n++)
    {
      var e=form.elements[n];
      if(e.type != 'submit' && e.type != 'reset' && e.type != 'button')
      {
        xml += "<dv:form-element name=\"" + e.name + "\"><![CDATA[" + e.value + "]]></dv:form-element>";
      }
    }
    xml += "</dv:form>";
    return xml;
  }