<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />





<html>
<style>
input::-ms-clear, input::-ms-reveal {
		display: none;
	}
</style>
<head>
<script type="text/javascript" id="RequestScript">
var contextpath = 'https://kapps.kotak.com/collections6/';
var szCurrency='null';
var DIG_SEP='null';
var CURR_SEP='null';
var JSONObject = null;
var XMLString ='';
var p = new Object();
p.wlname = '';
p.viewname = '';
p.WLVAdvsrc = null;
p.WLVDef = null;
p.WLDATAObject = null;
p.WLVFJSON = null;
p.WLISVALID =true;
p.WLFPDataJSON = null;
var p = new Object();
p.pivotname = '';
p.column = '';
p.row = '';
p.summary = '';
p.PivotDefObject = null;
p.PivotDataObject = null;
p.colJson = null;
p.viewJson = null;
</script>


<base href="https://kapps.kotak.com/collections6/">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script language="javascript" type="text/javascript" src="script/jquery-3.5.1.min.js"></script>
<script language="javascript" type="text/javascript" src="script/jquery-migrate-3.5.1.min.js"></script>
<script language="javascript" src="script/aceglobal.js" type="text/javascript"></script>
<script language="javascript" src="script/web.js" type="text/javascript"></script>
<script language="javascript" src="script/encrypt.js" type="text/javascript"></script>
<script type="text/javascript" src="script/WaterMark.min.js"></script>
<script language="javascript" type="text/javascript">
		MSG_UID_IS_REQUIRED="User Id is required";
		MSG_PWD_IS_REQUIRED="Password is required";
		MSG_ORG_IS_REQUIRED="Organization is required";
		CAP_MESSAGES="Message(s)";
		TIP_ERROR="Error";
		var map={"1FDD87BD74AF443985A5625F0E59D335":"Y"};
		function getEnc(cd) {
			var v=map[cd];
			return (v == "Y");
		}
	</script>
<script language="javascript" type="text/javascript" src="script/aes.js"></script>
<script language="javascript" type="text/javascript" src="script/pbkdf2.js"></script>
<script language="javascript" type="text/javascript" src="script/AesUtil.js"></script>	
<link rel="SHORTCUT ICON" href="https://kapps.kotak.com/collections6//images/favicon.ico">
<link rel="stylesheet" href="style/web.css" type="text/css">
<link rel="stylesheet" href="style/global.css" type="text/css">
<style>
select option {
    border: 1px solid rgba(255, 255, 255, 0.5);
	caret-color:#ffffff;
	padding: 7px;
	font-family:Roboto-Regular;
	font-size: 10pt;
	color: gray;
	width: 250px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 4px;
	background: rgba(255, 255, 255, 0.2);
  
}
</style>
<title>ACE - Centralized Security Services</title>
<ic:include modules="controls,validator,msgbox,web" />
</head>

<body onload="javascript:POL();" dir="ltr">
	<form method="post" action="secure/logon.do" name="login" target="_top"
		style="margin: 0px;"
		onsubmit="return OnSigninSubmit(-741092720, this);" autocomplete="off">
		<input type="hidden" id="_browser" name="_browser" value="" /> <input
			type="hidden" id="_platform" name="_platform" value="" /> <input
			type="hidden" id="_application" name="_application" value="Web" /> <input
			type="hidden" id="_client_version" name="_client_version" value="" />
		<input type="hidden" id="_api_type" name="_api_type" value="" /> <input
			type="hidden" id="_api_version" name="_api_version" value="" />
		<table style="height: 100%; width: 100%" cellpadding="0"
			cellspacing="0" border="0">
			<!--tr>
				<td width="100%">
					<table style="height: 101" cellpadding="0" cellspacing="0"
						border="0" class="header-ltr">
						<tr>
							<td height="75" width="100%"
								class="headerl-ltr"></td>
							
							<td><img style="float: right; height: 72; width: 72"
								src="images/blank.gif" alt="" /></td>
						</tr>
						<tr class="header-ltr">
							<td colspan="2" height="26" width="100%">&nbsp;</td>
						</tr>
					</table>
				</td>
			</tr-->
			<tr id="crow">
				<td class="center" valign="middle" align="center" height="100%"
					width="100%">
					<table width="100%" cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td valign="middle" align="right" width="25%">&nbsp;</td>
							<td style="height: 100%; width: 40%; vertical-align: middle;">
								<table class="stdTable" style="border: 0px solid white">

									<tr>
										<td class="logoTD"><img src="images/Ebix-Logo.png">
										</td>
									
										<td id="inputRow" class="inputTD">
										<input type="text" style="opacity:0;position:absolute;z-index:-1;display:none" name="newuser">
										<input
											class="loginInputs" id="username" name="username"
											title="USERNAME" placeholder="USERNAME" style="margin-top: 22px; ime-mode: disabled"
											autocomplete="off" oncopy="return false"
											ondrag="return false" ondrop="return false"
											onpaste="return false" readonly="readonly" onfocus="javascript: this.removeAttribute('readonly')" onblur = "fnUpdatePasswordField();"/> 
											<input class="loginInputs"
											type="password" id="a2" name="a2" title="PASSWORD" placeholder="PASSWORD"
											style="margin-top: 22px; ime-mode: disabled"
											autocomplete="off" oncopy="return false"
											ondrag="return false" ondrop="return false" 
											onpaste="return false" readonly="readonly" onfocus="javascript: this.removeAttribute('readonly')"/> 
											<select id="usertype" name="usertype" onchange="fnusertype(this)" style=" background: rgba(255, 255, 255, 0.2); border-radius: 4px; font-family:Roboto-Regular; font-size: 10pt;  padding: 7px; margin-top: 22px; width: 250px; caret-color:#ffffff; border: 1px solid rgba(255, 255, 255, 0.5); color: white;">  </select>
											
                                            <input class="loginInputs" id="rskfld" name="rskfld" title="TOKEN" placeholder="TOKEN" style="display: none; margin-top: 22px; ime-mode: disabled"  autocomplete="off" oncopy="return false"  ondrag="return false" ondrop="return false" onpaste="return false" /> 
											<input type="hidden" id="a3"
											name="a3" value="" /> 
											<input type="hidden" id="a4" name="a4"
											value="" /> <input type="hidden" name="passwd" value="" />
											<input type="hidden" name="res" value="1" />
											<!--added by sreejith-->
											<img id="captcha_image"  src="captcha.jpg" style="width:230px;height:50px;margin-top:17px;margin-bottom: 7px;ime-mode:disabled"/>
											<img src="images/refresh.png" style="cursor: pointer;" onclick="javascript:reloadCaptcha()"/>
											<input class="loginInputs" id="captchafield" name="captchafield" title="CAPTCHA" style="margin-top:17px;margin-bottom: 7px;ime-mode:disabled" autocomplete="off" oncopy="return false" ondrag="return false" ondrop="return false" onpaste="return false"/>
											<!--ends-->
											
											<td style="width: 150px;"><input class="loginButton"
											style="margin-top: 200px; margin-left: 22px;" id="submit"
											name="submit" type="submit" 
											value="LOG IN" />
										</td>
										
											
													<br/><br/>
													<label  style="margin-top:17px">
														<bean:message key="login.captcha.img.msg"/>
													</label>													
													
											<div
												style="padding-top: 10px; color: blue; cursor: pointer; display: none"
												id="forgotLink1" onclick="javascript:forgotPass()">
												Forgot your Password?</span> <br>
												<input class="loginInputs" id="rskfld" name="rskfld" title="TOKEN" placeholder="TOKEN" style="display: none; margin-top: 22px; ime-mode: disabled"  autocomplete="off" oncopy="return false"  ondrag="return false" ondrop="return false" onpaste="return false" /> 
												<select id="orgcode" name="orgcode" style="ime-mode: disabled; border: 1px double;"> <OPTION value=1FDD87BD74AF443985A5625F0E59D335>Indus</OPTION> </select> 
												<select id="schemacode" name="schemacode" style="">
													
												</select>
										</td>
										
										<!--<td style="width: 150px;"><input class="loginButton"
											style="margin-top: 78px; margin-left: 22px;" id="submit"
											name="submit" type="submit"
											value="LOG IN" />
										</td>-->
									</tr>
									<tr>
										<td colspan="3">
											<div id="errorDiv" style="padding-left: 300px">
												
											</div>
										</td>
									</tr>
								</table>
							</td>
							<td valign="middle" align="right" width="35%">&nbsp;</td>
						</tr>
					</table>
				</td>
			</tr>

			<tr>
				<td width="100%">
					<table style="height: 238"
						class="footer-ltr" cellpadding="0"
						cellspacing="0" border="0">
						<tr>
							<td width="100%" class="footerl-ltr"
								align="right" style="color: black;">
								<table style="width: 100%; height: 100%">
									<tr style="height: 100%">
										<td></td>
									</tr>
									<tr>
										<td style="display: none">© 2015 Indus Software Technologies Pvt. Ltd, All Rights Reserved <br> <b>WARNING:</b> Unauthorized access to this system is forbidden and will be prosecuted by law. By accessing this system, you agree that your actions may be monitored if unauthorized usage is suspected.
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</form>

</body>
<script language="javascript" type="text/javascript">
	/*$(function () {
            $("#username").WaterMark({
                WaterMarkTextColor: '#FFFFFF'
            });
			$("#a2").WaterMark({
                WaterMarkTextColor: '#FFFFFF'
            });
        });*/
	var rsaTokenEnabled = "N";
	document.getElementById('username').addEventListener('onpaste', function(){
		return false;
	});
	document.getElementById('username').addEventListener('keypress', function(event){
		clsAlphaNoOnly(event); 
	});
	
	function clsAlphaNoOnly (e) {  // Accept only alpha numerics, no special characters 
		var regex = new RegExp("^[a-zA-Z0-9-_. ]+$");
		var str = String.fromCharCode(!e.charCode ? e.which : e.charCode);
		if (regex.test(str)) {
			return true;
		}
		e.preventDefault();
		return false;
	}
	
	function clsAlphaNoOnly2 () {  // Accept only alpha numerics, no special characters 
		return clsAlphaNoOnly (this.event); // window.event
	}
	
	document.getElementById("username").focus();
	var errorDivObj = document.getElementById("errorDiv");
	//alert(errorDivObj);
	//alert(errorDivObj.firstChild.style);
	//alert(errorDivObj.style);
	//if(errorDivObj && errorDivObj.firstChild){
		//errorDivObj.firstChild.style.border = "0px solid white";
		//errorDivObj.firstChild.style.backgroundColor = "transparent";
		//errorDivObj.firstChild.firstChild.style.display ="none";
	//}
	
	if (rsaTokenEnabled=="Y"){
		document.getElementById('usertype').style.display = '';
		//document.getElementById('usertype').style.display = 'none';
	}else{
		document.getElementById('usertype').style.display = 'none';
		document.getElementById('rskfld').style.display = 'none';
	}
	var objseorg = document.getElementById('orgcode');
	if (objseorg.options.length<=1){
		//document.getElementById('trorg').style.display = 'none';
	}
	var objschema = document.getElementById('schemacode');
	if (objschema.options.length<=1 || 'Y'!=='null'){
		document.getElementById('orgcode').style.display = 'none';
		document.getElementById('orgcode').value = '1FDD87BD74AF443985A5625F0E59D335';
		document.getElementById('schemacode').style.display = 'none';
		//document.getElementById('trschema').style.display = 'none';
	}
	try{
		var resendOTPYN="N";
		if(resendOTPYN=="Y")
			document.getElementById("resendOTPLink").style.display="none";
	}catch(e){}
	
	function fnUpdatePasswordField(){
		document.getElementById("a2").removeAttribute('readonly');
	}
	
	/*function logoutUser(){
		var userID="";
		var strdata='&users=' +userID;
		if(userID!=""){
			document.location.href="https://kapps.kotak.com/collections6/secure/logout.do?&userID="+userID;
			}
	}*/
	function logoutUser() {
	//alert("logoutUser");
    var userID = "";
	//alert("userIDuserID"+userID);
    var contextPath = "https://kapps.kotak.com/collections6/";
	//alert("contextPath"+contextPath);

    if (userID !== "") {
		//alert("contextPath");
        // Create a form element
        var form = document.createElement("form");
		//alert("formform"+form);
        form.method = "POST";
        form.action = contextPath + "secure/logout.do";

        // Create input element for userID
        var input = document.createElement("input");
        input.type = "hidden";
        input.name = "userID";
        input.value = userID;

        // Append input to form
        form.appendChild(input);

        // Append form to body and submit
        document.body.appendChild(form);
        form.submit();
    }
}
    function validateOTP(){
		if (!isValidOTP()) return false;
		var otpValue = document.getElementById("entotp").value;
		var aeskey="C75F748D8B88423C";
		var newpwd = encrypt.AESEncrypt(otpValue,aeskey,128);
		var form = document.createElement('form');
		form.method = 'POST';
		form.action = 'https://kapps.kotak.com/collections6/secure/validateotp.do';
		var otpInput = document.createElement('input');
		otpInput.type = 'hidden';
		otpInput.name = 'entotp';
		otpInput.value = newpwd;
		form.appendChild(otpInput);
		document.body.appendChild(form);
		form.submit();
	}

	function ValSummary(ctl, errNo, strType, strMsg){
	this.Control=ctl;
	this.No=errNo;
	this.Type=strType;
	this.Msg=strMsg;
	var args=arguments;
	if (args.length>4)
		this.isWebCombo=args[4];
	else
		this.isWebCombo="N";

	if (this.isWebCombo=="N" && ctl!=null)
	{
		this.className=ctl.className;
	}
	/*if (webCmbObj!=null)
	{
		this.IsWebCombo="Y";
		this.WebComboObject=webCmbObj;
	}*/
}
	function resendOTP(){
		
		document.getElementById("resendOTPLink").style.display="none";		
		document.location.href="https://kapps.kotak.com/collections6/secure/resendotp.do?";			
	}
	function reloadCaptcha(){
		var captchaEnabled="Y";
        var captchaEnabledUnlock="N";
        if(captchaEnabled=='Y' ||captchaEnabledUnlock=='Y' ){
		var img=document.getElementById('captcha_image');
		img.src="";
		img.src="https://kapps.kotak.com/collections6/captcha.jpg?id="+Math.random();
	    }
	}
	function fnusertype(){
	
		errorDivObj.style.display="none";
		if(document.getElementById('usertype').value=="E"){
			document.getElementById('rskfld').style.display="";
		}else{
			document.getElementById('rskfld').style.display="none";
			document.getElementById('rskfld').value="";
		}
	}
	window.onload = reloadCaptcha();
</script>
</html>
<script type="text/javascript">
var timeoutHandle;
function countdown() {
		var otpYN='null';
		if(null!=otpYN && otpYN=="Y"){ 
	      var seconds = 60; var minutes;
	      var tunit= 'MIN';
		  var timelimit= '10';
		  if(tunit == "SEC"){
			minutes= 1;
			seconds =timelimit;
		 }
		else{
			minutes=timelimit;
		}
var mins = minutes-1;
function tick() {
	
		var counter = document.getElementById("timer");
        var current_minutes =0;
		seconds--;
		if(tunit == "SEC"){
			
			counter.innerHTML = current_minutes.toString() + ":" + (seconds < 10 ? "0" : "") + String(seconds);
		 }
		else{
			
		   counter.innerHTML = mins.toString() + ":" + (seconds < 10 ? "0" : "") + String(seconds);
		}
        if( seconds > 0 ) {
			
            timeoutHandle=setTimeout(tick, 1000);
        } else {
			document.getElementById("resendOTPLink").style.display = "block"; // Enable the ResendOTP link
			//document.getElementById("entotp").disabled=true;
			//document.getElementById("otpbutton").disabled=true;
			//document.getElementById("entotp").style.display="none";
			//document.getElementById("otpbutton").style.display="none";
			//document.getElementById("lbl").style.display="none";
			//document.getElementById("lbl2").innerHTML="OTP time has been expired please click on ResendOTP and try again.....";	
			//document.getElementById("timer").innerHTML="";
			//document.getElementById("lbl2").style.color = "white";
			//document.getElementById("lbl2").style.width = "300px";
			//document.getElementById("lbl2").style.fontSize = "15px";
			session.setAttribute("OTP_GENERATED", "N");
			//document.getElementById("resendOTPLink").style.display = "block"; // Enable the ResendOTP link
			//document.getElementById("resendOTPLink").disabled = false; // Enable the ResendOTP link
			keydown(65);
	}
    }
	 var otplimit = '1';
	 var resendLimitedValue = '1';

	 
	 //if (otplimit <= resendLimitedValue && otplimit!=0  ){
		if ((otplimit <= resendLimitedValue && otplimit!=4) || (otpAttemptFailed === 'Y') ){
		 //alert("resendLimitedValue"+resendLimitedValue);
		 //alert("If::::::");
     tick();
	 }
 }
 }
  countdown();
 //mouse right click disabled
        window.oncontextmenu = function () {
        var otpYN='null';
		if(null!=otpYN && otpYN=="Y"){ 
		return false;}

        }
</script>
<script language="javascript" type="text/javascript">
    //this code handles the F5/Ctrl+F5/Ctrl+R
    document.onkeydown = checkKeycode
    function checkKeycode(e) {
		var otpYN='null';
		if(null!=otpYN && otpYN=="Y"){ 
        var keycode;
        if (window.event)
            keycode = window.event.keyCode;
        else if (e)
            keycode = e.which;

        // Mozilla firefox
        if ($.browser.mozilla) {
            if (keycode == 116 ||(e.ctrlKey && keycode == 82)) {
                if (e.preventDefault)
                {
                    e.preventDefault();
                    e.stopPropagation();
                }
            }
        } 
        // IE
        else if ($.browser.msie) {
            if (keycode == 116 || (window.event.ctrlKey && keycode == 82)) {
                window.event.returnValue = false;
                window.event.keyCode = 0;
                window.status = "Refresh is disabled";
				
            }
        }
    }
	}
</script>


<script type="text/javascript">
    
    // Function to disable timeleft and enable resendOTP link
    function updateOTPStatus() {
		var otpExpired = 'N'; 
	    var otpAttemptFailed = 'N';
	    var otpResendLimit = 'N';
	    var otplimit = '1';
        var timerLabel = document.getElementById('lbl2');
        var resendOTPLink = document.getElementById('resendOTPLink');
	
		
		if (otpAttemptFailed === 'Y') {
			//alert("LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL");
            //OTP Attempt Failed, disable timeleft and disable resendOTP link
			resendOTPLink.style.display = 'none';
            timerLabel.style.display = 'none';
        }else if (otpResendLimit === 'Y') {
			//alert("PPPPPPPPPPP..");
             //Resend Limit exceed
            timerLabel.style.display = 'none';
        }
        else if (otpExpired === 'Y' && otplimit!=0 ) {
			//alert("otpexpired'''':");
            //OTP expired, disable timeleft and enable resendOTP link
            timerLabel.style.display = 'none';
            resendOTPLink.style.display = 'block';
        } else {	
			//alert("otplimit:::::::"+otplimit);
			if (otplimit == 4){
				
				//alert("otplimit:::::::"+otplimit);
				timerLabel.style.display = 'none';
				resendOTPLink.style.display = 'none';
			}
			else{
            //OTP not expired, enable timeleft and disable resendOTP link
			//alert("time;;;;;;;;;;;;;;;;;;;;;;;;");
            timerLabel.style.display = 'block';
			//alert("time---------------");
            resendOTPLink.style.display = 'none';
			//alert("llllllllllllllllll");
			}
        }
    }

    // Call the function on page load
    updateOTPStatus();
</script>
