// JavaScript Document

function writeDate()
{
  today = new Date();
  caDay = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
  caMon = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");

  iDate = today.getDate();
  iDay  = today.getDay();
  iMon  = today.getMonth();
  iYear = today.getFullYear();

  document.write( caDay[iDay] + '  ' + caMon[iMon] + ', ' + iDate + ' ' + iYear );
}

function writeBanner()
{
	document.write("<MAP name=\"map1\">\n");
	document.write("<AREA shape=RECT alt=\"Organization Chart of the Utah Department of Health\" coords=573,3,662,14 href=\"http://health.utah.gov/html/div_offices.html\">\n");
	document.write("<AREA shape=RECT alt=\"General information about the Utah Department of Health\" coords=482,3,561,14 href=\"http://health.utah.gov/html/utah_doh.html\">\n");
	document.write("<AREA shape=RECT alt=\"List of important contacts in the Utah Department of Health\" coords=379,3,471,14 href=\"http://health.utah.gov/html/contact_us.html\">\n");
	document.write("<AREA shape=RECT alt=\"Alphabetical list of services, programs, and related links\" coords=283,3,372,15 href=\"http://health.utah.gov/alphalist.html\">\n");
	document.write("<AREA shape=RECT alt=\"Links to public health data sites\" coords=192,3,269,15 href=\"http://health.utah.gov/html/health_data.html\">\n");
	document.write("<AREA shape=RECT alt=\"News releases, media, marketing and public information\" coords=141,2,182,15 href=\"http://health.utah.gov/html/press_releases.html\">\n");
	document.write("<AREA shape=RECT alt=\"Utah Department of Health Internet site Home page\" coords=2,3,130,33 href=\"http://health.utah.gov/\">\n");
	document.write("<AREA shape=RECT alt=\"General Mailing Address: PO Box 141010, Salt Lake City, Utah, 84114-1010\" coords=148,22,466,31>\n");
	document.write("<AREA shape=RECT alt=\"General Phone Number: 801/538/6101\" coords=493,22,661,31>\n");
	document.write("</MAP>\n");
	document.write("<IMG src=\"http://health.utah.gov/UDOHbanner.gif\" alt=\"Internet Site navigation banner\" width=755 height=35 border=0 useMap=\"#map1\">\n");
}

function writeFooter()
{
  now = new Date();
  iYear = now.getFullYear();
  document.write( '<strong>&copy; Copyright '+ iYear + ', Utah Department of Health</strong>. All rights reserved.<br>\n');
}

function OpenPic(pic)                                                       
{                    
	var pics = true;                                      
    pics=window.open( '', 'pics', "width=640,height=479,toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,maximize=no,titlebar=no");
    //pics.moveTo(0,0);
	pics.document.write("<html><head><title></title></head>\n");
    pics.document.write("<body bgcolor='#FFFFFF' text=#FFFFFF link=#FFCC33 vlink=#CCCCCC vspace=0 hspace=0 marginheight=0 marginwidth=0 leftmargin=0 topmargin=0 onLoad=\"setTimeout('window.close()',10000)\">\n");
    pics.document.write("<script language=JavaScript>setTimeout('document.close()',1000)</script>\n");
    pics.document.write("<center><img src='"+pic+"' alt='Expanded View' border='0' width='640' height='479'></center>\n");
    pics.document.write("</body></html>");

}

function OpenDoc(url)                                                       
{                    
	var wins = true;                                      
    wins=window.open( url, 'wins', "width=640,height=480,toolbar=no,location=no,menubar=no,scrollbars=auto,resizable=yes,maximize=yes,titlebar=no");
}

