<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>
|