/*
 * SDollani
 * 11-09-2007
 */
function disableGroup(formName, groupId, booleanDisabled) {

  for (var i=0; i<formName.elements.length; i++) {
    if (formName.elements[i].id == groupId) {
      formName.elements[i].disabled = booleanDisabled;
      formName.elements[i].className = (booleanDisabled)?"disabled":"";
      formName.elements[i].checked = false;
    }
  }
}

function isMaxLength(obj, maxLength){

	if (obj.getAttribute && obj.value.length>maxLength){
		//alert("is over max length");
		obj.value=obj.value.substring(0,maxLength);
	}

}

function printDocument(){
	if (!window.print) {
		vbPrintPage();
	}
	else {
		window.print();
	}
}

//Note: printDocument() - Requires the following inline vbscript
/*
<script language="VBScript" type="text/vbscript">
	Sub vbPrintPage()
		OLECMDID_PRINT = 6
		OLECMDEXECOPT_DONTPROMPTUSER = 2 
		OLECMDEXECOPT_PROMPTUSER = 1
		On Error Resume Next
		WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER
	End Sub
</script>

*/