function MM_findObj(E,D){var C,B,A;if(!D){D=document}if((C=E.indexOf("?"))>0&&parent.frames.length){D=parent.frames[E.substring(C+1)].document;E=E.substring(0,C)}if(!(A=D[E])&&D.all){A=D.all[E]}for(B=0;!A&&B<D.forms.length;B++){A=D.forms[B][E]}for(B=0;!A&&D.layers&&B<D.layers.length;B++){A=MM_findObj(E,D.layers[B].document)}if(!A&&D.getElementById){A=D.getElementById(E)}return A}function MM_validateForm(){var D,B,A,J,G,E,C,H,I="",F=MM_validateForm.arguments;for(D=0;D<(F.length-2);D+=3){G=F[D+2];val=MM_findObj(F[D]);if(val){J=val.name;if((val=val.value)!=""){if(G.indexOf("isEmail")!=-1){B=val.indexOf("@");if(B<1||B==(val.length-1)){I+="- "+J+" must contain an e-mail address.\n"}}else{if(G!="R"){E=parseFloat(val);if(isNaN(val)){I+="- "+J+" must contain a number.\n"}if(G.indexOf("inRange")!=-1){B=G.indexOf(":");C=G.substring(8,B);H=G.substring(B+1);if(E<C||H<E){I+="- "+J+" must contain a number between "+C+" and "+H+".\n"}}}}}else{if(G.charAt(0)=="R"){I+="- "+J+" is required.\n"}}}}if(I){alert("The following error(s) occurred:\n"+I)}document.MM_returnValue=(I=="")}function hasOptions(A){if(A!=null&&A.options!=null){return true}return false}function moveSelectedOptions(F,E){if(arguments.length>3){var C=arguments[3];if(C!=""){unSelectMatchingOptions(F,C)}}if(!hasOptions(F)){return }for(var B=0;B<F.options.length;B++){var D=F.options[B];if(D.selected){if(!hasOptions(E)){var A=0}else{var A=E.options.length}E.options[A]=new Option(D.text,D.value,false,false)}}for(var B=(F.options.length-1);B>=0;B--){var D=F.options[B];if(D.selected){F.options[B]=null}}if((arguments.length<3)||(arguments[2]==true)){sortSelect(F);sortSelect(E)}F.selectedIndex=-1;E.selectedIndex=-1}function selectAllOptions(B){if(!hasOptions(B)){return }for(var A=0;A<B.options.length;A++){B.options[A].selected=true}}function moveAllOptions(B,A){selectAllOptions(B);if(arguments.length==2){moveSelectedOptions(B,A)}else{if(arguments.length==3){moveSelectedOptions(B,A,arguments[2])}else{if(arguments.length==4){moveSelectedOptions(B,A,arguments[2],arguments[3])}}}}function submitCommentForm(A){A.submit()}function showTaazaBuzz(B,A,C){oCommentDiv=document.getElementById("taazabuzzDiv");owebsiteCommentForm=document.getElementById("taazabuzzForm");owebsiteCommentForm.websiteId.value=A;owebsiteCommentForm.topicId.value=C;return showComponent(B,"taazabuzzDiv")}function hideTaazaBuzz(){oCommentDiv=document.getElementById("taazabuzzDiv");owebsiteCommentForm=document.getElementById("taazabuzzForm");owebsiteCommentForm.content.value="";oCommentDiv.style.visibility="hidden"}function TaazaBuzzCallback(B,C){hideTaazaBuzz();alert(C.message);var A=window.location.href;if(A.indexOf("#")>-1){A=A.substr(0,A.indexOf("#"))}window.location.replace(A)}function submitPostForm(A){A.submit()}function showGroupReplyDiv(B,A,C){oCommentDiv=document.getElementById("groupreplyDiv");owebsiteCommentForm=document.getElementById("GroupReplyForm");owebsiteCommentForm.websiteId.value=A;owebsiteCommentForm.topicId.value=C;return showComponent(B,"groupreplyDiv")}function hideGroupReplyDiv(){oCommentDiv=document.getElementById("groupreplyDiv");owebsiteCommentForm=document.getElementById("GroupReplyForm");owebsiteCommentForm.content.value="";oCommentDiv.style.visibility="hidden"}function GroupReplyDivCallback(B,C){hideGroupReplyDiv();alert(C.message);var A=window.location.href;if(A.indexOf("#")>-1){A=A.substr(0,A.indexOf("#"))}window.location.replace(A)}function constructRedirectUrl(A){var B=window.location.protocol+"//"+window.location.host+strtrim(unescape(A));return B}function logoUploadCallback(C,A){if(C=="start"){}else{if(C=="end"){try{document.FileUploadForm.reset()}catch(B){document.FileUploadForm[0].reset()}document.getElementById("headshotImage").src=document.getElementById("headshotImage").src+"?"+new Date()}}}function photoUploadCallback(B,A){if(B=="start"){}else{if(B=="end"){document.FileUploadForm[1].reset();document.getElementById("campusPhotoImage").src=document.getElementById("campusPhotoImage").src+"?"+new Date()}}}function ajaxSubmitForm(B,C){var A=new AjaxFileUpload(B,C,null);A.start()}function resetForm(A){A.reset()}function acceptJoinCallback(B,D){if(D.status=="success"){alert(D.message);var A=D.results[0];if(A!=0){var C=A[0].value;var E=constructRedirectUrl(C);window.location=E}}else{if(D.status=="failure"){alert(D.message)}}}function voteCallback(B,C){alert(C.message);var A=window.location.href;if(A.indexOf("#")>-1){A=A.substr(0,A.indexOf("#"))}window.location.replace(A)}function acceptJoinCallback2(B,C){if(C.status=="success"){document.getElementById(B).style.visibility="hidden";alert(C.message);var A=window.location.href;if(A.indexOf("#")>-1){A=A.substr(0,A.indexOf("#"))}window.location.replace(A)}else{if(C.status=="failure"){alert(C.message)}}};