function FPopUp(U,W,H){var L=(screen.width-W)/2;var T=(screen.height-H)/2;var PopIt=window.open(U,"FPopUp","width="+W+",height="+H+",top="+T+",left="+L+",status=no,scrollbars=yes,resizable=yes=menubar=no");}function FEmote(X){document.MF.Message.value+=X+" ";document.MF.Message.focus();}function FLink(){var X=prompt("Please enter the text for the link to be displayed as.","");if(X!=null&&X!=""){var Y=prompt("Please enter the full url of the link.","http://");if(Y.length>7)document.MF.Message.value+="[L="+Y+"]"+X+"[/L] ";}document.MF.Message.focus();}function FImage(){var X=prompt("Please enter the full url of the image location.","http://");if(X.length>7)document.MF.Message.value+="[IMG]"+X+"[/IMG] ";document.MF.Message.focus();}function FEmail(){var X=prompt("Please enter the text for the email address to be displayed as.","");if(X!=null&&X!=""){var Y=prompt("Please enter the email address.","");if(Y.indexOf("@")!=-1&&Y.indexOf(".")!=-1)document.MF.Message.value+="[E="+Y+"]"+X+"[/E] ";}document.MF.Message.focus();}function FTag(X){var Y;switch(X){case "B":Y=prompt("Please enter the text you would like to show bolded in your post.","");break;case "I":Y=prompt("Please enter the text you would like to show italicized in your post.","");break;case "IMG":Y=prompt("Please enter the full url of the image location.","http://");break;case "QUOTE":Y=prompt("Please enter enter the text you would like to appear as quoted in your post.","");break;}if(Y!=null&&Y!=""&&Y!="http://")document.MF.Message.value+="["+X+"]"+Y+"[/"+X+"] ";document.MF.Message.focus();}function LC(X,Y){var Z=eval(X);if(Z.value.length>Y)Z.value=Z.value.substring(0,Y);}function Preview(){var F=eval("document.MF");var Q="";var I;if(F.Subject.value!=""&&F.Message.value!=""){for(X=1;X<6;X++){if(eval("document.MF.Image"+X)){I=eval("document.MF.Image"+X);if(I.value!="")Q+="&I"+X+"="+escape(I.value);}} FPopUp("preview.aspx?S="+escape(F.Subject.value)+"&M="+escape(F.Message.value)+Q,650,650);}else{alert("You must enter a subject and a message in order to preview.");}}