// clears the check of an element in a form
function clearCheck(formName, elementName) {
	document.forms[formName].elements[elementName].checked = false;
}

// toggles a check in a form
function toggleCheck(formName, elementName) {
	document.forms[formName].elements[elementName].checked = 
	!(document.forms[formName].elements[elementName].checked);
}

function OpenWindow(URL,Name,features, wWidth, wHeight, wCenter) { //v3.0
  if(window.screen)if(wCenter)if(wCenter=="true"){
    var wLeft = (screen.width-wWidth)/2;
    var wTop = (screen.height-wHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+wLeft+',top='+wTop;
  }
  window.open(URL,Name,features+((features!='')?',':'')+'width='+wWidth+',height='+wHeight);
}