function openPopup(b,d,e,c){var a=screen.availWidth-20;var f=screen.availHeight-20;i=b.indexOf("?")+1;b=b.substring(0,i)+"p=true&"+b.substring(i);if(e==""){e=500}if(c==""){c=600}if(e>a){e=a}if(c>f){e=f}leftpos=(screen.width/2)-(e/2);obenpos=(screen.height/2)-(c/2);newwin=window.open(b,d,"scrollbars=yes,resizable=yes,width="+e+",height="+c+",top="+obenpos+",left="+leftpos);newwin.focus()}function submitForm(a,c,b){document.forms[a][c].value=b;document.forms[a].submit()}function submitWithScroll(a,c,b){if(document.all){x=document.documentElement.scrollLeft;y=document.documentElement.scrollTop}else{x=window.pageXOffset;y=window.pageYOffset}if(document.forms[a]["action"].indexOf("?")<0){document.forms[a]["action"]=document.forms[a]["action"]+"?"}document.forms[a][c].value=b;document.forms[a]["action"]=document.forms[a]["action"]+"&scrollX="+x+"&scrollY="+y;document.forms[a].submit()}function scrollWindow(a,b){window.scrollTo(a,b)}function printpage(){window.print()}function initClearSearchField(a,c){var b=new String(a.value);
if(b==c){a.value=""}}function checkCheckbox(a,b){if(document.getElementById(a).checked){document.getElementById(b).value="on"}else{document.getElementById(b).value=""}}function showDiv(c,b){var a=document.getElementById(c);if(a!=null){if(b==true){a.style.visibility="visible"}else{a.style.visibility="hidden"}}}function setElemValueFromPopup(b,a){window.opener.document.getElementById(b).value=a;window.close()}function encrypt_string(d,f,c,j){var k=unescape(d);var b=k.length;var g;var a="";var c="";for(var h=0;h<b;h++){var e=k.charCodeAt(h);if(e>90){a=a+String.fromCharCode(e-f)}else{a=a+String.fromCharCode(e+f)}}if(j==""){j=a}g='<a href="mailto:'+a+'" '+c+">"+j+"</a>";document.write(g)};