function popUp(URL)
{
day = new Date();
id = day.getTime();
var pageNew = window.open(URL, id, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=480,height=540,left=160,top=200');
}
function popUpSized(URL, w, h)
{
day = new Date();
id = day.getTime();
var pageNew = window.open(URL, id, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + w + ',height=' + h + ',left=160,top=200');
}
function popUpHRA(URL)
{
day = new Date();
id = day.getTime();
var pageNew = window.open(URL, id, 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=650,height=600,left=160,top=200');
}
function printIt()
{
window.print();
}
function hideAndPrint()
{
var btn=window.document.getElementById('button1');
btn.style.visibility="hidden";
window.print();
}
function printIt(id)
{
var win;
var str='';
str = document.getElementById(id).innerHTML;
win=window.open('print.htm','ActivityPrintVersion','height=700,width=640,status=yes,scrollbars=yes');
win.document.write('<html>\n<head>\n<title>Print Version<\/title>\n');
win.document.write('<link href="stylesPrint.css" rel="stylesheet" type="text/css">\n');
win.document.write('<\/head><body>');
win.document.write('<input id="button1" type="button" onclick="this.style.display=\'none\';window.print();" value="Click to Print" NAME="button1"><BR>');
win.document.write(str);
win.document.write('<\/body>\n<\/html>');
win.document.close();
}
function showhide(id)
{
    var img = new Image();
    if (document.getElementById(id).style.display == 'block')
    {
        state = 'none';
        img.src = 'images/plus.gif'
    }
    else
    {
        state = 'block';
        img.src = 'images/dash.gif'
    }
    
    if (document.all) 
    { //IS IE 4 or 5 (or 6 beta)
        eval( "document.all." + id + ".style.display = state");
        eval( "document.all.img" + id + ".src = img.src");
    }
    if (document.layers) 
    { //IS NETSCAPE 4 or below
        document.layers[id].display = state;
        document[id].src = img.src;
    }
    if (document.getElementById && !document.all) 
    {
        document.getElementById(id).style.display = state;
        document.getElementById('img'+id).src=img.src;
    }
}