<!--
// JavaScript Document
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function openWindow(windowURL, windowWidth, windowHeight)
{
	// for centering the popup
	var winleft = (screen.width - windowWidth) / 2;
	var winUp = (screen.height - windowHeight) / 2;
	
	window.open(windowURL, "Content", "width=" + parseInt(windowWidth) + ",height=" + parseInt(windowHeight) + ",left=1,top=1,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,titlebar=0");
}

function openWindow2(windowURL, windowWidth, windowHeight)
{
	// for centering the popup
	var winleft = (screen.width - windowWidth) / 2;
	var winUp = (screen.height - windowHeight) / 2;
	
	window.open(windowURL, "Content", "width=" + parseInt(windowWidth) + ",height=" + parseInt(windowHeight) + ",left=1,top=1,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,titlebar=0");
}		

function openAbstract(windowURL, windowWidth, windowHeight)
{
	// for centering the popup
	var winleft = (screen.width - windowWidth) / 2;
	var winUp = (screen.height - windowHeight) / 2;
	
	window.open(windowURL, "Abstract", "width=" + parseInt(windowWidth) + ",height=" + parseInt(windowHeight) + ",left=1,top=1,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0,titlebar=0");
}
function openWindowCenter(windowURL, windowWidth, windowHeight)
{
	// for centering the popup
	var winLeft = (screen.width - windowWidth) / 2;
	var winUp = (screen.height - windowHeight) / 2;
	
	window.open(windowURL, "Content", "width=" + parseInt(windowWidth) + ",height=" + parseInt(windowHeight) + ",left=" + winLeft + ",top=" + winUp + ",menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,titlebar=0");
}




function messageBox()
{
    this.message = "";
    this.buttons = "";
    this.contentArea = document.createElement('div');
    this.contentArea.id = "divMessageBoxContent";
    this.contentArea.className = "text";
    this.button1Action = null;
    this.button2Action = null;
    this.butotn3Action = null;
    this.show = function()
    {
        var body = document.getElementsByTagName("body")[0];
        var messageDiv = document.createElement('div');
        messageDiv.id="divMessageBox";
        messageDiv.style.position = "fixed";
        messageDiv.style.left = "100px";
        messageDiv.style.top = "300px";
        messageDiv.style.zIndex = "10000000";
    
        var msgTable1 = document.createElement('table');
        msgTable1.border = "0";
        msgTable1.style.backgroundColor = "White";
        msgTable1.align = "center";
        msgTable1.cellSpacing = "0";
        msgTable1.cellPadding = "0";
        msgTable1.width = "400";
        var msgTable1_tr1 = document.createElement('tr');
        var msgTable1_tr1_td1 = document.createElement('td'); 
        msgTable1_tr1_td1.height = "5";
        msgTable1_tr1_td1.colSpan = "3";
    
        var msgTable1_tr2 = document.createElement('tr');
        var msgTable1_tr2_td1 = document.createElement('td');
        msgTable1_tr2_td1.width = "5";
        var msgTable1_tr2_td2 = document.createElement('td');
        msgTable1_tr2_td2.width = "390";
        var msgTable1_tr2_td3 = document.createElement('td');
        msgTable1_tr2_td3.width = "5";
    
        var msgTable1_tr3 = document.createElement('tr');   
        var msgTable1_tr3_td1 = document.createElement('td');
        msgTable1_tr3_td1.height = "5";
        msgTable1_tr3_td1.colSpan = "3";
    
    
        var msgTable2 = document.createElement('table');
        //msgTable2.width = "400";
        msgTable2.width = "100%";
        msgTable2.cellSpacing = "0";
        msgTable2.cellPadding = "0";
        msgTable2.border = "0";
        msgTable2.style.backgroundColor = "#115837";
        msgTable2.align = "center";
        var msgTable2_tr1 = document.createElement('tr');
        var msgTable2_tr1_td1 = document.createElement('td');
        msgTable2_tr1_td1.height = "2";
        msgTable2_tr1_td1.width = "390";
        msgTable2_tr1_td1.colSpan = "3";
        msgTable2_tr2 = document.createElement('tr');
        var msgTable2_tr2_td1 = document.createElement('td');
        msgTable2_tr2_td1.width = "2";
        msgTable2_tr2_td1.style.backgroundColor = "#115837";
        //msgTable2_tr2_td1.innerHTML = '<img hspace="0" height="5" width="1" vspace="0" border="0" alt="American Association for Laboratory Animal Science" src="/images/aalas_spacer.gif"/>';
        var msgTable2_tr2_td2 = document.createElement('td');
        msgTable2_tr2_td2.width = "386";
        msgTable2_tr2_td2.valign = "top";
        var msgTable2_tr2_td2_table3 = document.createElement('table');
        msgTable2_tr2_td2_table3.width = "100%";
        msgTable2_tr2_td2_table3.height = "100%";
        msgTable2_tr2_td2_table3.style.backgroundColor = "White";
        var msgTable2_tr2_td2_table3_tr1 = document.createElement('tr');
        var msgTable2_tr2_td2_table3_tr1_td1 = document.createElement('td');
        var msgTable2_tr2_td3 = document.createElement('td');
        msgTable2_tr2_td3.width = "2";
        msgTable2_tr2_td3.style.backgroundColor = "#115837";
        var msgTable2_tr3 = document.createElement('tr');
        var msgTable2_tr3_td1 = document.createElement('td');
        msgTable2_tr3_td1.height = "2";
        msgTable2_tr3_td1.width = "390";
        msgTable2_tr3_td1.colSpan = "3";
        body.appendChild(messageDiv);
        messageDiv.appendChild(msgTable1);
    
        msgTable1.appendChild(msgTable1_tr1);
        msgTable1.appendChild(msgTable1_tr2);
        msgTable1.appendChild(msgTable1_tr3);
        msgTable1_tr1.appendChild(msgTable1_tr1_td1);
        msgTable1_tr2.appendChild(msgTable1_tr2_td1);
        msgTable1_tr2.appendChild(msgTable1_tr2_td2);
        msgTable1_tr2.appendChild(msgTable1_tr2_td3);
        msgTable1_tr3.appendChild(msgTable1_tr3_td1);
        msgTable1_tr2_td2.appendChild(msgTable2);
    
        msgTable2.appendChild(msgTable2_tr1);
        msgTable2.appendChild(msgTable2_tr2);
        msgTable2.appendChild(msgTable2_tr3);
        msgTable2_tr1.appendChild(msgTable2_tr1_td1);
        msgTable2_tr2.appendChild(msgTable2_tr2_td1);
        msgTable2_tr2.appendChild(msgTable2_tr2_td2);
        msgTable2_tr2.appendChild(msgTable2_tr2_td3);
        msgTable2_tr2_td2.appendChild(msgTable2_tr2_td2_table3);
        msgTable2_tr2_td2_table3.appendChild(msgTable2_tr2_td2_table3_tr1);
        //msgTable2_tr2_td2_table3_tr1.appendChild(contentArea);
        msgTable2_tr2_td2_table3_tr1.appendChild(msgTable2_tr2_td2_table3_tr1_td1);
        msgTable2_tr2_td2_table3_tr1_td1.appendChild(this.contentArea);
        msgTable2_tr3.appendChild(msgTable2_tr3_td1);
        this.contentArea.innerHTML = this.message;
   
        var btn1;
        var btn2;
        var btn3;
        var divButtons = document.createElement('div');
        divButtons.align = "center";
        msgTable2_tr2_td2_table3_tr1_td1.appendChild(divButtons);
        switch(this.buttons)
        {
            case "OK":
                btn1 = this.createButton1("OK");
                divButtons.appendChild(btn1);
                break;
            case "OKCancel":
                btn1 = this.createButton1("OK");
                btn2 = this.createButton2("Cancel");
                divButtons.appendChild(btn1);
                divButtons.appendChild(btn2);
                break;
            case "YesNo":
                btn1 = this.createButton1("Yes");
                btn2 = this.createButton2("No");
                divButtons.appendChild(btn1);
                divButtons.appendChild(btn2);
                break;
            default:
                btn1 = document.createElement('input');
                btn1.type = "button";
                btn1.value = "OK";
                divButtons.appendChild(btn1);
                break;
        }
    };
    this.updateMessage = function(strMessage){this.message = strMessage;this.contentArea.innerHTML = strMessage;};
    this.createButton1 = function(strValue)
    {
        var btn = document.createElement('input');
        btn.type = "button";
        btn.value = strValue;
        if (this.button1Action != null)
        {
           btn.onclick = this.button1Action;
        }
        btn.messageBoxClass = this;
        return btn;
    };
    this.createButton2 = function(strValue)
    {
        var btn = document.createElement('input');
        btn.type = "button";
        btn.value = strValue;
        if (this.button2Action != null)
        {
           btn.onclick = this.button2Action;
        }
        return btn;
    };
    this.createButton3 = function(strValue)
    {
        var btn = document.createElement('input');
         btn.type = "button";
         btn.value = strValue;
         if (this.button3Action != null)
         {
            btn.onclick = this.button3Action;
         }
         return btn;
    };
}
function showMessageBox(strMessage, strButtons, btn1Action, btn2Action, btn3Action)
{
    var mBox = new messageBox();
    mBox.message = strMessage;
    mBox.buttons = strButtons;
    mBox.button1Action = btn1Action;
    mBox.button2Action = btn2Action;
    mBox.button3Action = btn3Action;
    mBox.show();
    
}
-->
