function addToNotepad(Key) { var Keys = ""; Keys = readCookie("NotepadIDs"); if(Keys == null) document.cookie = "NotepadIDs=" + escape(Key) + "; path=/"; else document.cookie = "NotepadIDs=" + Keys + "," + escape(Key) + "; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function openNotepad(URL) { PopUp(URL,'720','558'); } function openNotepadPassthrough(URL) { var Keys = ""; Keys = readCookie("NotepadIDs"); URL = URL + "&NotepadIDs=" + Keys; window.location.href = URL; } function removeNotepadEntrys() { var Keys = ""; var newKeys = new Array(); var cdx = 0; var f = document.forms[0]; if(f["K0"] == null) return false; Keys = readCookie("NotepadIDs"); Selections = Keys.split(","); for(idx = 0; idx < Selections.length; idx++) { if( ! f["K" + idx].checked) { newKeys[cdx] = Selections[idx]; cdx++; } } Keys = newKeys.join(",") document.cookie = "NotepadIDs=" + Keys + "; path=/"; window.location.reload(); opener.location.reload(); } function showNotepad() { document.cookie = "NotepadVisible=1; path=/"; MM_changeProp('notepadHidden','','style.display','none','DIV'); MM_changeProp('notepadShow','','style.display','inline','DIV');; } function hideNotepad() { MM_changeProp('notepadHidden','','style.display','inline','DIV'); MM_changeProp('notepadShow','','style.display','none','DIV'); document.cookie = "NotepadVisible=0; path=/"; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i