function show(object) {
    if (document.getElementById && document.getElementById(object) != null)
         node = document.getElementById(object).style.visibility='visible';
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'visible';
    else if (document.all)
        document.all[object].style.visibility = 'visible';
}

function hide(object) {
    if (document.getElementById && document.getElementById(object) != null)
         node = document.getElementById(object).style.visibility='hidden';
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'hidden';
    else if (document.all)
         document.all[object].style.visibility = 'hidden';
}

function defocus(x) { 
if (navigator.appName == 'Microsoft Internet Explorer' || document.all) x.blur(); 
}

function ViewImage(ifile,ix,iy) {
var win; 
win = window.open("","_blank","width="+ix+",height="+iy+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no");
win.document.open();
win.document.write("<html>\n\n<head>\n<title>ACG</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/common/css/format.css\"><script language=\"javascript\" src=\"/common/scripts/functions.js\"></script>\n</head>\n\n<body bgcolor=\"White\" background=\"/common/images/bg.gif\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\" leftmargin=\"0\" onload=\"hide('loading');\">\n<div id=\"loading\" style=\"position:absolute; top:10px; left:10px;\"><img src=\"/common/images/loading.gif\"></div>\n<center><img src=\""+ifile+"\" width=\""+ix+"\" height=\""+iy+"\"></center>\n<div style=\"position:absolute; top:10px; left:10px;\" class=\"closewindow\"><a href=\"javascript: self.close()\" class=\"closewindow\">Close Window</a></div>\n</body>\n\n</html>\n");
win.document.close();
}

