function menuAct(menuurl,frameObjectId){document.getElementById('ScrollDivId').value='index';if(menuurl!=null&&menuurl!='null'&&menuurl!=''){updateContainer(menuurl,'',frameObjectId)}} function updateContainer(url,formData,divID,scrollTop,callbackSuccess){if(url.indexOf('#CSDTP#')>-1){url=url.replace('#CSDTP#','');var urlvals=url.split('#~#');url=urlvals[0];formData=null;divID=urlvals[2]} var token=$("meta[name='_csrf']").attr("content");if(formData==undefined||formData==null||formData==""){formData=[{name:"portal",value:"CAS"}]} var dynamicCon='';if(divID==undefined||divID=='undefined'||divID==''){dynamicCon='#pageContent'}else{dynamicCon='#'+divID} var ObjTag=$(dynamicCon);if(url==undefined||url=='undefined'||url==''){url='webHP?'}else if(token!=undefined||token=='undefined'||token==''){if(url.indexOf('&')>0){url=url+'&_csrf='+token}else if(url.indexOf('?')>0){url=url+'_csrf='+token}else{url=url+'?_csrf='+token}} if(document.getElementById("statusbar")!=null){showProgressbar()} if(dynamicCon=='#contLeftcolumn'){ObjTag.load(url,formData,function(response,status,xhr){if(xhr.status==0){window.location.href="sessionExpire.jsp"}})}else{if(document.getElementById("attachForm").value=='true'){var form=document.getElementById(document.getElementById("FormRefId").value);document.getElementById("attachForm").value='';document.getElementById("FormRefId").value='';var iframe=document.createElement("iframe");iframe.id="upload_iframe";iframe.name="upload_iframe";iframe.style.display="none";form.parentNode.appendChild(iframe);var eventHandler=function(){if(iframe.contentDocument){content=iframe.contentDocument.body.innerHTML}else if(iframe.contentWindow){content=iframe.contentWindow.document.body.innerHTML}else if(iframe.document){content=iframe.document.body.innerHTML} var htmlText=$(iframe).contents().find("html").html();if(htmlText!=undefined&&htmlText!=null&&htmlText!=''){content=htmlText} ObjTag.html(content);onLoadChanges(scrollTop);setTimeout(function(){var iframeId=document.getElementById("upload_iframe");if(iframeId!=null){iframeId.parentNode.removeChild(iframeId)}},250)};if(iframe.addEventListener)iframe.addEventListener("load",eventHandler,!0);if(iframe.attachEvent){iframe.attachEvent("onload",eventHandler)}else{iframe.onload=function(){eventHandler()}} form.target="upload_iframe";form.action=url;form.method="post";form.enctype="multipart/form-data";form.encoding="multipart/form-data";form.submit()}else{ObjTag.load(url,formData,function(response,status,xhr){if(xhr.status==0){window.location.href="sessionExpire.jsp"}else{onLoadChanges(scrollTop);if(callbackSuccess!==undefined){callbackSuccess()}}})}}} function onLoadChanges(scrollTop){if(document.getElementById("undernav")!=null){if(document.getElementById("breadcrumb").innerHTML.length>0){document.getElementById("undernav").style.display='';document.getElementById("noBreadCrumb").style.display='none'}else{clear_breadcrumb()} if(document.getElementById('BreadcrumbNeeded').value=='NO'){document.getElementById("undernav").style.display='none';document.getElementById("noBreadCrumb").style.display='none';document.getElementById('BreadcrumbNeeded').value=''} if(document.getElementById('contLeftcolumn')!=null&&$('#contLeftcolumn').is(":visible")){document.getElementById("breadcontain").className='container';if($(window).width()>768){document.getElementById("breadcrumb").style.padding='10px 0'}else{document.getElementById("breadcrumb").style.padding='10px'} document.getElementById("undernav").className=''}else{document.getElementById("breadcontain").className='containerHome';document.getElementById("breadcrumb").style.padding='0';document.getElementById("undernav").className='undernav'}} if(document.getElementById('contLeftcolumn')!=null){if($('#contLeftcolumn').is(":visible")){$('#pageContent').css({width:'100%',margin:'0'})}else{$('#pageContent').css({width:'80%',margin:'auto'})}}else{} document.getElementById("attachForm").value='';document.getElementById("FormRefId").value='';if(document.getElementById(document.getElementById('ScrollDivId').value)==null||$(window).width()>768){document.getElementById('ScrollDivId').value='index'} if(scrollTop!=!1){$('html, body').animate({scrollTop:$('#'+document.getElementById('ScrollDivId').value).offset().top},0)} hideProgressbar()} function treeMenuDisplay(menu){if(menu=='YES'){document.getElementById('contLeftcolumn').style.display="";document.getElementById('ContContent').style.width="80%";document.getElementById('pageContent').style.width="100%";document.getElementById('pageContent').style.margin="0";document.getElementById("breadcontain").className='container';if($(window).width()>768){document.getElementById("breadcrumb").style.padding='10px 0'}else{document.getElementById("breadcrumb").style.padding='10px'} document.getElementById("undernav").className=''}else{document.getElementById('contLeftcolumn').style.display="none";document.getElementById('ContContent').style.width="100%";document.getElementById('pageContent').style.width="80%";document.getElementById('pageContent').style.margin="auto";document.getElementById("breadcontain").className='containerHome';document.getElementById("breadcrumb").style.padding='0';document.getElementById("undernav").className='undernav'}} function clear_breadcrumb(){if(document.getElementById("undernav")!=null){document.getElementById("breadcrumb").innerHTML='';document.getElementById("undernav").style.display='none';document.getElementById("noBreadCrumb").style.display='block'}} function ReplaceAll(Source,stringToFind,stringToReplace){var temp=Source;var index=temp.indexOf(stringToFind);while(index!=-1){temp=temp.replace(stringToFind,stringToReplace);index=temp.indexOf(stringToFind)} return temp} function getDateOutput(){var now=new Date();var dateString=''+now;var sp1=dateString.indexOf(" ",0);var sp2=dateString.indexOf(" ",parseInt(sp1)+1);var sp3=dateString.indexOf(" ",parseInt(sp2)+1);var enteredDate='';enteredDate+=dateString.substring(0,parseInt(sp3))+' '+now.getFullYear();enteredDate+='<\/b><\/span>';var object=document.getElementById('dateDiv');object.innerHTML=enteredDate} function fn_lang(Id){fireUnloadEvent=!1;document.forms[0].UserLocaleID.value=Id;document.forms[0].frameSrc.value=document.getElementById("dataFrame").src;document.forms[0].requestType.value="ApplicationRH";document.forms[0].screenId.value="83";document.forms[0].actionVal.value="changeLang";document.forms[0].submit()} function fnBackMenuPage(){var transNumber=document.getElementById("randomReqTrnNumberFromCommon").value;if(lStrUsrType==12){document.getElementById("firstPage").style.display='none';document.getElementById("dataFrame").style.display='';if(agencyIdOfLoggedUser==spancoUser||agencyIdOfLoggedUser==CMSUser||agencyIdOfLoggedUser==basixUser){urlToSend='web?requestType=ApplicationRH&actionVal=dispStatus&queryType=Select&screenId=136&randomRequestTrnNumber='+transNumber;iframe=document.getElementById('dataFrame');doc=null;if(iframe.contentDocument) doc=iframe.contentDocument;else if(iframe.contentWindow) doc=iframe.contentWindow.document;queSplit=urlToSend.split("?");beforeQueSplit=queSplit[0];afterQueSplit=queSplit[1];splitByAmp=afterQueSplit.split("&");html="";html=html+"
";for(var i=0;i"} html=html+"