function clickIE4(){
if (event.button==2){
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("return false")
//index
function changeLang(){
var URL = indexChangeLangJSURL;
document.form1.action=URL;
document.form1.submit();
}
function go(){
document.IBS.submit();
}
function fullWindow(url)
{
var str = "left=0,screenX=0,top=0,screenY=0,resizable,scrollbars = yes";
if (window.screen)
{
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;
str += ",height=" + ah;
str += ",innerHeight=" + ah;
str += ",width=" + aw;
str += ",innerWidth=" + aw;
}
win=window.open(url, "w", str);
}
//login1
function onlineReg(url){
document.IBS.action=url;
document.IBS.submit();
}
function fp(url){
var fullUrl = url+langJSURL;
//window.open(fullUrl,null,'width=800,height=750,resizable=no,left=0,top=10,maximize=no,scrollBars=yes');
document.IBS.action=fullUrl;
document.IBS.submit();
//window.open(fullUrl);
}
function validateForm(){
document.getElementById('hiddenUserName').value = btoa(encodeURI(document.getElementById('userName').value));
if (document.getElementById('userName').value == '' /*|| document.getElementById('userName').value == 'Your ID'*/){
if($('#userName').parent('div').parent('div').find('small').is('small') == false){
$('#userName').parent('div').toggleClass('has-error');
$('' + MSG01 + '').insertAfter($('#userName'));
}
document.getElementById("userName").focus();
return false;
}
if ( captchaSecCodeJS != "1"){
if( document.getElementById('j_captcha_response').value == '' /*|| document.getElementById('j_captcha_response').value == MSG02 */){
if($('#j_captcha_response').parent('div').parent('div').find('small').is('small') == false){
$('#j_captcha_response').parent('div').toggleClass('has-error');
$('' + MSG02 + '').insertAfter($('#j_captcha_response'));
}
document.getElementById("j_captcha_response").focus();
return false;
}
}
document.IBS.submit();
return false;
}
function changeLangLogin1(){
var URL = login1ChangeLangJSURL;
document.IBS.action=URL;
document.IBS.submit();
}
//login 2
function remove(){
document.getElementById("aaa").style.display="none";
}
function display(){
document.getElementById("aaa").style.display="block";
}
function validateFormLogin2(){
document.getElementById('hiddenPassword').value = btoa(encodeURI(document.getElementById('PASSWORD').value));
if (document.getElementById('PASSWORD').value == ''){
if($('#PASSWORD').parent('div').parent('div').find('small').is('small') == false){
$('#PASSWORD').parent('div').toggleClass('has-error');
$('' + MSG01 + '').insertAfter($('#PASSWORD'));
}
return false;
}
if (verifyImgSecJS == "1" ){
if (!document.getElementById("checkTerms").checked){
if($('#checkTerms').parent('div').parent('div').find('small').is('small') == false){
$('#checkTerms').parent('div').toggleClass('has-error');
document.getElementById('checkBoxMSG').innerHTML = '
' + MSG02 + '';
}
return false;
}
}
$('#PASSWORD').val('');
$('#PASSWORD').attr('type','text');
$('#PASSWORD').remove();
document.IBS.submit();
return false;
}
function setFocus(){
document.getElementById("PASSWORD").focus();
source = document.getElementById("PASSWORD");
passId = document.getElementById("PASSWORD").id;
}
// I03ANQ10
function validateForm_I03ANQ10(){
if (document.getElementById('Ans').value == ''){
if($('#Ans').parent('div').parent('div').find('small').is('small') == false){
$('#Ans').parent('div').toggleClass('has-error');
$('' + MSG01 + '').insertAfter($('#Ans'));
}
return false;
}
document.IBS.submit();
return true;
}
//I01RAS10
function validateForm_I01RAS10(){
document.getElementById("sub").removeAttribute("onclick");
document.getElementById("IBS").submit();
return true;
}
//loginOTP
function validateFormLoginOTP(){
if (firstTime) {
var otpFlag = "";
if (otpStrJS == "true" && otpFlagJS == "1" && otpMailFlagJS == "1" ){
var checks = document.getElementsByName(OTP_FLAG_InputJS);
for(var i=0; i < 3; i++){
if(checks[i].checked){
otpFlag = "&"+OTP_FLAG_InputJS+"="+checks[i].value;
}
}
}else{
otpFlag = "&" +OTP_FLAG_InputJS +"=0";
}
window.location.href = URLOTP + otpFlag;
}else{
document.IBS.submit();
}
}
function checkOTPField(){
if( document.getElementById("otp").value == '' ){
if($('#otp').parent('div').parent('div').find('small').is('small') == false){
$('#otp').parent('div').toggleClass('has-error');
$('' + MSG01 + '').insertAfter($('#otp'));
}
document.getElementById("otp").focus();
return false;
}
document.IBS.submit();
}
function checkOTPField2(){
if( document.getElementById("otp").value == '' ){
if($('#otp').parent('div').parent('div').find('small').is('small') == false){
$('#otp').parent('div').toggleClass('has-error');
$('' + MSG01 + '').insertAfter($('#otp'));
}
document.getElementById("otp").focus();
return false;
}
return true;
}