function VN(Netscape,Explorer){if((navigator.appVersion.substring(0,3)>=Netscape && navigator.appName=='Netscape')||(navigator.appVersion.substring(0,3)>=Explorer && navigator.appName.substring(0,9)=='Microsoft')) return true; else return false;} function openhelp(page) { var largeur=320,hauteur=400; var left=(screen.width-largeur-30),top=10; window.open("aide/"+page,"zar_help_","top="+top+",left="+left+",width="+largeur+",height="+hauteur+",scrollbars=yes,statusbar=no"); } function addressbook(formfield,cat) { var largeur=350,hauteur=400; var left=(screen.width-largeur-30),top=(screen.height-hauteur)/2; window.open("addressbook.php?ID=&formfield="+formfield+"&cat="+cat,"addressbook","top="+top+",left="+left+",width="+largeur+",height="+hauteur+",menubar=no,scrollbars=yes,statusbar=no"); } function openchat(pagepath,pagetarget) { var largeur=screen.width-150,hauteur=screen.height-100; window.open(pagepath,pagetarget,"width="+largeur+",height="+hauteur+",location=no,status=no,toolbar=no,resizable=yes"); } function NotesOpen(tablefk,fk,act,pknotes) { window.open("http://pagedeclasse.recit05.qc.ca/gestion/notes.php?ID=&act="+act+"&tablefk="+tablefk+"&fk="+fk+"&pknotes="+pknotes,"notes__"+tablefk+"_"+fk,"scrollbars=yes,statusbar=no,resizable=yes"); } function SavePosition(windowname) { var sx=window.screenLeft - 4; var sy=window.screenTop - 23; showModelessDialog("savepos.php?ID=&windowname="+windowname+"&sx="+sx+"&sy="+sy,"","status:false;dialogWidth:100px;dialogHeight:100px"); } function RatesView(pkperiods_colors) { window.open("rates.php?ID=&pkperiods_colors="+pkperiods_colors,"rates_","scrollbars=yes,statusbar=no,resizable=yes"); } function changeLocation(form,target) { var formindex=form.location.selectedIndex; if(form.location.value != ""){ target.location=form.location.options[formindex].value; return true; } return (false); } function changeLocation2(myfield,target) { var formindex=myfield.selectedIndex; if(myfield.value != ""){ target.location=myfield.options[formindex].value; return true; } return (false); } function addHTML(idname,html) { el = document.all(idname); el.innerHTML = el.innerHTML + html; } function DisplayOnCheck(chk,targetid) { obj = document.all(targetid); if( chk.checked ) { obj.style.display = 'block'; } else { obj.style.display = 'none'; } } function pwFormSubmit(theForm,action) { theForm.action=action; theForm.submitform.value=theForm.submitcode.value; }