function toggle(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}


function show(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = "block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = "block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = "block";
}
}


function hide(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = "";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = "";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = "";
}
}

function showPopUp1(url, name, attribute)
    {	
	    //if (popUp != null)
	    //	popUp.close();
	    popUp = window.open(url, name, attribute);
	    popUp.focus();
	    //setTimeout('popUp.focus();', 1000)"
    }    

function CheckAll( checkAllBox )
{
    var frm = document.form1;                               
    var ChkState=checkAllBox.checked;
    for(i=0;i< frm.length;i++)
    {
        e=frm.elements[i];
        
        if(e.type=='checkbox' && e.name.indexOf('cbxOrder') != -1)
            e.checked= ChkState;
    }
}