function mname(mnameout)
{
alert(mnameout);
}
function getValues(listbox) {
var i;
ranarray.length=listbox.length-1;
for(i = 0; i < listbox.length; i++) {
ranarray[i] = listbox.options[i].text;
}
// Update the select box list.
if (listbox.name != "_ctl1:_ctl1:measures")
{
ranarray.sort();
}
updateList(listbox);
ranarray.length=0;
}
function sortlist(listbox) {
var x, y, holder;
// The Bubble Sort method.
for(x = 0; x < ranarray.length; x++) {
for(y = 0; y < (ranarray.length-1); y++) {
if(ranarray[y] > ranarray[y+1]) {
holder = ranarray[y+1];
ranarray[y+1] = ranarray[y];
ranarray[y] = holder;
}
}
}
// Update the select box list.
updateList(listbox);
}
//Hour-glass
function setPointer()
{
if (document.all)
for (var i=0;i=0; i--){
if (m1.options[i].selected == true ) {
m1.options[i] = null;
}
}
getValues(m2);
highlighttwo();
}
function Allone2two() {
m1len = m1.length ;
for ( i=0; i=0; i--){
m1.options[i] = null;
}
getValues(m2);
highlighttwo();
}
function highlighttwo() {
m2len = m2.length ;
for ( i=0; i=0; i--) {
if (m2.options[i].selected == true ) {
m2.options[i] = null;
}
}
getValues(m1);
highlighttwo();
}
function Alltwo2one() {
m2len = m2.length ;
for ( i=0; i=0; i--) {
m2.options[i] = null;
}
getValues(m1);
highlighttwo();
}
//Purpose: stops the back button from operating
javascript:window.history.forward(1);
//Purpose: Opens up a new popup window
function openPopupWindow(strURL, intWidth, intHeight, strPopupOptions)
{
var today = new Date();
var timestamp = today.getTime();
window.open(strURL,timestamp,"width="+intWidth+",height="+intHeight+","+strPopupOptions);
}
function toggleImageState(origImgID)
{
origImg = document.getElementById(origImgID);
if (origImg.src == eval(origImgID + ".src"))
newImgID = origImgID + "_on";
else
newImgID = origImgID;
//Change img src
origImg.setAttribute("src",eval(newImgID+".src"));
}
//Purpose: Opens up new browser window
function openNewBrowserWindow(strURL)
{
var today = new Date();
var timestamp = today.getTime();
window.open(strURL, timestamp, 'toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes');
}
//images rollovers
function rollImageState(imgField, newImg)
{
origImg=document.getElementById(imgField);
origImg.setAttribute("src",eval(newImg+".src"));
//if (document.images)
//{
// if (document.all)
// {
// document[imgField].src = eval(newImg + ".src")
// }
// else
// {
// document[imgField].src = eval(newImg + ".src");
// }
//}
}
//Purpose: Opens up pressroom popup window for content pieces
function loadPopUpContent(strURL)
{
var today = new Date();
var timestamp = today.getTime();
window.open(strURL,timestamp,"width=705,height=468,toolbar,status,scrollbars,menubar,resizable")
}
//images rollovers
function rollImageStateDelay(imgField, newImg)
{
setTimeout("rollImageState('" +imgField+ "', '" +newImg+ "');",1000);
}
if (document.images)
{
nav_arrow_on = new Image;
nav_arrow_off = new Image;
subnav_arrow_on = new Image;
subnav_arrow_off = new Image;
nav_arrow_on.src = "images/nav_arrow_main_section_rollover.gif";
nav_arrow_off.src = "images/spacer.gif";
subnav_arrow_on.src = "images/subnav_arrow_main_section_rollover.gif";
subnav_arrow_off.src = "images/spacer.gif";
}
function getDomObject(obj)
{
return(typeof obj == "string") ? document.getElementById(obj) : obj;
}
function toggleVisibilityStyle(obj)
{
obj= getDomObject(obj);
// obj.isVisible will be false or undefined the first time.
if(!obj.isVisible){
obj.style.visibility="visible";
obj.isVisible = true;
}
else{
obj.style.visibility="hidden";
obj.isVisible = false;
}
}
//-->
Please click here to view the recently updated Hospital Data site.