var popUpWin=0;function popUpWindow(f,e,d,b,a,c){if(popUpWin){if(!popUpWin.closed){popUpWin.close()}}popUpWin=open(f,"popUpWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+c+",resizable=no,copyhistory=yes,width="+b+",height="+a+",left="+e+", top="+d+",screenX="+e+",screenY="+d+"")}function popUpWindowCentered(f,c,a,d){var e=(screen.width-c)/2;var b=(screen.height-a)/2;popUpWindow(f,e,b,c,a,d)}function Open(a){self.parent.document.location.href=a;self.parent.tb_remove()}function OutsideLink(c,a){var b="";if(mode==1){b=c+"?n=1&t="+a+"&KeepThis=true&TB_iframe=true&width="+width+"&height="+height+"&modal=true"}else{b=c+"?n=1&t="+a+"&KeepThis=true&TB_iframe=true&width="+width+"&height="+height+"&modal=true"}tb_show("Attenzione",b)}function OpenExternal(b,a){targetUrl=b+"?t="+a+"&KeepThis=true&TB_iframe=true&width=340&height=290&modal=true";tb_show("Attenzione",targetUrl)}function OpenExternalBlank(b,a){targetUrl=b+"?n=1&t="+a+"&KeepThis=true&TB_iframe=true&width=340&height=290&modal=true";tb_show("Attenzione",targetUrl)}function GetLink(a,e,c,i,b,d,f,j,h,g){$.get("/tracer.axd",{s:e,e:c,sa:i,ct:b,c:d,l:f,u:j,ds:h,ss:g});self.parent.document.location.href=a;self.parent.tb_remove()}function GetExternalLink(a,e,c,j,b,d,f,k,i,h){$.get("/tracer.axd",{s:e,e:c,sa:j,ct:b,c:d,l:f,u:k,ds:i,ss:h});var g=window.open(a,"_blank");g.focus();self.parent.tb_remove()}function Trim(a){if(a==""||a==null){return""}return a.replace(/^\s+|\s+$/g,"")}function CloseMessageBox(a){$("#"+a).hide()}function CloseParentBox(){self.parent.tb_remove()}function CloseBox(){tb_remove()}function validateTinyMCEText(c,b){var a=document.getElementById(c.controltovalidate);tinyMCE.triggerSave();b.Value=(a.value.replace(/^W+/,"")).replace(/W+$/,"");b.IsValid=(b.Value!="")}function TraceMe(d,b,h,a,c,e,i,g,f){$.get("/tracer.axd",{s:d,e:b,sa:h,ct:a,c:c,l:e,u:i,ds:g,ss:f});return false};