<!-- 	
// by Nannette Thacker
// http://www.shiningstar.net
// This script checks and unchecks boxes on a form
// Checks and unchecks unlimited number in the group...
// Pass the Checkbox group name...
// call buttons as so:
// <input type=button name="CheckAll"   value="Check All"
	//onClick="checkAll(document.myform.list)">
// <input type=button name="UnCheckAll" value="Uncheck All"
	//onClick="uncheckAll(document.myform.list)">
// -->

<!-- Begin
function checkAll()
{
    with (document.usersettingsform) {
        for (var i=0; i < elements.length; i++) {
            if (elements[i].type == 'checkbox' && elements[i].name == 'gl_blocks[]')
            elements[i].checked = true;
        }
    }
}

function uncheckAll()
{
    with (document.usersettingsform) {
        for (var i=0; i < elements.length; i++) {
            if (elements[i].type == 'checkbox' && elements[i].name == 'gl_blocks[]')
            elements[i].checked = false;
        }
    }
}


function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=420, height=60,left = 490,top = 392');");
}
var popupHandle;
function closePopup() {
if(popupHandle != null && !popupHandle.closed) popupHandle.close()
}
// End -->


//  End -->