function ActivityNewWindow(url,w,h,acttype) { width = (w != null) ? w : "606"; height = (h != null) ? h : "510"; type = (acttype != null) ? acttype : "ttn"; // Right now, these are both the same but if you get new types you want to account for you would // add else if(){...} statements. if(acttype == "ttn"){ var titleStr = acttype; var str = 'toolbar=no,location=no,resizable=yes,directories=no,status=no,resizable=yes,menubar=no,scrollbars=yes,copyhistory=no,width=' + width+',height=' + height; } else if (acttype == "workmat"){ var titleStr = acttype; var str = 'toolbar=no,location=no,resizable=yes,directories=no,status=no,resizable=yes,menubar=no,scrollbars=yes,copyhistory=no,width=' + width+',height=' + height; } else{ var titleStr = "Preview"; var str = 'toolbar=no,location=no,resizable=yes,directories=no,status=no,resizable=yes,menubar=no,scrollbars=yes,copyhistory=no,width=' + width+',height=' + height; } newWindow = window.open(url,titleStr,str); } // sfStyleDetection.js // This is a SF modified version of the original, which provided an exhustive amount of functions. // This new version is only intended to suppliment the needs of an iText product SF has implemented // and any functionalities created for them. function OpenNamedWindow(name,url,winwidth,winheight) { var newWindow = window.open(url,name,'toolbar=no,scrollbars=yes,location=no,resizable=yes,directories=no,status=no,menubar=no,copyhistory=no,width='+winwidth+',height='+winheight); } function OpenNewWindow(url,winwidth,winheight) { newWindow = window.open(url,'Preview','toolbar=no,location=no,resizable=yes,directories=no,status=no,menubar=no,copyhistory=no,width='+winwidth+',height='+winheight); } function PrivacyNewWindow(url,winwidth,winheight) { newWindow = window.open(url,'Preview','toolbar=no,location=no,resizable=yes,directories=no,status=no,menubar=no,scrollbars,copyhistory=no,width='+winwidth+',height='+winheight); } function BrowseITEXT(ISBN,ITEXTOID,DisplayTitle,ISBNUrl,TitleInFrame) { var f = document.form1; if (!f) { document.write('
'); f = document.form1; //alert(f); } f.method="GET"; f.eventType.value="openIEXT"; f.ISBN.value=ISBN; f.ISBNUrl.value=ISBNUrl; f.TitleInFrame.value = TitleInFrame; if (TitleInFrame == "X") { f.target = "_top"; } else { f.target = "_parent"; } f.ITEXTOID.value=ITEXTOID; f.DisplayTitle.value=DisplayTitle; f.action = "/iText/BrowseITEXTServlet"; f.submit(); }