function centerBody()
{
	if(navigator.userAgent.indexOf("MSIE 6") == -1)
	{
		var objRef = document.getElementById('centerwindow');
		var pageX = (document.all)?document.body.offsetWidth:window.innerWidth;
		if(pageX < 1320)
		{
			objRef.style.left	= "20px";
			objRef.style.width	= (pageX - 40) + "px";
		} else {
			objRef.style.left	= ((pageX / 2) - 640) + "px";
			objRef.style.width	= 1280;
		}
	}
}
function centerObject(objID)
{
	var pageX = (document.all)?document.body.offsetWidth:window.innerWidth;
	//var pageY = (document.all)?document.body.offsetHeight:window.innerHeight;

	var objRef = document.getElementById(objID);
	var objW = objRef.offsetWidth;
	//var objH = objRef.offsetHeight;
	objRef.style.left = ((pageX / 2) - (objW / 2)) + "px";
	//objRef.style.top = ((pageY / 2) - (objH / 2)) + "px";
}

function openWindow(url)
{
	window.open(url,"_blank","width=650,width=750,height=550,status=no,location=no,dependent=yes,scrollbars=yes");
}

function confirmWindow(message) 
{ 
	return window.confirm(message);
}

function checkUncheckAll(theElement)
{
    var theForm = theElement.form, z = 0;
	 for(z=0; z<theForm.length;z++){
     if(theForm[z].type == 'checkbox' && theForm[z].name != theElement.name)
	  theForm[z].checked = theElement.checked;
	 }
}
