function checkUncheckAll(theElement) {
	var theForm = theElement.form, z = 0;
	for(z=0; z<theForm.length;z++) {
		if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall') {
		theForm[z].checked = theElement.checked;
		}
	}
}

function checkUncheckAll2(theElement, chcked) {
	var z = 0;
	var theForm = theElement.getElementsByTagName('input');
	for(z=0; z<theForm.length;z++) {
		if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall') {
		theForm[z].checked = chcked;
		}
	}
}

function $2(id, doc)
{
    if(doc == null){
        if(document.getElementById){ return document.getElementById(id); }
        else if(document.all){ return document.all(id); }
    } else {
        if(doc.getElementById){ return doc.getElementById(id); }
        else if(doc.all){ return doc.all(id); }
    }
}

