var commonURL="http://www.epsilen.com";function checkAll(a,b){var c=a.type=="checkbox"?a:a.children.item[0];xState=c.checked;elm=c.form.elements;for(i=0;i<elm.length;i++)elm[i].type=="checkbox"&&elm[i].id.indexOf(b)>0&&elm[i].checked!=xState&&elm[i].click()}
function addSelection(a,b,c){if(document.getElementById(b)){a=document.getElementById(b).getElementsByTagName("input");b=true;for(var d=0;d<a.length;d++)if(a[d].type=="checkbox"&&a[d].id!=c)if(!a[d].checked&&a[d].disabled==false){b=false;break}else b=true;document.getElementById(c).checked=b}}
function resizeIframe(){var a=parent.document.getElementById("frameMain");if(a)a.style.height="0px";var b=0;navigator.userAgent.toLowerCase().indexOf("msie 6.0");navigator.userAgent.toLowerCase().indexOf("msie 7.0");navigator.userAgent.toLowerCase().indexOf("firefox");navigator.userAgent.toLowerCase().indexOf("safari");navigator.userAgent.toLowerCase().indexOf("navigator");a=navigator.userAgent.toLowerCase().indexOf("chrome")!=-1?document.documentElement.scrollHeight:document.body.scrollHeight;if(a<
700)a=710;if(parent.document.getElementById("divLeftMenuContainer")!=null)b=parent.document.getElementById("divLeftMenuContainer").scrollHeight-100;if(b>a)a=b;if(parent.document.getElementById("frameMain")!=null)parent.document.getElementById("frameMain").style.height=a+50+"px";parent.document.title=document.title;hideMasterAjaxLoader();return true}
function resizeIframeMyPortalHome(){var a,b=0;if(window.calculateHeight)a=calculateHeight();else{navigator.userAgent.toLowerCase().indexOf("msie 6.0");navigator.userAgent.toLowerCase().indexOf("msie 7.0");navigator.userAgent.toLowerCase().indexOf("firefox");navigator.userAgent.toLowerCase().indexOf("safari");navigator.userAgent.toLowerCase().indexOf("navigator");navigator.userAgent.toLowerCase().indexOf("chrome");a=document.body.scrollHeight;if(a<700)a=710}if(parent.document.getElementById("divLeftMenuContainer")!=
null)b=parent.document.getElementById("divLeftMenuContainer").scrollHeight-100;if(b>a)a=b;if(parent.document.getElementById("frameMain")!=null)parent.document.getElementById("frameMain").style.height=a+100+"px";parent.document.title=document.title;return true}
function resizeIframeEpsilenMail(){if(!(parent.document.getElementById("frameMails")=="undefined"||parent.document.getElementById("frameMails")==null)){var a;navigator.userAgent.toLowerCase().indexOf("msie 6.0");navigator.userAgent.toLowerCase().indexOf("msie 7.0");navigator.userAgent.toLowerCase().indexOf("firefox");navigator.userAgent.toLowerCase().indexOf("safari");navigator.userAgent.toLowerCase().indexOf("navigator");navigator.userAgent.toLowerCase().indexOf("chrome");a=document.body.scrollHeight;
if(a<500)a=510;parent.document.getElementById("frameMails").style.height=a+20+"px";parent.document.title=document.title;hideMasterAjaxLoader();return true}}
function resizeIframeCalender(){if(!(parent.document.getElementById("frameMain")=="undefined"||parent.document.getElementById("frameMain")==null)){var a;navigator.userAgent.toLowerCase().indexOf("msie 6.0");navigator.userAgent.toLowerCase().indexOf("msie 7.0");navigator.userAgent.toLowerCase().indexOf("firefox");navigator.userAgent.toLowerCase().indexOf("safari");navigator.userAgent.toLowerCase().indexOf("navigator");navigator.userAgent.toLowerCase().indexOf("chrome");a=document.body.scrollHeight;
parent.document.getElementById("frameMain").style.height=a+170+"px";parent.document.title=document.title;hideMasterAjaxLoader();return true}}function resizeIframeLanding(){}
function resizeIframeAdmin(){var a;navigator.userAgent.toLowerCase().indexOf("msie 6.0");navigator.userAgent.toLowerCase().indexOf("msie 7.0");navigator.userAgent.toLowerCase().indexOf("firefox");navigator.userAgent.toLowerCase().indexOf("safari");navigator.userAgent.toLowerCase().indexOf("navigator");navigator.userAgent.toLowerCase().indexOf("chrome");a=document.body.scrollHeight;parent.document.getElementById("frameMain").style.height=a+"px";parent.document.title=document.title;return true}
function openPopupWindowWithStatus(a,b,c,d,f){c=c+25;a=window.open(a,b,"resizable=1, status="+f+", toolbar=0, scrollbars=1, width="+d+", height="+c+", left="+(screen.width-d)/2+", top="+(screen.height-c)/2);a==null?alert("Could not open new window.\n\nYou may be blocking pop-ups."):a.focus();return false}
function openPopupWindow(a,b,c,d){c=c+25;a=window.open(a,b,"resizable=1, status=0, toolbar=0, scrollbars=1, width="+d+", height="+c+", left="+(screen.width-d)/2+", top="+(screen.height-c)/2);a==null?alert("Could not open new window.\n\nYou may be blocking pop-ups."):a.focus();return false}
function openPopupWindowwithObject(a,b,c,d){a=window.open(a,b,"resizable=1, status=0, toolbar=0, scrollbars=1, width="+d+", height="+c+", left="+(screen.width-d)/2+", top="+(screen.height-c)/2);if(a==null){alert("Could not open new window.\n\nYou may be blocking pop-ups.");return false}else{a.focus();return a}}
function showMasterAjaxLoader(){var a=(screen.width-100)/2,b=(screen.height-100)/2,c=document.getElementById("dvAjaxLoader");if(c){c.style.display="";c.style.left=a+"px";c.style.top=b+"px"}}function hideMasterAjaxLoader(){if(parent.document.getElementById("dvAjaxLoader")!=null)parent.document.getElementById("dvAjaxLoader").style.display="none"}function validateDate(a,b){return b!=null&&b!="undefined"?isDate(a,b):isDate(a,"M/d/yyyy")}function validateDateWithFormat(a,b){return validateDate(a,b)}
function Trim(a){var b,c;b=a.length-1;for(c=-1;a.charAt(b)==" "&&b>c;)--b;if(b!=a.length-1)a=a.slice(0,b+1);b=0;for(c=a.length-1;a.charAt(b)==" "&&b<c;)++b;if(b!=0)a=a.slice(b,a.length);return a}function validateEmail(a,b){var c=a.substring(a.lastIndexOf(".")+1);if(b&&c.toUpperCase()!="EDU")return false;return echeck(a)}
function echeck(a){var b=a.indexOf("@"),c=a.length;a.indexOf(".");if(a.indexOf("@")==-1)return false;if(a.indexOf("@")==-1||a.indexOf("@")==0||a.indexOf("@")==c)return false;if(a.indexOf(".")==-1||a.indexOf(".")==0||a.indexOf(".")==c)return false;if(a.indexOf("@",b+1)!=-1)return false;if(a.substring(b-1,b)=="."||a.substring(b+1,b+2)==".")return false;if(a.indexOf(".",b+2)==-1)return false;if(a.indexOf(" ")!=-1)return false;return true}
function randomPassword(a){chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 ";pass="";for(x=0;x<a;x++){i=Math.floor(Math.random()*62);pass+=chars.charAt(i)}return pass}function createCookie(a,b,c,d){var f="";if(d&&c){d=new Date;d.setTime(d.getTime()+c*60*1E3);f="; expires="+d.toGMTString()}if(c){d=new Date;d.setTime(d.getTime()+c*24*60*60*1E3);f="; expires="+d.toGMTString()}document.cookie=a+"="+b+f+"; path=/"}
function readCookie(a){a=a+"=";for(var b=document.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];d.charAt(0)==" ";)d=d.substring(1,d.length);if(d.indexOf(a)==0)return d.substring(a.length,d.length)}return null}function eraseCookie(a){createCookie(a,"",-1)}
function isAlphaNumeric(a){var b=true;for(i=0;i<a.length;i++){ch=a.charAt(i);for(j=0;j<82;j++)if(ch=="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567899 _@!#$^.: %&+,.:*'-".charAt(j))break;if(j==82){b=false;break}}if(!b)return false;return true}
function validateSearch(a,b){var c="";a=Trim(a);if(a.indexOf("<")>=0||a.indexOf(">")>=0)c="Please enter valid characters, < and > are not allowed.<br/>";else if(a=="")c+="Please enter a value to search for <br/>";else if(a.length<2)c+="Please enter at least 2 characters for search<br/>";else if(a.indexOf(" ")>=0){for(var d=a.split(" "),f=0,e=0;e<d.length;e++)if(d[e].length==1)f+=1;if(f>=3)c+="Invalid search keyword.<br/>"}else if("|the|of|to|and|a|in|is|it|you|that|he|was|for|on|are|as|be|at|or|had|by|but|how|an|if|so|has|did|am|b|c|d|e|f|g|h|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|".indexOf("|"+
a+"|")>=0)c+="Please refine your search to be more specific. Single letter searches or searches that contain common words (e.g., is, and, am, are, but, the, for, etc.) generally  return many unwanted results.";if(c=="")return true;else{d=new DPJsDialog;d.init("400px");b?d.show("Error!",c,"200px",b):d.show("Error!",c);return false}}
function validateMemberSearch(a){var b="";a=Trim(a);if(a=="")b+="Please enter a value to search for <br/>";else if(a.length<2)b+="Please enter at least 2 characters for search<br/>";else{isAlphaNumericMemberSearch(a)||(b+="Please enter only Alpha-Numeric characters<br/>");if(a.indexOf(" ")>=0){a=a.split(" ");for(var c=0,d=0;d<a.length;d++)if(a[d].length==1)c+=1;if(c>=3)b+="Invalid search keyword.<br/>"}else if("|the|of|to|and|a|in|is|it|you|that|he|was|for|on|are|as|be|at|or|had|by|but|how|an|if|so|has|did|am|b|c|d|e|f|g|h|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|".indexOf("|"+
a+"|")>=0)b+="Please refine your search to be more specific. Single letter searches or searches that contain common words (e.g., is, and, am, are, but, the, for, etc.) generally  return many unwanted results."}if(b=="")return true;else{a=new DPJsDialog;a.init("400px");a.show("Error!",b);return false}}
function isAlphaNumericMemberSearch(a){var b=true;for(i=0;i<a.length;i++){ch=a.charAt(i);for(j=0;j<76;j++)if(ch=="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567899 _@%&_+,.:*'-".charAt(j))break;if(j==76){b=false;break}}if(!b)return false;return true}
function validateSearchAndShowAlert(a){var b="";a=Trim(a);if(a=="")b+="Search Keyword is required\n";else if(a.length<2)b+="Please enter at least 2 characters for search\n";else if(a.indexOf(" ")>=0){a=a.split(" ");for(var c=0,d=0;d<a.length;d++)if(a[d].length==1)c+=1;if(c>=3)b+="Invalid search keyword.\n"}else if("|the|of|to|and|a|in|is|it|you|that|he|was|for|on|are|as|be|at|or|had|by|but|how|an|if|so|has|did|am|b|c|d|e|f|g|h|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|".indexOf("|"+a+"|")>=0)b+="Please refine your search to be more specific. Single letter searches or searches that contain common words (e.g., is, and, am, are, but, the, for, etc.) generally  return many unwanted results.\n";
if(b=="")return true;else{alert(b);return false}}function SearchOnEnter(a,b,c){c=window.event?window.event.keyCode:c.which;a=document.getElementById(a.id).value;if(c==13){if(validateSearch(a)!=false)__doPostBack(b,"");return false}}function SearchMemberOnEnter(a,b,c){c=window.event?window.event.keyCode:c.which;a=document.getElementById(a.id).value;if(c==13){if(validateMemberSearch(a)!=false)__doPostBack(b,"");return false}}
function AllowStar(a){var b=true;for(i=0;i<a.length;i++){ch=a.charAt(i);for(j=0;j<68;j++)if(ch=="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567899 *+-_".charAt(j))break;if(j==68){b=false;break}}if(!b)return false;return true}
function validateWikiForumBlogSearch(a,b){var c="";a=Trim(a);if(a=="")c+="Please enter a value to search for <br/>";else if(a.length<3)c+="Please enter at least 3 characters for search<br/>";else{AllowStar(a)||(c+="Please enter only Alpha-Numeric characters<br/>");if(a.indexOf(" ")>=0){for(var d=a.split(" "),f=0,e=0;e<d.length;e++)if(d[e].length==1)f+=1;if(f>=3)c+="Invalid search keyword.<br/>"}else if("|the|of|to|a|in|is|it|you|that|he|was|for|on|are|as|be|at|had|by|but|how|an|if|so|has|did|am|b|c|d|e|f|g|h|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|".indexOf("|"+
a+"|")>=0)c+="Please refine your search to be more specific. Single letter searches or searches that contain common words (e.g., is, and, am, are, but, the, for, etc.) generally  return many unwanted results."}if(c=="")return true;else{d=new DPJsDialog;d.init("400px");b?d.show("Error!",c,"200px",b):d.show("Error!",c);return false}}
function validateFulltextSearch(a,b,c){b=parseInt(b);var d='*,+,|,-,~,;,",(,),&,!'.split(","),f=/^\d+$/,e="";a=Trim(a);if(a=="")e="Please enter a value for search";else if(a.length<b)e="Please enter at least "+b+" characters for search";else{if(a.indexOf("<")>=0)return e="Please enter valid characters, < and > are not allowed.";if(a.indexOf(">")>=0)return e="Please enter valid characters, < and > are not allowed.";if(a.match(f))e="Please enter only Alpha-Numeric characters";if(a.indexOf(" ")>=0){a=
a.split(" ");for(var o=0;o<a.length;o++){f=0;if(Trim(a[o]).length!=0)if(!("|and|or|not|and not|near|-|+|*|~|;|||&|!|~!|&!|and!|+!||!|or!|-!|(|)|on|in|the|".indexOf("|"+a[o].toLowerCase()+"|")>=0)){for(var m=0;m<d.length;m++){var h=a[o].split(d[m]).length-1;if(h>0)f+=h}if(a[o].length-f<b)e="Please enter at least "+b+" characters for search"}}}else{for(m=f=0;m<d.length;m++){h=a.split(d[m]).length-1;if(h>0)f+=h}if(a.length-f<b)e="Please enter at least "+b+" characters for search";if("|the|of|to|and|a|in|is|it|you|that|he|was|for|on|are|as|be|at|or|had|by|but|how|an|if|so|has|did|am|b|c|d|e|f|g|h|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|".indexOf("|"+
a+"|")>=0)e="Please refine your search to be more specific. Single letter searches or searches that contain common words (e.g., is, and, am, are, but, the, for, etc.) generally  return many unwanted results."}}if(c.toLowerCase()=="yes")return e;else if(e=="")return true;else{b=new DPJsDialog;b.init("400px");b.show("Error!",e);return false}}
function validateSearchForAllLanguage(a,b){var c="";a=Trim(a);if(a=="")c+="Please enter a value to search for <br/>";else if(a.length<2)c+="Please enter at least 2 characters for search<br/>";else if(a.indexOf(" ")>=0){for(var d=a.split(" "),f=0,e=0;e<d.length;e++)if(d[e].length==1)f+=1;if(f>=3)c+="Invalid search keyword.<br/>"}else if("|the|of|to|and|a|in|is|it|you|that|he|was|for|on|are|as|be|at|or|had|by|but|how|an|if|so|has|did|am|b|c|d|e|f|g|h|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|".indexOf("|"+
a+"|")>=0)c+="Please refine your search to be more specific. Single letter searches or searches that contain common words (e.g., is, and, am, are, but, the, for, etc.) generally  return many unwanted results.";if(c=="")return true;else{d=new DPJsDialog;d.init("400px");b?d.show("Error!",c,"200px",b):d.show("Error!",c);return false}}
function selectChildToolBySysName(a,b){var c;c=window.parent.document.getElementsByTagName("h3");for(var d=0;d<c.length;d++){var f=c[d];if(f.getAttribute("systemname")==a){f.getAttribute("ToolID");c=window.parent.document.getElementsByTagName("a");for(var e=0;e<c.length;e++){f=c[e];if(f.getAttribute("systemname")==b){f.getAttribute("ToolID");c=f.getAttribute("URL");window.parent.selectToolByToolID(a,b,c);return false}}}}return false}
function GetTopLeft(a){var b,c=0;b=a.offsetLeft;c=a.offsetTop;for(a=a.offsetParent;a!=null;){b=parseInt(b)+parseInt(a.offsetLeft);c=parseInt(c)+parseInt(a.offsetTop);a=a.offsetParent}return{Top:c,Left:b}}function ShowPublicTooltip(a){var b=GetTopLeft(a),c=document.getElementById("dvToolTip");c.style.left=b.Left+150+"px";c.style.top=b.Top+30+"px";if(a.getAttribute("ToolTip")!=""){c.innerHTML=a.getAttribute("ToolTip");c.style.display=""}}
function HidePublicTooltip(){var a=document.getElementById("dvToolTip");a.innerHTML="";a.style.display="none"}var personalpublic_selected_class="selected";function ShowPublicMenuItemSelected(a){if(document.getElementById(a))document.getElementById(a).className=personalpublic_selected_class}
function InitializeSession(a){try{if(window.opener)if(window.opener.document.getElementById("dvSessionAlarm"))window.opener.SetSessionWarning&&window.opener.SetSessionWarning(a);else if(window.opener.parent.document.getElementById("dvSessionAlarm"))window.opener.parent.SetSessionWarning&&window.opener.parent.SetSessionWarning(a);else window.opener.parent.parent.document.getElementById("dvSessionAlarm")&&window.opener.parent.parent.SetSessionWarning&&window.opener.parent.parent.SetSessionWarning(a);
else if(parent.document)if(parent.document.getElementById("dvSessionAlarm"))parent.SetSessionWarning&&parent.SetSessionWarning(a);else parent.parent.document.getElementById("dvSessionAlarm")&&parent.parent.SetSessionWarning&&parent.parent.SetSessionWarning(a)}catch(b){}}var sTimeout;
function ClearSessionTimer(){if(window.opener)if(window.opener.document.getElementById("dvSessionAlarm")){window.opener.document.getElementById("dvSessionAlarm").innerHTML="";window.opener.document.getElementById("dvSessionAlarm").style.display="none"}else if(window.opener.parent.document.getElementById("dvSessionAlarm")){window.opener.parent.document.getElementById("dvSessionAlarm").innerHTML="";window.opener.parent.document.getElementById("dvSessionAlarm").style.display="none"}else{if(window.opener.parent.parent.document.getElementById("dvSessionAlarm")){window.opener.parent.parent.document.getElementById("dvSessionAlarm").innerHTML=
"";window.opener.parent.parent.document.getElementById("dvSessionAlarm").style.display="none"}}else if(parent.document)if(parent.document.getElementById("dvSessionAlarm")){parent.document.getElementById("dvSessionAlarm").innerHTML="";parent.document.getElementById("dvSessionAlarm").style.display="none"}else if(parent.parent.document.getElementById("dvSessionAlarm")){parent.parent.document.getElementById("dvSessionAlarm").innerHTML="";parent.parent.document.getElementById("dvSessionAlarm").style.display=
"none"}}var cntDownDate="",SessiontimeOutURL="";
function SessionTimer(a){try{var b='<div id="dvSessionTimer" class="LNBTooltip" style="font-size:12px;">';b+='<table width="100%" style="height:100px;">';b+='<tr><td align="center" valign="bottom" style="font-weight:bold;color:red">Your session will be expired after</td></tr>';b+='<tr><td align="center" valign="top" style="font-size:16px;font-weight:bold;color:red"><span id="spnSessionTick"> 05 : 00 </span></td></tr>';b+='<tr><td align="center" valign="top"><span id="spnSessionTick">Please click on any of the left menu tools to keep your session alive.</span></td></tr>';b+=
"</table></div>";if(window.opener)if(window.opener.document.getElementById("dvSessionAlarm")){window.opener.document.getElementById("dvSessionAlarm").innerHTML=b;window.opener.document.getElementById("dvSessionAlarm").style.display="";setTimeout("StartCountDown()",1E3);SessiontimeOutURL=a}else if(window.opener.parent.document.getElementById("dvSessionAlarm")){if(window.opener.parent.document.getElementById("dvSessionAlarm").innerHTML==""){window.opener.parent.document.getElementById("dvSessionAlarm").innerHTML=
b;window.opener.parent.document.getElementById("dvSessionAlarm").style.display="";setTimeout("StartCountDown()",1E3);SessiontimeOutURL=a}}else{if(window.opener.parent.parent.document.getElementById("dvSessionAlarm"))if(window.opener.parent.parent.document.getElementById("dvSessionAlarm").innerHTML==""){window.opener.parent.parent.document.getElementById("dvSessionAlarm").innerHTML=b;window.opener.parent.parent.document.getElementById("dvSessionAlarm").style.display="";setTimeout("StartCountDown()",
1E3);SessiontimeOutURL=a}}else if(parent.document.getElementById("dvSessionAlarm")){if(parent.document.getElementById("dvSessionAlarm").innerHTML==""){parent.document.getElementById("dvSessionAlarm").innerHTML=b;parent.document.getElementById("dvSessionAlarm").style.display="";setTimeout("StartCountDown()",1E3);SessiontimeOutURL=a}}else if(parent.parent.document.getElementById("dvSessionAlarm").innerHTML==""){parent.parent.document.getElementById("dvSessionAlarm").innerHTML=b;parent.parent.document.getElementById("dvSessionAlarm").style.display=
"";setTimeout("StartCountDown()",1E3);SessiontimeOutURL=a}}catch(c){}}function StartCountDown(){cntDownDate=new Date("01/01/2009 00:05:00");CountDown()}
function CountDown(){if(cntDownDate!=""){var a=cntDownDate.getMinutes(),b=cntDownDate.getSeconds()-1;if(b<0){b=59;a-=1}cntDownDate=new Date("01/01/2009 00:"+a+":"+b);if(window.opener)if(window.opener.document.getElementById("dvSessionAlarm")){var c=window.opener.document.getElementById("spnSessionTick");c.innerHTML=" "+(a<=9?"0"+cntDownDate.getMinutes():cntDownDate.getMinutes())+" : "+(b<=9?"0"+cntDownDate.getSeconds():cntDownDate.getSeconds());if(a<=0&&b==0){window.opener.location.href=SessiontimeOutURL;
window.close()}else sTimeout=setTimeout("CountDown()",1E3)}else if(window.opener.parent.document.getElementById("dvSessionAlarm")){c=window.opener.parent.document.getElementById("spnSessionTick");c.innerHTML=" "+(a<=9?"0"+cntDownDate.getMinutes():cntDownDate.getMinutes())+" : "+(b<=9?"0"+cntDownDate.getSeconds():cntDownDate.getSeconds());if(a<=0&&b==0){window.opener.parent.window.location.href=SessiontimeOutURL;window.close()}else sTimeout=setTimeout("CountDown()",1E3)}else{if(window.opener.parent.parent.document.getElementById("dvSessionAlarm")){c=
window.opener.parent.parent.document.getElementById("spnSessionTick");c.innerHTML=" "+(a<=9?"0"+cntDownDate.getMinutes():cntDownDate.getMinutes())+" : "+(b<=9?"0"+cntDownDate.getSeconds():cntDownDate.getSeconds());if(a<=0&&b==0){window.opener.parent.parent.window.location.href=SessiontimeOutURL;window.close()}else sTimeout=setTimeout("CountDown()",1E3)}}else if(parent.document.getElementById("spnSessionTick")){c=parent.document.getElementById("spnSessionTick");c.innerHTML=" "+(a<=9?"0"+cntDownDate.getMinutes():
cntDownDate.getMinutes())+" : "+(b<=9?"0"+cntDownDate.getSeconds():cntDownDate.getSeconds());if(a<=0&&b==0)parent.window.location.href=SessiontimeOutURL;else sTimeout=setTimeout("CountDown()",1E3)}else if(parent.parent.document.getElementById("spnSessionTick")){c=parent.parent.document.getElementById("spnSessionTick");c.innerHTML=" "+(a<=9?"0"+cntDownDate.getMinutes():cntDownDate.getMinutes())+" : "+(b<=9?"0"+cntDownDate.getSeconds():cntDownDate.getSeconds());if(a<=0&&b==0)parent.parent.window.location.href=
SessiontimeOutURL;else sTimeout=setTimeout("CountDown()",1E3)}}}function onMissingNameBlockImage(a,b){b.split(",");a.src="../Images/noMembers.jpg"}window.onscroll=onWindowScroll;function onWindowScroll(){for(var a=document.getElementsByTagName("select"),b=0;b<a.length;b++)if(a[b].id!="GotoInterfaceUC1_ddlGotoInterface"){a[b].style.display="none";a[b].style.display=""}}
function checkAbsolutePosition(a){var b="";if(document.getElementById(a))b=document.getElementById(a).getHTML().toLowerCase();return b.indexOf("position:absolute")==-1&&b.indexOf("position: absolute")==-1&&b.indexOf("position :absolute")==-1&&b.indexOf("position : absolute")==-1?true:confirm('The HTML content you have entered contains "Absolute Position" attributes and may not render properly. Do you wish to continue?')}function deleteConfirmation(){return confirm(lDeleteConfirmMessage)}
function validateEmailAddress(a){for(var b=/^[A-Za-z0-9](([_\.\-\']?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$/;a.indexOf("\r\n")!=-1;)a=a.replace("\r\n",",");for(;a.indexOf("\n")!=-1;)a=a.replace("\n",",");for(;a.indexOf(" ")!=-1;)a=a.replace(" ",",");for(;a.indexOf(",,")!=-1;)a=a.replace(",,",",");a=a.split(",");var c="";for(i=0;i<a.length;i++)if(b.test(a[i])==false)c=c+a[i]+", ";c=c.substr(0,c.length-2);return c!=""?false:true}
function CheckDecimalValue(a,b,c){var d=true;return d=a==""?false:isNaN(a)?false:a.indexOf(".")>-1?a.length-(a.indexOf(".")+1)>c?false:a.length-(a.length-a.indexOf("."))>b||a<0?false:true:parseInt(a)>=0?a.length>b||a<0?false:true:false}function loadEpsilenLogo(){if(parent.document.getElementById("imgEpsilenLogo"))if(parent.logoURL!="")parent.document.getElementById("imgEpsilenLogo").src=parent.logoURL}
var MONTH_NAMES=["January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAY_NAMES=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function LZ(a){return(a<0||a>9?"":"0")+a}function isDate(a,b){if(getDateFromFormat(a,b)==0)return false;return true}
function compareDates(a,b,c,d){a=getDateFromFormat(a,b);c=getDateFromFormat(c,d);if(a==0||c==0)return-1;else if(a>c)return 1;return 0}
function formatDate(a,b){b+="";var c="",d=0,f="",e="";f=a.getYear()+"";e=a.getMonth()+1;var o=a.getDate(),m=a.getDay(),h=a.getHours(),n=a.getMinutes(),l=a.getSeconds(),g={};if(f.length<4)f=""+(f-0+1900);g.y=""+f;g.yyyy=f;g.yy=f.substring(2,4);g.M=e;g.MM=LZ(e);g.MMM=MONTH_NAMES[e-1];g.NNN=MONTH_NAMES[e+11];g.d=o;g.dd=LZ(o);g.E=DAY_NAMES[m+7];g.EE=DAY_NAMES[m];g.H=h;g.HH=LZ(h);g.h=h==0?12:h>12?h-12:h;g.hh=LZ(g.h);g.K=h>11?h-12:h;g.k=h+1;g.KK=LZ(g.K);g.kk=LZ(g.k);g.a=h>11?"PM":"AM";g.m=n;g.mm=LZ(n);
g.s=l;for(g.ss=LZ(l);d<b.length;){f=b.charAt(d);for(e="";b.charAt(d)==f&&d<b.length;)e+=b.charAt(d++);c+=g[e]!=null?g[e]:e}return c}function _isInteger(a){for(var b=0;b<a.length;b++)if("1234567890".indexOf(a.charAt(b))==-1)return false;return true}function _getInt(a,b,c,d){for(d=d;d>=c;d--){var f=a.substring(b,b+d);if(f.length<c)break;if(_isInteger(f))return f}return null}
function getDateFromFormat(a,b){a+="";b+="";var c=0,d=0,f="",e="",o,m,h=new Date,n=h.getYear(),l=h.getMonth()+1,g=1,k=h.getHours(),p=h.getMinutes();h=h.getSeconds();for(var q="";d<b.length;){f=b.charAt(d);for(e="";b.charAt(d)==f&&d<b.length;)e+=b.charAt(d++);if(e=="yyyy"||e=="yy"||e=="y"){if(e=="yyyy")m=o=4;if(e=="yy")m=o=2;if(e=="y"){o=2;m=4}n=_getInt(a,c,o,m);if(n==null)return 0;c+=n.length;if(n.length==2)n=n>70?1900+(n-0):2E3+(n-0)}else if(e=="MMM"||e=="NNN"){for(f=l=0;f<MONTH_NAMES.length;f++){var r=
MONTH_NAMES[f];if(a.substring(c,c+r.length).toLowerCase()==r.toLowerCase())if(e=="MMM"||e=="NNN"&&f>11){l=f+1;if(l>12)l-=12;c+=r.length;break}}if(l<1||l>12)return 0}else if(e=="EE"||e=="E")for(f=0;f<DAY_NAMES.length;f++){e=DAY_NAMES[f];if(a.substring(c,c+e.length).toLowerCase()==e.toLowerCase()){c+=e.length;break}}else if(e=="MM"||e=="M"){l=_getInt(a,c,e.length,2);if(l==null||l<1||l>12)return 0;c+=l.length}else if(e=="dd"||e=="d"){g=_getInt(a,c,e.length,2);if(g==null||g<1||g>31)return 0;c+=g.length}else if(e==
"hh"||e=="h"){k=_getInt(a,c,e.length,2);if(k==null||k<1||k>12)return 0;c+=k.length}else if(e=="HH"||e=="H"){k=_getInt(a,c,e.length,2);if(k==null||k<0||k>23)return 0;c+=k.length}else if(e=="KK"||e=="K"){k=_getInt(a,c,e.length,2);if(k==null||k<0||k>11)return 0;c+=k.length}else if(e=="kk"||e=="k"){k=_getInt(a,c,e.length,2);if(k==null||k<1||k>24)return 0;c+=k.length;k--}else if(e=="mm"||e=="m"){p=_getInt(a,c,e.length,2);if(p==null||p<0||p>59)return 0;c+=p.length}else if(e=="ss"||e=="s"){h=_getInt(a,c,
e.length,2);if(h==null||h<0||h>59)return 0;c+=h.length}else if(e=="a"){if(a.substring(c,c+2).toLowerCase()=="am")q="AM";else if(a.substring(c,c+2).toLowerCase()=="pm")q="PM";else return 0;c+=2}else if(a.substring(c,c+e.length)!=e)return 0;else c+=e.length}if(c!=a.length)return 0;if(l==2)if(n%4==0&&n%100!=0||n%400==0){if(g>29)return 0}else if(g>28)return 0;if(l==4||l==6||l==9||l==11)if(g>30)return 0;if(k<12&&q=="PM")k=k-0+12;else if(k>11&&q=="AM")k-=12;return(new Date(n,l-1,g,k,p,h)).getTime()}
function parseDate(a){var b=arguments.length==2?arguments[1]:false;generalFormats=["y-M-d","MMM d, y","MMM d,y","y-MMM-d","d-MMM-y","MMM d"];monthFirst=["M/d/y","M-d-y","M.d.y","MMM-d","M/d","M-d"];dateFirst=["d/M/y","d-M-y","d.M.y","d-MMM","d/M","d-M"];b=["generalFormats",b?"dateFirst":"monthFirst",b?"monthFirst":"dateFirst"];for(var c=null,d=0;d<b.length;d++)for(var f=window[b[d]],e=0;e<f.length;e++){c=getDateFromFormat(a,f[e]);if(c!=0)return new Date(c)}return null}
function isInteger(a){try{if(isNaN(a))return false;return parseFloat(a)==parseInt(a)?true:false}catch(b){return false}};

