var remoteURL="/final/servlet/ErRemoteScriptingServlet";function validateDate(n,j,t,b,g,a){var t=t.value;var b=b.value;var g=g.value;var a=a.value;var v=t.length;if(v==1){t="0"+t;}var p=b.length;if(p==1){b="0"+b;}var s=g.length;if(s==1){g="0"+g;}var o=a.length;if(o==1){a="0"+a;}var e=n.substring(0,n.indexOf("/"));
var k=n.substring(n.indexOf("/")+1);var f=k.substring(0,k.indexOf("/"));var l=k.substring(k.indexOf("/")+1);var u=l+e+f+t+g;var q=j.substring(0,j.indexOf("/"));var h=j.substring(j.indexOf("/")+1);var r=h.substring(0,h.indexOf("/"));var d=h.substring(h.indexOf("/")+1);var m=d+q+r+b+a;if(u>m||u==m){return false;
}else{return true;}return true;}function checktime(r,k,d,j){var d=d;var j=j;var n=d.length;if(n==1){d="0"+d;}var g=j.length;if(g==1){j="0"+j;}var e=r.substring(0,r.indexOf("/"));var l=r.substring(r.indexOf("/")+1);var m=l.substring(0,l.indexOf("/"));var h=l.substring(l.indexOf("/")+1);var q=h+e+m+d;var p=k.substring(0,k.indexOf("/"));
var b=k.substring(k.indexOf("/")+1);var a=b.substring(0,b.indexOf("/"));var o=b.substring(b.indexOf("/")+1);var f=o+p+a+j;if(q>f||q==f){return false;}return true;}function focusAndAnimate(b){if(b=="ok"){var a=Ext.get("configMod");if(a!=null){a.animate({to:{"top":51}});a=Ext.get("bgReportName");if(a!=null){Ext.getCmp("bgReportName").focus();
}}a=null;delete a;}}function validateTextBox(a){if(!checkblank(a)){Ext.Msg.show({title:"Alert",msg:_checkempty,buttons:Ext.Msg.OK,icon:Ext.Msg.WARNING,fn:focusAndAnimate});return false;}else{if((a.length>32)){Ext.Msg.show({title:"Alert",msg:" Report Name  should not exceed 32 characters ",buttons:Ext.Msg.OK,icon:Ext.Msg.WARNING,fn:focusAndAnimate});
return false;}else{if(!checkspecial(a,"`~!@#$%^&*()+={}[]|\\:;\"'<>,.?/")){Ext.Msg.show({title:"Alert",msg:_checkspecial,buttons:Ext.Msg.OK,icon:Ext.Msg.WARNING,fn:focusAndAnimate});return false;}else{return true;}}}}function validateTextBoxwithspace(b,a){if(!checkblank(b)){if(a){Ext.Msg.show({title:"Alert",msg:_checkempty,buttons:Ext.Msg.OK,icon:Ext.Msg.WARNING});
}else{return _checkempty;}}else{if(!checkdoublespace(b)){if(a){Ext.Msg.show({title:"Alert",msg:_checkdoublespace,buttons:Ext.Msg.OK,icon:Ext.Msg.WARNING});}else{return _checkdoublespace;}}else{if(!checkspecial(b,"`~!@#$%^&*()+={}[]|\\:;\"'<>,.?/")){if(a){Ext.Msg.show({title:"Alert",msg:alertTxt,buttons:Ext.Msg.OK,icon:Ext.Msg.WARNING});
}else{return _checkspecial;}}else{if(a){return true;}else{return"true";}}}}}function validateTextBoxWithSpecialChars(g,b,f){var a=Ext.getCmp("reportGeneration");var e=64;var d=_checkempty;if(Ext.isEmpty(a)){e=200;}else{d=_checkemptyBackground;}_checkNameLength="Name should not exceed "+e+" characters.";
if(!checkblank(g)){if(f){Ext.Msg.show({title:"Alert",msg:d,buttons:Ext.Msg.OK,icon:Ext.Msg.WARNING});}else{return _checkempty;}}else{if(!checkdoublespace(g)){if(f){Ext.Msg.show({title:"Alert",msg:_checkdoublespace,buttons:Ext.Msg.OK,icon:Ext.Msg.WARNING});}else{return _checkdoublespace;}}else{if((g.length>e)){if(f){Ext.Msg.show({title:"Alert",msg:_checkNameLength,buttons:Ext.Msg.OK,icon:Ext.Msg.WARNING,});
}else{return _checkNameLength;}}else{if(b!=null&&b!=undefined&&b!="undefined"){if(b!=null&&b=="Attachment"){if(!checkspecial(g,"<>|:\"*?\\/$!@#%^&*()~+={}[];',.")){if(f){Ext.Msg.show({title:"Alert",msg:alertTxtBgrnd,buttons:Ext.Msg.OK,icon:Ext.Msg.WARNING});return false;}else{return false;}}}else{if(b!=null&&b=="InLine"){if(!checkspecial(g,"<>|:\"*?\\/$!@#%^&*()~+={}[];',.")){if(f){Ext.Msg.show({title:"Alert",msg:alertTxt,buttons:Ext.Msg.OK,icon:Ext.Msg.WARNING});
return false;}else{return false;}}}}if(f){return true;}else{return"true";}}}}}return false;}function handleSpecialChars(d){var a=d;if(d!=null&&d!=undefined&&d!="undefined"){var e=d.indexOf("&bg_reportname=")+"&bg_reportname=".length;if(d.indexOf("&bg_reportname=")>-1){var g=d.substring(0,e);if(d.indexOf("&",e)>-1){var f=d.substring(e,d.indexOf("&",e));
var b=d.substring(d.indexOf("&",e));if(f.indexOf("'")){f=f.replace(/'/g,"\\'");}a=g+f+b;}else{var f=d.substring(e);if(f.indexOf("'")){f=f.replace(/'/g,"\\'");}a=g+f;}}}return a;}function validateRadio(b){for(var a=0;a<b.length;a++){if(b[a].checked){return true;}}return false;}function checkblank(a){if(a.length==0){int_Flag=0;
}for(i=1;i<=a.length;i++){if(a.charAt(i-1)==" "){int_Flag=0;}else{int_Flag=1;break;}}if(int_Flag!=1){return false;}return true;}function checkspace(a){for(count=0;count<a.length;count++){if(a.charAt(count)==" "){return false;}}return true;}function checkdoublespace(a){for(count=0;count<a.length;count++){if(a.charAt(count)==" "&&a.charAt(count-1)==" "){return false;
}}return true;}function checkFileName(b){if(b!=null&&b!=undefined&&b!="undefined"){if(b.indexOf("&")!=-1){var a=new RegExp("\\&","g");b=b.replace(a,"|amp|");}if(b.indexOf("+")!=-1){var a=new RegExp("\\+","g");b=b.replace(a,"|plus|");}if(b.indexOf("%")!=-1){var a=new RegExp("\\%","g");b=b.replace(a,"|pct|");
}if(b.indexOf("'")!=-1){var a=new RegExp("\\'","g");b=b.replace(a,"|sqot|");}if(b.indexOf("#")!=-1){var a=new RegExp("\\#","g");b=b.replace(a,"|hash|");}}return b;}function replaceManulDecodeChar(a){if(a!=null&&a!=undefined&&a!="undefined"){if(a.indexOf("|amp|")!=-1){a=a.replace(/amp/gi,"&");}if(a.indexOf("|plus|")!=-1){a=a.replace(/plus/gi,"+");
}if(a.indexOf("|pct|")!=-1){a=a.replace(/pct/gi,"%");}if(a.indexOf("|sqot|")!=-1){a=a.replace(/sqot/gi,"'");}if(a.indexOf("|hash|")!=-1){a=a.replace(/hash/gi,"#");}}return a.replace(new RegExp("\\|","g"),"");}function checkcomma(a){s_val=a.value;len=s_val.length;if(s_val.indexOf(",")>-1){if(s_val.charAt(0)==","||s_val.charAt(len-1)==","){return false;
}}return true;}function numKeyPress(){if(event.keyCode>=48&&event.keyCode<=57){return true;}else{return false;}}function checknumber(f,k){var a="";if(f=="+"){a=" .+0123456789";}else{a=" .+-0123456789";}var g=" .0123456789";var h;var e=false;var j=false;var b=false;h=a.indexOf(k.charAt(0));if(h==1){e=true;
}else{if(h<1){return false;}}for(var d=1;d<k.length;d++){h=g.indexOf(k.charAt(d));if(h<0){return false;}else{if(h==1){if(e){return false;}else{e=true;}}else{if(h==0){if(e||b){j=true;}}else{if(j){return false;}else{b=true;}}}}}return true;}function checkspecial(b){var d="+-=~!@#$%^&*()\"';";for(var a=0;
a<b.length;a++){check_char=d.indexOf(b.charAt(a));if(check_char>=0){return false;}}return true;}function checkspecial(d,b){for(var a=0;a<d.length;a++){check_char=b.indexOf(d.charAt(a));if(check_char>=0){return false;}}return true;}function checkspecialnomess(d,b){obj_val=d.value;for(var a=0;a<obj_val.length;
a++){check_char=b.indexOf(obj_val.charAt(a));if(check_char>=0){return false;}}return true;}function clearformT(a){for(i=0;i<a.elements.length;i++){if(a[i].type=="text"){a[i].value="";}if(a[i].type=="password"){a[i].value="";}if(a[i].type=="radio"){a[i].checked=false;}}}function checkdate(b,d){b=b.value;
var e=b.split("-");d=d.value;assarray=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"];dayarray=[31,29,31,30,31,30,31,31,30,31,30,31];count=0;flag=0;cmoncount=0;moncount=0;var a=d.indexOf("-");if(a==-1){alert(_checkdate);return false;}else{dates=d.split("-");months=dates[1];months=months.toLowerCase();
flag1=0;for(i=0;i<assarray.length;i++){if(assarray[i]==e[1]){cmonflag=i;break;}else{continue;}}for(i=0;i<assarray.length;i++){if(assarray[i]==months){flag=1;monflag=i;dayscheck=dayarray[count];break;}else{flag=0;continue;}}if(flag!=1){flag1=1;alert(_checkmonth);return false;}days=dates[0];years=dates[2];
leap=years%4;if(days>dayscheck||days<1){alert(_checkday);flag1=1;return false;}if(isNaN(days)){alert(_isNaN_day);flag1=1;return false;}if(isNaN(years)){alert(_isNaN_year);flag1=1;return false;}if(years<1997){alert(_isGreater_year);flag1=1;return false;}if(months=="feb"&&leap==0&&days>29){alert(_isLeap_year);
flag1=1;}if(months=="feb"&&leap>0&&days>28){alert(_isLeap_month);flag1=1;}}if(years>e[2]){alert(_checksal);return false;}else{if(years==e[2]&&monflag>cmonflag){alert(_checksal);return false;}else{if(years==e[2]&&monflag==cmonflag&&days>e[0]){alert(_checksal);return false;}}}return true;}function check_decimal(a){num=a.value;
numvals=num.split(".");if(!numvals[1]){return true;}if(numvals[1].length>2){alert(_check_decimal);return false;}return true;}function checkTime(n,j,t,b,g,a){var n=n.value;var j=j.value;var t=t.value;var b=b.value;var g=g.value;var a=a.value;var v=t.length;if(v==1){t="0"+t;}var p=b.length;if(p==1){b="0"+b;
}var s=g.length;if(s==1){g="0"+g;}var o=a.length;if(o==1){a="0"+a;}var e=n.substring(0,n.indexOf("/"));var k=n.substring(n.indexOf("/")+1);var f=k.substring(0,k.indexOf("/"));var l=k.substring(k.indexOf("/")+1);var u=l+e+f+t+g;var q=j.substring(0,j.indexOf("/"));var h=j.substring(j.indexOf("/")+1);var r=h.substring(0,h.indexOf("/"));
var d=h.substring(h.indexOf("/")+1);var m=d+q+r+b+a;if(u>m||u==m){return false;}else{return true;}return true;}function checkmail(e){var f=e;var a=true;num=0;if(f!=""&&f!=null){var d="	`~!#$%^&*()+={}[]\\|?;\"'/<>:";for(var b=0;b<d.length;b++){check_char=f.indexOf(d.charAt(b));if(check_char>-1){a=false;
}}if(a==false){a=false;return(a);}if(f.charAt((f.length)-1)=="@"){a=false;return(a);}for(c=0;c<f.length;c++){if(f.charAt(c)=="@"){num++;}}if(num>1){a=false;return(a);}if(f.charAt((f.length)-1)=="."){a=false;return(a);}if(f.indexOf("@.")>-1){a=false;return(a);}if(f.indexOf("@")==-1){a=false;return(a);
}if(f.indexOf(".")==-1){a=false;return(a);}}return(a);}function checkmultiplemailid(e){var b=true;var a=e.split(",");for(var d=0;d<a.length;d++){if(!checkmail(a[d])){b=false;return(b);}}return(b);}function checkspecialpass(d){obj_val=d.value;var b="$,";for(var a=0;a<obj_val.length;a++){check_char=b.indexOf(obj_val.charAt(a));
if(check_char>=0){alert(_checkspecial);return false;}}return true;}function comptypename(e){var a=new Array();for(var d=0;d<e.length;d++){var b=e[d];if(b.indexOf(":NULL")>-1){a[d]=b.substring(0,b.indexOf(":NULL"))+":"+b.substring(b.indexOf("NULL:")+5);}else{a[d]=b;}}return a;}function goTotrend(s){var x=s.trendenable.value;
if(x=="true"){var k;k=s.detailtime.value;var f=s.er_timeline.value;var w=s.getMaxDaysInMonth.value;var B;k=k*24;k=parseInt(k);if(f!="Any"){var h;var u=f.substring(f.indexOf(" ")+1);var y=f.substring(0,f.indexOf(" "));u=u.toLowerCase();if(u.indexOf("da")>-1){h=parseInt(y)*24;}else{if(u.indexOf("wee")>-1){h=parseInt(y)*7*24;
}else{if(u.indexOf("mon")>-1){h=parseInt(y)*parseInt(w)*24;}}}if(h<24){alert("timevalue < 24");if(s.er_trenddata[1].checked){s.er_trenddata[0].checked=true;s.er_trenddata[0].disabled=false;s.er_trenddata[1].disabled=true;s.er_trenddata.value="No";return true;}else{s.er_trenddata[1].disabled=true;return true;
}}else{if(k!=null&&!k==""&&k>0){if(h>k){if(s.er_trenddata[0].checked){s.er_trenddata[1].checked=true;s.er_trenddata[1].disabled=false;s.er_trenddata[0].disabled=true;s.er_trenddata.value="Yes";var m=s.er_timeline.options[s.er_timeline.selectedIndex].value;var I=s.er_stdate.value;var q=s.er_enddate.value;
var l=s.er_sthr.value;var H=s.er_endhr.value;var E=s.inidate.value;getTrendTimeline();jsrsExecute(remoteURL,setTime,"getTrendTime",new Array(m,I,q,l,H,E));return true;}else{return true;}}else{s.er_trenddata[1].disabled=false;s.er_trenddata[0].disabled=false;return true;}}else{s.er_trenddata[1].disabled=false;
return true;}}}else{var E=s.inidate.value;var G=formatDate(new Date(getDateFromFormat(s.er_stdate.value,E)),"MM/dd/yyyy");var r=formatDate(new Date(getDateFromFormat(s.er_enddate.value,E)),"MM/dd/yyyy");if(G!=null&&r!=null){var F=G.substring(0,G.indexOf("/"));var a=G.substring(G.indexOf("/")+1);var p=a.substring(0,a.indexOf("/"));
var A=a.substring(a.indexOf("/")+1);var t=document.forms[0].er_sthr.value;var z=r.substring(0,r.indexOf("/"));var C=r.substring(r.indexOf("/")+1);var e=C.substring(0,C.indexOf("/"));var n=C.substring(C.indexOf("/")+1);var g=document.forms[0].er_endhr.value;var d=new Date(A,F,p,t,0,0);var v=d.getTime();
var D=new Date(n,z,e,g,0,0);var j=D.getTime();var b=j-v;var o=b/(1000*60*60);if(o<24){if(s.er_trenddata[1].checked){B=window.confirm(_detailedmsg);if(B){s.er_trenddata[0].checked=true;s.er_trenddata[0].disabled=false;s.er_trenddata[1].disabled=true;s.er_trenddata.value="No";getTrendTimeline();return true;
}else{return false;}}else{return true;}}else{if(k!=null&&!k==""&&k>0){if(o>k){if(s.er_trenddata[0].checked){B=window.confirm(_trendmsg);if(B){if(s.er_trenddata[0].checked){s.er_trenddata[1].checked=true;}s.er_trenddata[1].disabled=false;s.er_trenddata[0].disabled=true;s.er_trenddata.value="Yes";getTrendTimeline();
return true;}else{return false;}}else{return true;}}else{document.forms[0].er_trenddata[1].disabled=false;document.forms[0].er_trenddata[0].disabled=false;return true;}}else{return true;}}}}}else{return true;}}function validateDateTime(e,r,k,g,a,l){var u=k.length;if(u==1){k="0"+k;}var b=g.length;if(b==1){g="0"+g;
}var t=a.length;if(t==1){a="0"+a;}var m=l.length;if(m==1){l="0"+l;}var s=e.substring(0,e.indexOf("/"));var d=e.substring(e.indexOf("/")+1);var j=d.substring(0,d.indexOf("/"));var n=d.substring(d.indexOf("/")+1);var v=n+s+j+k+a;var o=r.substring(0,r.indexOf("/"));var q=r.substring(r.indexOf("/")+1);var f=q.substring(0,q.indexOf("/"));
var h=q.substring(q.indexOf("/")+1);var p=h+o+f+g+l;if(v>p||v==p){return false;}return true;}function validateSingleByte(b){for(var d=0;d<b.length;d++){var a=b.charCodeAt(d);if(a>255){return false;}}return true;}function Showhide(){var a=document.getElementById("invisible").style;var b=document.getElementById("collectdata").style;
if(a.display=="block"){document.getElementById("invisible").style.display="none";document.getElementById("invisible").style.visibility="hidden";showHideData("No");}else{document.getElementById("invisible").style.display="block";document.getElementById("invisible").style.visibility="visible";showHideData("Yes");
}}function showHideData(a){if(a=="No"){document.getElementById("collectdata").style.display="block";document.getElementById("collectdata").style.visibility="visible";}else{document.getElementById("collectdata").style.display="none";document.getElementById("collectdata").style.visibility="hidden";}}function getTimeValue(k,j){var e=j.findField("getMaxDaysInMonth").getValue();
var g;if(k!="Any"){var n=k.substring(k.indexOf(" ")+1);var m=k.substring(0,k.indexOf(" "));n=n.toLowerCase();if(n.indexOf("da")>-1){g=parseInt(m)*24;}else{if(n.indexOf("wee")>-1){g=parseInt(m)*7*24;}else{if(n.indexOf("mon")>-1){g=parseInt(m)*parseInt(e)*24;}}}}else{var l=j.findField("inidate").getValue();
var p=formatDate(new Date(getDateFromFormat(j.s_form.findField("fromfield").getValue(),l)),"MM/dd/yyyy");var d=formatDate(new Date(getDateFromFormat(j.s_form.findField("tofield").getValue(),l)),"MM/dd/yyyy");if(p!=null&&d!=null){var f=new Date(p);var b=new Date(d);var h=f.getTime();var a=b.getTime();
var o=a-h;g=o/(1000*60*60);}}return g;}function getTimeVal(l,f,k,p){var h;if(l!="Any"){var e=p;var n=l.substring(l.indexOf(" ")+1);var m=l.substring(0,l.indexOf(" "));n=n.toLowerCase();if(n.indexOf("da")>-1){h=parseInt(m)*24;}else{if(n.indexOf("wee")>-1){h=parseInt(m)*7*24;}else{if(n.indexOf("mon")>-1){h=parseInt(m)*parseInt(e)*24;
}}}}else{var q=f;var d=k;if(q!=null&&d!=null){var g=new Date(q);var b=new Date(d);var j=g.getTime();var a=b.getTime();var o=a-j;h=o/(1000*60*60);}}return h;}function isUserTimelineLimitExceeded(e,k,d,f){if(e!=null&&e=="1 month"){k="31";}var b;var a=k;var j=e.substring(e.indexOf(" ")+1);var h=e.substring(0,e.indexOf(" "));
j=j.toLowerCase();if(j.indexOf("da")>-1){b=parseInt(h)*24;}else{if(j.indexOf("wee")>-1){b=parseInt(h)*7*24;}else{if(j.indexOf("mon")>-1){b=parseInt(h)*parseInt(a)*24;}}}b=b*60*60*1000;var g=f.getTime()-d.getTime();if(b>=g){return true;}else{return false;}}function checkDateTime(b,a){var d=true;if(b>a){Ext.MessageBox.show({title:"Alert",msg:_invalidDateTime,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});
d=false;}if(b.getTime()==a.getTime()){Ext.MessageBox.show({title:"Alert",msg:_invalidSameTime,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});d=false;}return d;}function checkTimePeriod(a,d,b,f){var e=true;if(a>0){if(a>b){Ext.MessageBox.show({title:"Alert",msg:_invalidFromTime,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});
e=false;}else{if(a==b){if(d==f){Ext.MessageBox.show({title:"Alert",msg:_invalidFromTime,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});e=false;}else{if(d>f){Ext.MessageBox.show({title:"Alert",msg:_invalidFromTime,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});e=false;}}}}}else{if(a>=b&&d>0&&(d>f)&&b<24){Ext.MessageBox.show({title:"Alert",msg:_invalidFromTime,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});
e=false;}}if(b=="24"&&f>0){Ext.MessageBox.show({title:"Alert",msg:_invalidMinutes,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});e=false;}if(a==0&&b==0&&d==0&&f==0){Ext.MessageBox.show({title:"Alert",msg:_invalidToTime,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});e=false;}return e;
}function checkTimeLineForBgLimit(d,f,b,a){var e=true;var g=getMilliSecondsForFixedTimeline(d,f);var h=a.getTime()-b.getTime();if(h>g){e=false;}return e;}function getMilliSecondsForDateTime(f,e,j){var k=0;var l=formatDate(new Date(getDateFromFormat(e,f)),"MM/dd/yyyy");var b=formatDate(new Date(getDateFromFormat(j,f)),"MM/dd/yyyy");
if(l!=null&&b!=null){var g=new Date(l);var d=new Date(b);var h=g.getTime();var a=d.getTime();k=a-h;}return k;}function getMilliSecondsForFixedTimeline(d,b){var f=0;if(d!="Any"){var a=d.substring(d.indexOf(" ")+1);var e=d.substring(0,d.indexOf(" "));a=a.toLowerCase();if(a.indexOf("da")>-1){f=parseInt(e)*24;
}else{if(a.indexOf("wee")>-1){f=parseInt(e)*7*24;}else{if(a.indexOf("mon")>-1){f=parseInt(e)*parseInt(b)*24;}}}}return(f*(1000*60*60));}function checkUserTimeline(e,f,d,a,h){var b=getMilliSecondsForDateTime(d,a,h);var g=getMilliSecondsForFixedTimeline(e,f);var j=parseInt("744")*(1000*60*60);if(g==j&&g<b){return true;
}else{Ext.MessageBox.show({title:"Alert",msg:_invalidUserTime,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});return false;}}function getTimeForuser(e){var b=e.er_usertimeline.value;var d=e.er_timeline.options[e.er_timeline.selectedIndex].value;var a=getTimeValue(d,e);var f=getTimeValue(b,e);
var g=parseInt("744");if(a>f){if(f==g&&f<a){return true;}else{alert("The specified timeline should not be greater than the maximum timeline set in your profile");return false;}}else{return true;}}function getTimeForcurrentuser(b,e,f,g,l){var a=f;var k=g;var h="";var j="";if(k!=null&&(k=="Any"||k=="any")){h=getTimeVal(k,b,e,l);
j=getTimeVal(a,b,e,l);}else{h=getTimeVal(k,e,l);j=getTimeVal(a,e,l);}var d=parseInt("744");if(h>j){if(j==d&&j<h){return true;}else{Ext.Msg.show({title:"Alert",msg:"The specified timeline should not be greater than the maximum timeline set in your profile",buttons:Ext.Msg.OK,icon:Ext.Msg.WARNING});return false;
}}else{return true;}}function dobackground(d){var b=document.forms[0];var e=b.forwardto.value;var a="../reporter/"+e+".jsp?er_reportgenration="+d+"&startdate="+b.er_stdate.value+"&enddate="+b.er_enddate.value;document.forms[0].action=a;document.forms[0].submit();}function makeChange(d){if(thisForm.bgenabled.value=="Yes"||thisForm.bgenabled.value=="yes"){var b=thisForm.limitforbg.value;
var a=getTimeValue(b,thisForm);var e=getTimeValue(thisForm.er_timeline.value,thisForm);if(e>=a){document.forms[0].action="../reporter/"+d+".jsp?er_reportgenration=background";document.forms[0].submit();}else{document.forms[0].action="../reporter/"+d+".jsp?er_reportgenration=foreground";document.forms[0].submit();
}}}function reportList(){window.location.href="/final/servlet/com.eg.ErStartBackGroundReportC?er_bgreportfrom=consolidated_zone_report&userID=<%=urs%>&savereport=search&er_filterby=Report_Name&er_trgttype=Farm Report&forwardto=ErBackGoundProcess";}