var pwisIE4 = (typeof(document.all) != 'undefined' && parseInt(navigator.appVersion) >= 4 && typeof(window.opera) == 'undefined') ? 1 : 0; function pwShowObject(obj) { if(pwisIE4) { if( document.all(obj) ) document.all(obj).style.display="block"; } } function pwHideObject(obj) { if(pwisIE4) { if( document.all(obj) ) document.all(obj).style.display="none"; } } function pwDisplayAll(cName, display) { for(i=0,n=document.all.length;i < n;i++) { if (document.all[i].className.indexOf(cName) !=-1) { document.all[i].style.display = display; } } } function pwCheckAll(theForm, cName, check) { for(i=0,n=theForm.elements.length;i < n;i++) { if (theForm.elements[i].className.indexOf(cName) !=-1) { theForm.elements[i].checked = check; } } } function pwCheckCount(theForm, cName, check) { var nb=0; for(i=0,n=theForm.elements.length;i < n;i++) { if (theForm.elements[i].className.indexOf(cName) !=-1) { if( theForm.elements[i].checked == check ) nb++; } } return nb; } function pwGetFirstCheckValue(theForm, cName) { for(i=0,n=theForm.elements.length;i < n;i++) { if(theForm.elements[i].className.indexOf(cName) !=-1 && theForm.elements[i].checked == true ) { return theForm.elements[i].value; } } return false; } function pwOpenDetail(filename,targetname,w,h) { window.open(filename,targetname,'status=no,location=no,scrollbars=yes,resize=no,directories=no,toolbar=no,menubar=no,copyhistory=yes,width='+w+',height='+h); return false; } function pwChangeLocation(myfield,target) { var formindex=myfield.selectedIndex; if(myfield.value != ""){ target.location=myfield.options[formindex].value; return true; } return (false); }