function setElementWidth(id,val){var obj=document.getElementById(id);if(obj){obj.style.width=val+"px"}}function getParseDateTime(theDateTime){var month;var year;var date;var hours;var minutes;var datePart;var timePart;var subString;var theResult;try{subString=theDateTime.split(" ");datePart=subString[0];timePart=subString[1];month=datePart.split("/")[0];date=datePart.split("/")[1];year=datePart.split("/")[2];hours=timePart.split(":")[0];minutes=timePart.split(":")[1];theResult=year*100000000;theResult=theResult+(month*1000000);theResult=theResult+(date*10000);theResult=theResult+(hours*100);theResult=theResult+minutes}catch(err){theResult=false}return theResult}function getHoldDateTime(theDateTime){var month;var year;var date;var hours;var minutes;var datePart;var timePart;var subString;var theResult=new Date(1900,0,1);subString=theDateTime.split(" ");datePart=subString[0];timePart=subString[1];month=datePart.split("-")[0];date=datePart.split("-")[1];year=datePart.split("-")[2];hours=timePart.split(":")[0];minutes=timePart.split(":")[1];theResult.setFullYear(year);theResult.setMonth(month-1);theResult.setDate(date);theResult.setHours(hours);theResult.setMinutes(minutes);theResult.setSeconds(0);return theResult}function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!="function"){window.onload=func}else{window.onload=function(){if(oldonload){oldonload()}func()}}}function dumpObj(obj,name,indent,depth){var MAX_DUMP_DEPTH=2;if(depth>MAX_DUMP_DEPTH){return indent+name+": <Maximum Depth Reached>\n"}if(typeof obj=="object"){var child=null;var output=indent+name+"\n";indent+="\t";for(var item in obj){try{child=obj[item]}catch(e){child="<Unable to Evaluate>"}if(typeof child=="object"){output+=dumpObj(child,item,indent,depth+1)}else{output+=indent+item+": "+child+"\n"}}return output}else{return obj}}function removeDecimal(value){return(value)}var rowVisible=true;function toggleDisplay(tbl){var tblRows=tbl.rows;for(i=0;i<tblRows.length-1;i++){if(tblRows[i].className!="headerRow"){tblRows[i].style.display=(rowVisible)?"none":""}}rowVisible=!rowVisible}function disableInput(theElementId){var theElement;theElement=document.getElementById(theElementId);if(theElement){theElement.disabled="disabled"}};