function popup(C,G,F,A,D,E,B){newwin=window.open("","","scrollbars=no, toolbar="+E+", status=yes, menubar=no, resizable="+B+", width="+D+", height="+A+", top="+G+", left="+F);newwin.location=C;newwin.focus()}function fbkpop(A){newwin=window.open("","fbkwin","scrollbars=no, toolbar=no, status=yes, menubar=no, resizable=yes, width=490, height=440, top=10, left=10");newwin.location=A;newwin.focus()}function smspop(A){newwin=window.open("","smswin","scrollbars=yes, toolbar=no, status=yes, menubar=yes, resizable=yes, width=650, height=600, top=10, left=10");newwin.location=A;newwin.focus()}function testEmail(A){var B=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i;if(!B.test(A)){alert("Please enter a valid e-mail address.");return false}}function show(A){(document.getElementById(A)).style.display="block"}function hide(A){(document.getElementById(A)).style.display="none"}function highlight(B,A){(document.getElementById(B)).className=A}function lowlight(B,A){(document.getElementById(B)).className=A}function doSelectOption(selectBox,all){var check=all;with(document.forms[0]){for(i=0;i<elements[selectBox].options.length;i++){elements[selectBox].options[i].selected=check}}}function findPos(A){var B=curtop=0;if(A.offsetParent){B=A.offsetLeft;curtop=A.offsetTop;while(A=A.offsetParent){B+=A.offsetLeft;curtop+=A.offsetTop}}return[B,curtop]}function setDiv(B,F,E,D){var C=findPos(B);var A=document.getElementById(F);A.style.top=C[1]+(E)+"px";A.style.left=C[0]+(D)+"px"}function countText(B,C,A){len=(document.getElementById(B)).value.length;if(len>A){(document.getElementById(B)).value=(document.getElementById(B)).value.substring(0,A)}(document.getElementById(C)).value=A-len};