function runContest(){ cookie = document.cookie; s = cookie.indexOf("PopContestWindow"); if(s < 0) { document.cookie = "PopContestWindow=Yes;" window.open('/braintumour.nsf/contest','Contest', 'width=540,height=500,top=100,left=100,menubar=no,statusbar=no,scrollbars=yes') } } function login(){ location.href = location.href + "?opendocument&login" } function prnFriend(page){ s = page.lastIndexOf("/") t = page.indexOf(".nsf") title = page.slice(s) site = page.slice(0, t+4) url = site + "/prnView" + title window.open(url, "Print") } function largeText(page){ s = page.lastIndexOf("/") t = page.indexOf(".nsf") title = page.slice(s) site = page.slice(0, t+4) url = site + "/lgTextView" + title window.open(url, "LargeText") } function sendToFriend(page,pageTitle){ t = page.indexOf(".nsf") title = page.slice(t+4) site = page.slice(0, t+4) url = site + "/SendFriend?OpenForm&" + pageTitle + "~" + title window.open(url, "SendToFriend", "height=380,width=440,menubar=no,resizable=no,location=no,top=100,left=150") } function sendToFriendFr(page,pageTitle){ t = page.indexOf(".nsf") title = page.slice(t+4) site = page.slice(0, t+4) url = site + "/SendFriendFr?OpenForm&" + pageTitle + "~" + title window.open(url, "SendToFriend", "height=380,width=440,menubar=no,resizable=no,location=no,top=100,left=150") } function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i