// Miscellaneous core Javascript functions for Moodle function popupchecker(msg) { var testwindow = window.open('itestwin.html', '', 'width=1,height=1,left=0,top=0,scrollbars=no'); if (testwindow == null) {alert(msg);} else { testwindow.close(); } } /* function popUpProperties(inobj) { /// Legacy function var op = window.open(); op.document.open('text/plain'); for (objprop in inobj) { op.document.write(objprop + ' => ' + inobj[objprop] + '\n'); } op.document.close(); } function fillmessagebox(text) { /// Legacy function document.form.message.value = text; } function copyrichtext(textname) { /// Legacy stub for old editor - to be removed soon return true; } */ function checkall() { var el = document.getElementsByTagName('input'); for(var i=0; i