function ValidateAddress(n,t){var u,r;for(u=t.Value.toUpperCase(),r=new Array(10),r[0]="P.O. BOX",r[1]="P.O BOX",r[2]="PO. BOX",r[3]="PO BOX",r[4]="P.O.BOX",r[5]="P.OBOX",r[6]="PO.BOX",r[7]="POBOX",r[8]="POB ",r[9]="P. O.",r[10]="P O B",j=0;j<r.length;j++)for(i=0;i<=u.length-r[j].length;i++)if(u.substring(i,r[j].length+i)==r[j])return t.IsValid=!1,t;return t.IsValid=!0,t}function printPage(){var t=document.getElementById("btnPrint"),n=document.getElementById("btnBack");t!=null&&(t.style.visibility="hidden"),n!=null&&(n.style.visibility="hidden"),window.print(),t!=null&&(t.style.visibility="visible"),n!=null&&(n.style.visibility="visible")}function printPageDSS(){var i=document.getElementById("btnPrint"),r=document.getElementById("btnBack"),n=document.getElementById("Table5"),t=document.getElementById("contentTable");i!=null&&(i.style.visibility="hidden"),r!=null&&(r.style.visibility="hidden"),n!=null&&(n.style.visibility="hidden"),t!=null&&(t.style.marginTop="-90px"),window.print(),i!=null&&(i.style.visibility="visible"),r!=null&&(r.style.visibility="visible"),n!=null&&(n.style.visibility="visible"),t!=null&&(t.style.marginTop="0px")}function CheckMinLength3(n,t){return t.Value.length>2?(t.IsValid=!0,!0):(t.IsValid=!1,!1)}function CheckPolicyDaySpan22(n,t){jsDateDiff(n,t,"d",!0)>366&&alert("There is more than a year between the Inception and Expiration date!")}function SetAutoExpirationDate(n,t){if(n.length>5){ExpDateString=AddYearToDate(n,!1,1);var i=new Date(ExpDateString);t.SetDate(n),t.SetYear(n.getYear()+1)}}function ConvertUTCToEUR(n){var i=n.getMonth()+1;return i.toString()+"/"+n.getDate().toString()+"/"+n.getFullYear().toString()}function AddYearToDate(n,t,i){var u,r;return t?(r=n.split("/"),u=r[1]+"/"+r[0]+"/"+r[2]):u=n,d=new Date(u),d.setFullYear(i+d.getFullYear()),d.setMonth(d.getMonth()+1),d.toString()}function jsDateDiff(n,t,i,r){var u=0,e=Date.parse(n),o=Date.parse(t),f=o-e;switch(i.charAt(0)){case"d":case"D":u=parseInt(f/864e5),r&&(u+=parseInt(f%864e5/43200001));break;case"h":case"H":u=parseInt(f/36e5),r&&(u+=parseInt(f%36e5/1800001));break;case"m":case"M":u=parseInt(f/6e4),r&&(u+=parseInt(f%6e4/30001));break;case"s":case"S":u=parseInt(f/1e3),r&&(u+=parseInt(f%1e3/501));break;default:return null}return u}function BeforeInsurerRowDeleted(){return!ConfirmAction("Are you sure you want to remove this Insurer?")}function MenuOn(n){n.className="MenuItmA"}function MenuOff(n){n.className="MenuItm"}function OpenCalendar(n,t,i){popUp=window.open(i+"Calendar.aspx?formname="+document.forms[0].name+"&id="+n+"&selected="+document.forms[0].elements[n].value+"&postBack="+t,"popupcal","width=204,height=206,left=200,top=250")}function SetDate(n,t,i,r){eval("var theform = document."+n+";"),popUp.close(),theform.elements[t].value=i,r&&__doPostBack(t,""),theform.elements[t].setActive()}function OpenWin(n,t){var i=$find(t);i!=null&&(i.setUrl(n),i.setSize(700,450),i.Center(),i.show())}function OpenWinHistory(n,t,i,r){var u=$find(t);u!=null&&(u.setUrl(n),u.setSize(i,r),u.Center(),u.show())}function ConfirmAction(n){return confirm(n)}function GetRadWindow(){var n=null;return window.radWindow?n=window.radWindow:window.frameElement.radWindow&&(n=window.frameElement.radWindow),n}function CloseOnReload(){GetRadWindow().Close()}var popUp;
