function change() {
	if(document.body.clientWidth<800) document.all.main.align="right";
	else document.all.main.align="center";
}

function CheckAll(theForm, boxname) {
    for (i=0,n=theForm.elements.length;i<n;i++)
        if (theForm.elements[i].name.indexOf(boxname) !=-1)
            theForm.elements[i].checked = true;
}

function unCheckAll(theForm, boxname) {
    for (i=0,n=theForm.elements.length;i<n;i++)
        if (theForm.elements[i].name.indexOf(boxname) !=-1)
            theForm.elements[i].checked = false;
}
