function popup(sURL,iHeight,iWidth,bStatus,bDependent,bScroll,bResize,bToolbar,bMenubar,bLocation,sWindowName){var undf='undefined';if(typeof(iHeight)==undf)iHeight=400;if(typeof(iWidth)==undf)iWidth=666;if(typeof(bStatus)==undf)bStatus='no';if(typeof(bDependent)==undf)bDependent='no';if(typeof(bScroll)==undf)bScroll='yes';if(typeof(bResize)==undf)bResize='yes';if(typeof(bToolbar)==undf)bToolbar='no';if(typeof(bMenubar)==undf)bMenubar='no';if(typeof(bLocation)==undf)bLocation='no';if(typeof(sWindowName)==undf)sWindowName='Popup';var popupWindow;popupWindow=window.open(sURL,sWindowName,'height='+iHeight+',width='+iWidth+',status='+bStatus+',dependent='+bDependent+',scrollbars='+bScroll+',resizable='+bResize+',toolbar='+bToolbar+',menubar='+bMenubar+',location='+bLocation);if(sWindowName!=0)popupWindow.focus();}function checkAll(check,name){var form=check.form,check=check.checked;var i,e;for(i=0;i<form.elements.length;i++){e=form.elements[i];if((e.name==name)&&(e.type=='checkbox')){if(!e.disabled)e.checked=check;}}}function buildDate(date){return(date.getMonth()+1)+'/'+date.getDate()+'/'+date.getYear()+' '+date.getHours()+':'+date.getMinutes()+':'+date.getSeconds();}
