﻿function check_password() {
    document.getElementById('password_stat').innerHtml = "aaaa";
}

var gAutoPrint = true; // Flag for whether or not to automatically call the print function

function printSpecial()
{
if (document.getElementById != null)
{
var html = '<HTML>\n<HEAD>\n<link href="/SiteData/Page.css" rel="stylesheet" type="text/css">\n<STYLE>body { background-color: white; }\n .print_header { display: block; }</STYLE>';

if (document.getElementsByTagName != null)
{
var headTags = '';
if (headTags.length > 0)
html += headTags[0].innerHTML;
}

html += '\n</HE' + 'AD>\n<BODY style="background-color: white; text-align: left;">\n';

var printReadyElem = document.getElementById("printReady");
var printReadyElem2 = document.getElementById("printReady_header");

if (printReadyElem2 != null)
{
html += printReadyElem2.innerHTML;
}

if (printReadyElem != null)
{
html += printReadyElem.innerHTML;
}
else
{
alert("Could not find the printReady section in the HTML");
return;
}

html += '\n</BO' + 'DY>\n</HT' + 'ML>';

var printWin = window.open("","printSpecial");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
if (gAutoPrint)
printWin.print();
}
else
{
alert("Sorry, the print ready feature is only available in modern browsers.");
}
}

function showmenu(menu) {  
    document.getElementById(menu).style.display = 'block';
}
function hidemenu(menu) {
    document.getElementById(menu).style.display = 'none';
}

function CheckAll(name,num) {    
    for (i=0;i<=num;i++) {
        document.getElementById(name + i).checked = true;
    }
}
