Paste code from old log in page here the replace it with the following code:

NEW CODE

<noscript>
<center><p><font size="3" color="red">Please enable JavaScript so that the following C3D and LLI Login buttons work properly.</font></p></center>
</noscript>

Use Internet Explorer to access C3D Remote Data Capture

Production
Database
Test
Database

If your C3D password is about to expire, please change it otherwise you won't be able to log into J-Review.

Only available to NIH/NCI users. 

Only available to NIH/NCI users. 

<body>
<center>
<FORM>
<INPUT TYPE="button" VALUE="Search CCR Protocols" onClick="window.open('http://protocols.cancer.gov/','newwindow')">
</FORM>
</center>
</body>

 

 

 

 


 

OLD CODE

 

<noscript>
<center><p><font size="3" color="red">Please enable JavaScript so that the following C3D and LLI Login buttons work properly.</font></p></center>
</noscript>
<head>

<style type="text/css">
table {
 border-collapse:collapse;
}
table,th, td {
 border: 1px solid darkgray;
 text-align: center;
 padding: 5px;
}
th {
 background-color:Gainsboro;
}
</style>

</head>

<script type="text/javascript"><!--

function isWinXP32() {
 return (navigator.userAgent.indexOf('Windows NT 5.1') != -1);
}

function isVistaOrWin7() {
 return (navigator.userAgent.indexOf('Windows NT 6') != -1);
}

function RDCClassicSupported() {
 if ( isWinXP32() ) {
    // check for IE 6, 7 or 8
    if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) {
       var BrowserVersion = new Number(RegExp.$1); // capture x.x portion and store as a number
       if ( (BrowserVersion<=9) && (BrowserVersion>=6) ) {
          return true;
       }
    }
 }
 return false;
}

function RDCOnsiteSupported() {
 if ( isWinXP32 || isVistaOrWin7() ) {
    // check for IE 7 or 8
    if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) {
       var BrowserVersion = new Number(RegExp.$1); // capture x.x portion and store as a number
       if ( (BrowserVersion<=9) && (BrowserVersion>=7) ) {
          return true;
       }
    }
 }
 return false;
}

// Check C3D Support
//
// C3D needs Windows XP (32-bit) and IE 6, 7 or 8
// C3D needs Windows Vista or 7 and IE 7 or 8
//
//function checkC3Dsupport() {
//
//  if ( (navigator.platform == "Win32") &&
//       (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) ) {
//
//     var BrowserVersion = new Number(RegExp.$1); // capture x.x portion and store as a number
//     return ( (BrowserVersion<=9) && (BrowserVersion>=6) );
//  }
//return false;
//}


//
// functions to build launch URLs
//

var _windowHandle= null;
var _windowStyle='menubar=0, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=1, copyhistory=0';
var _windowName= 'RDCOnsite';

//
function launchOnsite (mode,url){

// Mode is not being used because cannot append text to the window title.
// If appended, window does not open/get focus.

       var urlToOpen;
       if (url.indexOf('?') <0) { urlToOpen = url + '?r=' + Math.random(); }
       else { urlToOpen = url + '&r=' + Math.random(); }
       try {
               if ( _windowHandle.closed ) { _windowHandle = null;
               }
               if ( _windowHandle && _windowHandle.open ) {
                   _windowHandle.focus();
//
// the following works, but it closes an open session
//                   _windowHandle.close();
//                   _windowHandle = null;
//                   _windowHandle = window.open(urlToOpen, _windowName, _windowStyle);
//
               }
               else {
                    _windowHandle = window.open(urlToOpen, _windowName, _windowStyle);}
       } catch (e) {
         _windowHandle = window.open(urlToOpen, _windowName, _windowStyle);}
}


//
function launchClassic(db) {

var windowname="ntcbiohcocb";
var config;
var sessiontitle;
var sessionprefix="a%20";
var vwidth="400";
var vheight="80";

if ( db == 'test_mode' ) {
	var config="rdct45";
	var sessiontitle="RDC Test";
} else if ( db == 'prod_mode' ) {
	var config="rdc45";
	var sessiontitle="RDC";
}

var loc     = new Date();
var year    = loc.getYear();
var month   = loc.getMonth()+1;
var date    = loc.getDate();
var hours   = loc.getHours();
var minutes = loc.getMinutes();
var seconds = loc.getSeconds();

var locdate  = ""+((month < 10) ? "0" : "") + month;
    locdate += ((date < 10) ? "0" : "") + date;
    locdate += ((year < 1000) ? 1900 : "") + year;

var loctime  = ""+((hours < 10) ? "0" : "") + hours;
    loctime += ((minutes < 10) ? "0" : "") + minutes;
    loctime += ((seconds < 10) ? "0" : "") + seconds;

window.open('https://octrials.nci.nih.gov/servlet/f60servlet?config='+config+'&otherparams=client_time='+locdate+loctime+'&HTMLbeforeForm=<b>Please%20do%20not%20close%20this%20window%20with%20'+sessionprefix+sessiontitle+'%20session%20running.%20%20Closing%20the%20window%20will%20cause%20report/file%20viewing%20and%20help%20to%20stop%20working.</b>','A'+config+windowname,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,width='+vwidth+',height='+vheight);
}

//-->
</script>

<body>

<script type="text/javascript"><!--
/*
// if ( !checkC3Dsupport() ) {
//  document.write("<center><p><font size=3 color=red>C3D is only supported in Internet Explorer 6, 7 or 8 and a computer runing Windows XP (32-bit).</font></p></center>");
//  document.write("<center><p><font size=2 color=red>Refer to the support page for system requirements.</font></p></center>");
// }
*/
//-->
</script>


<center>
<form>

<table style="text-align: center;" border="1" cellpadding="5" cellspacing="2">
  <tbody>
    <tr>
      <th></th>
      <th style="text-align: center;">Production<br>Database</th>
      <th style="text-align: center;">Test<br>Database</th>
    </tr>
    <tr>
      <td><span style="font-weight: bold;">2011 and earlier Studies</span>
          <script type="text/javascript"><!--
          if ( ! RDCClassicSupported() ) {
document.write("<center><p><font size=2 color=red>Your Operating System and/or WebBrowser do not meet the System Requirements.<br>Consult the Support page for details.</font></p></center>");
          }
          //-->
          </script>
      </td>
      <td><center><INPUT TYPE="button" value="Log in" name="C3D_RDC_CLASSIC_PROD" onClick="launchClassic('prod_mode')"/></center></td>
      <td><center><INPUT TYPE="button" value="Log in" name="C3D_RDC_CLASSIC_TEST" onClick="launchClassic('test_mode')"/></center></td>
    </tr>
    <tr>
      <td><span style="font-weight: bold;">2012 onwards Studies and <br>Surgery Branch Immunotherapy</span>
          <script type="text/javascript"><!--
          if ( ! RDCOnsiteSupported() ) {
document.write("<center><p><font size=2 color=red>Your Operating System and/or WebBrowser do not meet the System Requirements.<br>Consult the Support page for details.</font></p></center>");
          }
          //-->
          </script>
      </td>
      <td><center><input type="button" value="Log in" onClick="launchOnsite('Production Database','https://oconsite.nci.nih.gov/olsa/oc/rdcLogin.do?event=doSetup&db=ocprod.nci.nih.gov&mode=P&display_docnum=y&display_descpId=y')"/></center></td>
      <td><center><input type="button" value="Log in" onClick="launchOnsite('Test Database','https://oconsite.nci.nih.gov/olsa/oc/rdcLogin.do?event=doSetup&db=ocprod.nci.nih.gov&mode=T&display_docnum=y&display_descpId=y')"/></center></td>
    </tr>
    <tr>
      <td><span style="font-weight: bold;">Change Password</span><br>(Only for non RDC Onsite studies and on a Windows XP computer.)</td>
      <td colspan="2"><center><INPUT TYPE="button" value="Change Password" name="C3D_CHANGE_PSW" onClick="javascript:window.open('https://octrials.nci.nih.gov/servlet/f60servlet?config=rdcpassw45');"/></center></td>
    </tr>
  </tbody>
</table>

</form>
</center>
</body>

If your C3D password is about to expire, please change it otherwise you won't be able to log into J-Review.

<script type="text/javascript"><!--

// JavaScript to detect if Java Web Start is installed or not

   var javawsInstalled = 0;
   isIE = "false";

   if (navigator.mimeTypes && navigator.mimeTypes.length) {
      x = navigator.mimeTypes['application/x-java-jnlp-file'];
      if (x) javawsInstalled = 1;
    } else {
      isIE = "true";
    }

//    function insertLink(url, name) {
//      if (javawsInstalled) {
//          document.write("<a href=" + url + ">"  + name + "</a>");
//       } else {
//          document.write("Need to install Java Web Start");
//       }
//    }
//
//    function launchLink2(imageUrl, jnlpUrl, title, desc) {
//       var realUrl = "http://java.sun.com/products/javawebstart/needdownload.html";
//       if (javawsInstalled) {
//         realUrl = jnlpUrl;
//       }
//       document.write("<div align=\"right\">");
//       document.write("<table width=\"100%\" border=\"0\">");
//       document.write("<tr>");
//       document.write("<td width=\"40%\">");
//       document.write("<img src=\"" + imageUrl + "\" width=\"130\" height=\"107\">");
//       document.write("</td>");
//       document.write("<td width=\"60%\">");
//       document.write("<h2 align=\"center\">" + title + "</h2>");
//       document.write("<p> " + desc);
//       document.write("<center><form action=\"" + realUrl + " method=\"GET\"><input type=\"submit\" value=\"Launch\" align=\"right\"></form>");
//       document.write("</center></td></tr></table></div>");
//    }


    function launchLink(imageUrl, jnlpUrl, title, desc) {
       var realUrl = "http://java.sun.com/products/javawebstart/needdownload.html";
       if (javawsInstalled) {
         realUrl = jnlpUrl;
         //document.write("<center><div align=center>");
         //document.write("<a href=" + realUrl + "target=\"_blank\"><img src=" + imageUrl + " width=\"130\" height=\"107\" BORDER=\"0\"></a></div>");
         document.write("<center><form action=\"" + realUrl + "\" METHOD=\"GET\"><input type=\"submit\" value=\"Log into J-Review\"></form></center>");
         //document.write("</center>");
       } else {
         document.write("<center><p><font size=2 color=red>J-Review requires the JavaRuntime with JaveWebStart installed.</font></p>");
         document.write("<a href=" + realUrl + ">Download Java Runtime.</a></center>");
       }
    }

//-->
</script>

<SCRIPT LANGUAGE="VBScript">
on error resume next
If isIE = "true" Then
  If Not(IsObject(CreateObject("JavaWebStart.IsInstalled"))) Then
     javawsInstalled = 0
  Else
    javawsInstalled = 1
  End If
End If
</SCRIPT>

<body>
<noscript>
<ul><li><a href="https://octrials-rpt.nci.nih.gov/javawebstart/apps/jreviewssl.jnlp" target="_blank">Log into J-Review.</a></li></ul>
</noscript>

<script type="text/javascript"><!--
 launchLink("images/JReview64.gif", "https://octrials-rpt.nci.nih.gov/javawebstart/apps/jreviewssl.jnlp", 140, 94);
// -->
</script>

</body>
Only available to NIH/NCI users.
<script type="text/javascript"><!--
var servername="s1";
var config="LabLoadInterface";
var sessionprefix="an%20";
var sessiontitle="NCICB%20Applications";
var vwidth="220";
var vheight="122";

function launchLLI() {
  window.open('http://octrials.nci.nih.gov/opa45/../servlet/f60servlet?config='+config+'&HTMLbeforeForm=<b>Please%20do%20not%20close%20this%20window%20with%20'+sessionprefix+sessiontitle+'%20session%20running.%20%20Closing%20the%20window%20will%20cause%20report/file%20viewing%20and%20help%20to%20stop%20working.</b>','A'+config+servername,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,width='+vwidth+',height='+vheight);
}

//-->
</script>

<body>
<center>
<script type="text/javascript"><!--
          if ( ! RDCClassicSupported() ) {
document.write("<center><p><font size=2 color=red>Your Operating System and/or WebBrowser do not meet the System Requirements.<br>Consult the Support page for details.</font></p></center>");
          }
          //-->
          </script>
<FORM>
<INPUT TYPE="button" VALUE="Log into LLI" onClick="launchLLI()">
</FORM>
</center>

</body>

Only available to NIH/NCI users.
<body>
<center>
<FORM>
<INPUT TYPE="button" VALUE="Search CCR Protocols" onClick="window.open('http://protocols.cancer.gov/','newwindow')">
</FORM>
</center>
</body>