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=450,hauteur=450; var left=(screen.width-largeur-30),top=10; window.open(page,"help_","top="+top+",left="+left+",width="+largeur+",height="+hauteur+",scrollbars=yes,statusbar=no"); } function NotesOpen(tablefk,fk,act,pknotes) { window.open("http://cegepsherbrooke.qc.ca/intra2/cm/gestion/notes.php?ID=&act="+act+"&tablefk="+tablefk+"&fk="+fk+"&pknotes="+pknotes,"notes__"+tablefk+"_"+fk,"width=540,height=500,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 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 HideOnCheck(chk,targetid) { obj = document.all(targetid); if( chk.checked ) { obj.style.display = 'none'; } else { obj.style.display = 'block'; } }