function openme(d,b,a,c){d=window.open(b,d,"width="+a+",height="+c+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");d.focus();}function openmeNoScroll(d,b,a,c){d=window.open(b,d,"width="+a+",height="+c+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");d.focus();}function popupCenter(b,c,d,j,e,g,h,f,a){if(navigator.appName=="Microsoft Internet Explorer"){topprop=(document.body.offsetHeight-j)/2;leftprop=(window.screen.availWidth-d)/2;}else{topprop=((window.outerHeight-j)/2)-pageYOffset;leftprop=((window.outerWidth-d)/2)-pageXOffset;}properties="width="+d+",height="+j+",left="+leftprop+",top="+topprop;if(g){properties=properties+",toolbar="+g;}if(h){properties=properties+",location="+h;}if(e){properties=properties+",scrollbars="+e;}if(f){properties=properties+",statusbar="+f;}if(a){properties=properties+",resizable="+a;}b=window.open(c,b,properties);b.focus();}function iJump(a){if(a.selectedIndex!=""){self.location.href=a.options[a.selectedIndex].value;}return true;}function TargetParentWindow(){if(!document.getElementsByTagName){return false;}var a=document.getElementsByTagName("a");for(var b=0;b<a.length;b++){if(!a[b].className.match("HardCode")&&!a[b].target.match("_blank")&&!a[b].target.match("_new")&&a[b].href.indexOf("mailto:")==-1){a[b].onclick=function(){opener.document.location.href=this.href;window.close();return false;};}}}function CheckRequiredCheckList(){var a=0;CheckListItems=document.frmNotifyMe.CheckedPageID;if(!CheckListItems.length){if(CheckListItems.checked){a=1;}}else{for(i=0;i<CheckListItems.length;i++){if(CheckListItems[i].checked){a++;}}}if(a==0){alert("Please select the section(s) you wish to receive notifications from.");return false;}else{return true;}}function CheckForm(e,b,d,c){if(e.length<=0){alert("Please enter your Email.");c.RequestersEmailID.focus();return false;}var a=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(!a.test(e)){alert("Please enter a valid email address");return false;}if(!(e==b)){alert("The emails do not match. Please check and re-enter.");c.ConfirmEmailID.select();c.ConfirmEmailID.focus();return false;}if(d=="1"){if(!CheckRequiredCheckList()){return false;}}if(d=="0"){MassEmailOption=c.MassEmailChecked;if(!MassEmailOption.checked){alert("You must check the box to agree to the terms of this service.");return false;}}return true;}function showHide(b){var a=document.getElementById(b);if(a.style.display=="block"){a.style.display="none";}else{a.style.display="block";}}function closeOthers(){for(var a=0;a<=100;a++){closeMore=document.getElementById("more"+a);closeMore.style.display="none";}}function SubmitThisForm(c,b,a,e,d){if(a==1){if(c.NotifyMe.checked==false){if(confirm(e)){FormSubmit(b,c);}}else{if(confirm(d)){FormSubmit(b,c);}}}else{FormSubmit(b,c);}}function FormSubmitWithoutRicheditor(a,b){b.method="post";b.action=a;b.submit();}function SubmitThisFormWithoutRicheditor(c,b,a,e,d){if(a==1){if(c.NotifyMe.checked==false){if(confirm(e)){FormSubmitWithoutRicheditor(b,c);}}else{if(confirm(d)){FormSubmitWithoutRicheditor(b,c);}}}else{FormSubmitWithoutRicheditor(b,c);}}function FormSubmitSingleUpload(a,b){b.method="post";b.action=a;b.submit();}function SubmitThisFormSingleUpload(c,b,a,e,d){if(a==1){if(c.NotifyMe.checked==false){if(confirm(e)==true){FormSubmitSingleUpload(b,c);}else{return false;}}else{if(confirm(d)==true){FormSubmitSingleUpload(b,c);}else{return false;}}}else{FormSubmitSingleUpload(b,c);}}function getCookie(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length;}return unescape(document.cookie.substring(c_start,c_end));}}return"";}function setCookie(b,c,a){alert(c);var d=new Date();d.setDate(d.getDate()+a);document.cookie=b+"="+escape(c)+((a==null)?"":";expires="+d.toGMTString());}
