//function validatelogin() //{ //if(document.cookie.indexOf('OracleAuthCookie=')==-1) //window.location.replace('/scripts/ccl/database/login.jsp?htm='+window.location); // } function validatelogin(url) { var cookieEnabled=(navigator.cookieEnabled)? true : false //if not IE4+ nor NS6+ if (typeof navigator.cookieEnabled=="undefined" && !cookieEnabled){ document.cookie="OracleAuthCookie" cookieEnabled=(document.cookie.indexOf("OracleAuthCookie")!=-1)? true : false } if (cookieEnabled) //if cookies are enabled on client's browser { //do whatever if(window.document.cookie.indexOf('OracleAuthCookie') == -1) { window.location.replace('/scripts/ccl/database/login.jsp?htm='+url); } else window.location = url; } }