// 2.2.1 function show_props(obj, obj_name) { var result = "" for (var i in obj) result += obj_name + "." + i + " = " + obj[i] + "
\n" return result } function deleteref(AForm,ref,name) { msg='Are you sure you wish to delete "' +name+'". This can not be undone' if (window.confirm(msg)) { AForm.deleteno.value=ref AForm.update.value='3' AForm.submit() return true } return false } function changed(AForm) { AForm.changedflag.value=1 } function formreset(AForm) { AForm.reset(); AForm.changedflag.value=0; return true; } function exitpage(AForm,where) { if (AForm.changedflag.value==1) { msg='Are you sure you wish to exit? You will lose the updates you have done' if (!window.confirm(msg)) return false } AForm.update.value='1' AForm.action=where; s=where.indexOf('php',0); if (s>=0) { AForm.submit(); } else { location.href=where; } return true } function formsub(AForm) { AForm.update.value='2' AForm.submit() } function formsub_ex(AForm,update,check) { AForm.update.value=update; AForm.page.value=''; AForm.submit() } function MM_goToURL() { //v3.0 var i, args=MM_goToURL.arguments; document.MM_returnValue = false; for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'"); } function gotopage(AForm,where,check) { if (check) { if (AForm.changedflag.value==1) { msg='Are you sure you wish to exit? You will lose the updates you have done' if (!window.confirm(msg)) return false } } AForm.update.value=0; AForm.page.value=where; AForm.submit(); return true; }