page_loaded = false; // ROLLOVERS archive_button_up_off = new Image(); archive_button_up_off.src = "design/bar/browse_up.gif"; archive_button_up_on = new Image(); archive_button_up_on.src = "design/bar/browse_up_on.gif"; archive_button_down_off = new Image(); archive_button_down_off.src = "design/bar/browse_down.gif"; archive_button_down_on = new Image(); archive_button_down_on.src = "design/bar/browse_down_on.gif"; archive_button_go_off = new Image(); archive_button_go_off.src = "design/bar/go_icon.gif"; archive_button_go_on = new Image(); archive_button_go_on.src = "design/bar/go_icon_on.gif"; archive_button_reply_off = new Image(); archive_button_reply_off.src = "design/bar/reply_icon.gif"; archive_button_reply_on = new Image(); archive_button_reply_on.src = "design/bar/reply_icon_on.gif"; archive_button_delete_off = new Image(); archive_button_delete_off.src = "design/bar/delete_icon.gif"; archive_button_delete_on = new Image(); archive_button_delete_on.src = "design/bar/delete_icon_on.gif"; special_button_about_off = new Image(); special_button_about_off.src = "design/bar/about.gif"; special_button_about_on = new Image(); special_button_about_on.src = "design/bar/about_on.gif"; special_button_group_off = new Image(); special_button_group_off.src = "design/details/list_username_bt_group.gif"; special_button_group_on = new Image(); special_button_group_on.src = "design/details/list_username_bt_group_on.gif"; special_button_all_off = new Image(); special_button_all_off.src = "design/details/list_username_bt_all.gif"; special_button_all_on = new Image(); special_button_all_on.src = "design/details/list_username_bt_all_on.gif"; special_button_plus_off = new Image(); special_button_plus_off.src = "design/bar/plus_icon.gif"; special_button_plus_on = new Image(); special_button_plus_on.src = "design/bar/plus_icon_on.gif"; game_button_up_off = new Image(); game_button_up_off.src = "design/details/game_up_off.png"; game_button_up_on = new Image(); game_button_up_on.src = "design/details/game_up_on.png"; game_button_down_off = new Image(); game_button_down_off.src = "design/details/game_down_off.png"; game_button_down_on = new Image(); game_button_down_on.src = "design/details/game_down_on.png"; menu_admin_off = new Image(); menu_admin_off.src = "design/menu/menu_admin.png"; menu_admin_on = new Image(); menu_admin_on.src = "design/menu/menu_admin_on.png"; menu_main_off = new Image(); menu_main_off.src = "design/menu/menu_main.png"; menu_main_on = new Image(); menu_main_on.src = "design/menu/menu_main_on.png"; menu_forum_off = new Image(); menu_forum_off.src = "design/menu/menu_forum.png"; menu_forum_on = new Image(); menu_forum_on.src = "design/menu/menu_forum_on.png"; menu_join_off = new Image(); menu_join_off.src = "design/menu/menu_join.png"; menu_join_on = new Image(); menu_join_on.src = "design/menu/menu_join_on.png"; menu_users_off = new Image(); menu_users_off.src = "design/menu/menu_users.png"; menu_users_on = new Image(); menu_users_on.src = "design/menu/menu_users_on.png"; menu_games_off = new Image(); menu_games_off.src = "design/menu/menu_games.png"; menu_games_on = new Image(); menu_games_on.src = "design/menu/menu_games_on.png"; game_edit_form_off = new Image(); game_edit_form_off.src = "design/bar/show_post_form_message.gif"; game_edit_form_on = new Image(); game_edit_form_on.src = "design/bar/hide_post_form_message.gif"; for ($i=1;$i<=3;$i++) { eval('archive_button_rew_' + $i + '_off = new Image();'); eval('archive_button_rew_' + $i + '_off.src = "design/bar/browse_back_' + $i + '.gif";'); eval('archive_button_rew_' + $i + '_on = new Image();'); eval('archive_button_rew_' + $i + '_on.src = "design/bar/browse_back_' + $i + '_on.gif";'); eval('archive_button_fastf_' + $i + '_off = new Image();'); eval('archive_button_fastf_' + $i + '_off.src = "design/bar/browse_forward_' + $i + '.gif";'); eval('archive_button_fastf_' + $i + '_on = new Image();'); eval('archive_button_fastf_' + $i + '_on.src = "design/bar/browse_forward_' + $i + '_on.gif";'); } // END OF ROLLOVERS search_area_on=false; top_posting_on=false; bottom_posting_on=false; // POPUP about_popup=null; function POP_about(pop_address, pwidth, pheight) { if ((about_popup!=null)&&(!about_popup.closed)) about_popup.close(); about_popup=window.open(pop_address,'about','width=' + pwidth + ',height=' + pheight + ',channelmode=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,status=0,toolbar=0,left=50,top=50'); return true; } // FUNCTIONS function startList() { if (document.all&&document.getElementById) { navs = document.getElementsByTagName('a'); for (var i=0; i input.value.length) { pos = input.value.length; } var insText = prompt("Enter text"); input.value = input.value.substr(0, pos) + bbdebut + insText + bbfin + input.value.substr(pos); } setTimeout('document.bottom_post_area.message.focus()',5); return false; } function reference(ref_address, postusername) { // opens up posting area document.getElementById('bottom_post_div').style.display='block'; bottom_posting_on=true; document.form_display_bottom.src=form_display_on.src; input=document.bottom_post_area.message; // adds the reference input.focus(); bbdebut = '[ref=' + ref_address + ']'; bbfin = '[/ref]'; if(typeof document.selection != 'undefined') { var range = document.selection.createRange(); var insText = range.text; if (insText.length == 0) { range.text = bbdebut + postusername + bbfin; } else { range.text = bbdebut + insText + bbfin; } range = document.selection.createRange(); if (insText.length == 0) { range.move('character', 0); } else { range.moveStart('character', bbdebut.length + insText.length + bbfin.length); } range.select(); } else if(typeof input.selectionStart != 'undefined') { var start = input.selectionStart; var end = input.selectionEnd; var insText = input.value.substring(start, end); if (insText.length == 0) { input.value = input.value.substr(0, start) + bbdebut + postusername + bbfin + input.value.substr(end); var pos; pos = start + bbdebut.length + postusername.length + bbfin.length; } else { input.value = input.value.substr(0, start) + bbdebut + insText + bbfin + input.value.substr(end); var pos; pos = start + bbdebut.length + insText.length + bbfin.length; } input.selectionStart = pos; input.selectionEnd = pos; } else { var pos; var re = new RegExp('^[0-9]{0,3}$'); while(!re.test(pos)) { pos = prompt("insertion (0.." + input.value.length + "):", "0"); } if(pos > input.value.length) { pos = input.value.length; } var insText = prompt("Enter text"); input.value = input.value.substr(0, pos) + bbdebut + insText + bbfin + input.value.substr(pos); } setTimeout('document.bottom_post_area.message.focus()',5); return false; } function Trim(str) { while(str.charAt(0) == (" ")) { str = str.substring(1); } while(str.charAt(str.length-1) == " ") { str = str.substring(0,str.length-1); } return str; } function newpage(location) { var location = location; window.location=location; } function jump(form) { var myindex=form.boardtype.selectedIndex var linktopass linktopass = form.boardtype.options[myindex].value; location.href = linktopass; } function confirmdelete() { var choice=confirm("Are you sure you want to delete this?"); if (choice) return true; else return false; } function confirmban(ban) { var choice; if (ban) choice=confirm("Are you sure you want to ban this user?"); else choice=confirm("Are you sure you want to unban this user?"); if (choice) return true; else return false; } function confirmblame() { var choice; choice=confirm("Are you sure you want to blame this user?"); if (choice) return true; else return false; } function gotyverification(thisform) { if ( (thisform.wiigoty1.value == '') && (thisform.wiigoty2.value == '') && (thisform.wiigoty3.value == '') && (thisform.wiimw1.value == '') && (thisform.wiimw2.value == '') && (thisform.wiimw3.value == '') && (thisform.wiiwaregoty1.value == '') && (thisform.wiiwaregoty2.value == '') && (thisform.wiiwaregoty3.value == '') && (thisform.dsgoty1.value == '') && (thisform.dsgoty2.value == '') && (thisform.dsgoty3.value == '') && (thisform.n3dsgoty1.value == '') && (thisform.n3dsgoty2.value == '') && (thisform.n3dsgoty3.value == '') && (thisform.n3dsmw1.value == '') && (thisform.n3dsmw2.value == '') && (thisform.n3dsmw3.value == '') && (thisform.eshopgoty1.value == '') && (thisform.eshopgoty2.value == '') && (thisform.eshopgoty3.value == '') && (thisform.eshopmw1.value == '') && (thisform.eshopmw2.value == '') && (thisform.eshopmw3.value == '') && (thisform.vcgoty1.value == '') && (thisform.vcgoty2.value == '') && (thisform.vcgoty3.value == '') ) { alert('I AM ERROR. Dang yo, you have to vote for SOMETHING!'); return false; } if ( (thisform.wiigoty1.value==thisform.wiigoty2.value && thisform.wiigoty1.value != '') || (thisform.wiigoty1.value==thisform.wiigoty3.value && thisform.wiigoty1.value != '') || (thisform.wiigoty2.value==thisform.wiigoty3.value && thisform.wiigoty2.value != '') || (thisform.wiimw1.value==thisform.wiimw2.value && thisform.wiimw1.value != '') || (thisform.wiimw1.value==thisform.wiimw3.value && thisform.wiimw1.value != '') || (thisform.wiimw2.value==thisform.wiimw3.value && thisform.wiimw2.value != '') || (thisform.wiiwaregoty1.value==thisform.wiiwaregoty2.value && thisform.wiiwaregoty1.value != '') || (thisform.wiiwaregoty1.value==thisform.wiiwaregoty3.value && thisform.wiiwaregoty1.value != '') || (thisform.wiiwaregoty2.value==thisform.wiiwaregoty3.value && thisform.wiiwaregoty2.value != '') || (thisform.dsgoty1.value==thisform.dsgoty2.value && thisform.dsgoty1.value != '') || (thisform.dsgoty1.value==thisform.dsgoty3.value && thisform.dsgoty1.value != '') || (thisform.dsgoty2.value==thisform.dsgoty3.value && thisform.dsgoty2.value != '') || (thisform.n3dsgoty1.value==thisform.n3dsgoty2.value && thisform.n3dsgoty1.value != '') || (thisform.n3dsgoty1.value==thisform.n3dsgoty3.value && thisform.n3dsgoty1.value != '') || (thisform.n3dsgoty2.value==thisform.n3dsgoty3.value && thisform.n3dsgoty2.value != '') || (thisform.n3dsmw1.value==thisform.n3dsmw2.value && thisform.n3dsmw1.value != '') || (thisform.n3dsmw1.value==thisform.n3dsmw3.value && thisform.n3dsmw1.value != '') || (thisform.n3dsmw2.value==thisform.n3dsmw3.value && thisform.n3dsmw2.value != '') || (thisform.eshopgoty1.value==thisform.eshopgoty2.value && thisform.eshopgoty1.value != '') || (thisform.eshopgoty1.value==thisform.eshopgoty3.value && thisform.eshopgoty1.value != '') || (thisform.eshopgoty2.value==thisform.eshopgoty3.value && thisform.eshopgoty2.value != '') || (thisform.eshopmw1.value==thisform.eshopmw2.value && thisform.eshopmw1.value != '') || (thisform.eshopmw1.value==thisform.eshopmw3.value && thisform.eshopmw1.value != '') || (thisform.eshopmw2.value==thisform.eshopmw3.value && thisform.eshopmw2.value != '') || (thisform.vcgoty1.value==thisform.vcgoty2.value && thisform.vcgoty1.value != '') || (thisform.vcgoty1.value==thisform.vcgoty3.value && thisform.vcgoty1.value != '') || (thisform.vcgoty2.value==thisform.vcgoty3.value && thisform.vcgoty2.value != '') ) { alert('I AM ERROR. You cannot select the same game for any category twice!'); return false; } } function childpostverification(thisform) { if (thisform.message.value=='') { alert('I AM ERROR. Please put in a message.'); return false; } var message = thisform.message.value; if (message.length > 30000) { alert('I AM ERROR. Your post is '+(message.length-30000)+' character(s) too long.'); return false; } } function mymusicuploadverification(thisform) { if (thisform.file.value=='') { alert('I AM ERROR. Please select a file.'); return false; } if (thisform.type.value=='') { alert('I AM ERROR. Please select a type.'); return false; } if (thisform.description.value=='') { alert('I AM ERROR. Please add a description.'); return false; } } function promoteverification(thisform) { if ((thisform.user_name.value=='') || (thisform.user_name.value=='Username')) { alert('I AM ERROR. Please enter username.'); return false; } } function listmanageverification(thisform) { if ((thisform.gameid.value=='') || (thisform.gameid.value=='Game #id')) { alert('I AM ERROR. Please enter an id number.'); return false; } } function avataruploadverification(thisform) { if (thisform.privacy.value=='') { alert('I AM ERROR. Please select avatar privacy level.'); return false; } if (thisform.file.value=='') { alert('I AM ERROR. Please select a file.'); return false; } } function fileuploadverification(thisform) { if (thisform.file.value=='') { alert('I AM ERROR. Please select a file.'); return false; } } function gamesaddverification(thisform) { if (thisform.gamename.value=='') { alert('I AM ERROR. Please enter a title for your game.'); return false; } if (thisform.online.value=='') { alert('I AM ERROR. Please say if the game is online.'); return false; } if (thisform.platformid.value=='') { alert('I AM ERROR. Please select a platform.'); return false; } var message = thisform.information.value; if (message.length == 0) { alert('I AM ERROR. Please enter a description.'); return false; } if (message.length > 2000) { alert('I AM ERROR. Your information is '+(message.length-2000)+' character(s) too long.'); return false; } } function passwordresetverification(thisform) { var email = Trim(thisform.email.value); if ((email=='') || (email=='The e-mail you tied to your profile')) { alert('I AM ERROR. Please fill in the required field.'); return false; } if ((email.indexOf('@') == -1) || (email.indexOf('.') == -1)) { alert('I AM ERROR. Invalid email.'); return false; } } function etcmanageverification(thisform) { if (thisform.name.value=='') { alert('I AM ERROR. Please put in a name.'); return false; } if (thisform.content.value=='') { alert('I AM ERROR. Please put in content.'); return false; } var content = thisform.content.value; if (content.length > 2000) { alert('I AM ERROR. Your post is '+(content.length-2000)+' character(s) too long.'); return false; } } function profileeditverification(thisform) { var temppassword = thisform.password1.value; var tempinterests = thisform.interests.value; var regn = new RegExp("(\n)", "g"); var regr = new RegExp("(\r)", "g"); tempinterests = tempinterests.replace(regn, 'XX'); tempinterests = tempinterests.replace(regr, 'XX'); if (!page_loaded) { return false; } var OK_characters="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 _-."; for (i=0; i 2000) { alert('I AM ERROR. Your profile text is '+(tempinterests.length-2000)+' character(s) too long.'); return false; } return true; } function personaeditverification(thisform, max_xp, max_level, max_neq) { var tempusername = Trim(thisform.newusername.value); var tempuserlevel = Number(Trim(thisform.personalevel.value)); var tempuserxp = Number(Trim(thisform.personaxp.value)); var tempuserneq = Number(Trim(thisform.neqstage.value)); var tempinterests = thisform.interests.value; var regn = new RegExp("(\n)", "g"); var regr = new RegExp("(\r)", "g"); tempinterests = tempinterests.replace(regn, 'XX'); tempinterests = tempinterests.replace(regr, 'XX'); if (!page_loaded) { return false; } var OK_characters="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 _-."; for (i=0; i 0)) { alert('I AM ERROR. The level must be between 0 and ' + max_level + '.'); return false; } if ((tempuserxp > max_xp) || (tempuserxp < 50000)) { alert('I AM ERROR. The xp must be between 50000 and ' + max_xp + '.'); return false; } if ((tempuserneq > max_neq) || (tempuserneq < 1)) { alert('I AM ERROR. The NEQ stage must be between 1 and ' + max_neq + '.'); return false; } if (tempinterests.length > 2000) { alert('I AM ERROR. Your profile text is '+(tempinterests.length-2000)+' character(s) too long.'); return false; } return true; } function sharedpersonaeditverification(thisform, max_level) { var tempusername = Trim(thisform.newusername.value); var tempuserlevel = Number(Trim(thisform.personalevel.value)); var tempuserxp = Number(Trim(thisform.personaxp.value)); var tempuserneq = Number(Trim(thisform.neqstage.value)); var tempinterests = thisform.interests.value; var regn = new RegExp("(\n)", "g"); var regr = new RegExp("(\r)", "g"); tempinterests = tempinterests.replace(regn, 'XX'); tempinterests = tempinterests.replace(regr, 'XX'); if (!page_loaded) { return false; } var OK_characters="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 _-."; for (i=0; i 0)) { alert('I AM ERROR. The level must be between 0 and ' + max_level + '.'); return false; } if (tempuserxp < 50000) { alert('I AM ERROR. The xp must be higher than 50000.'); return false; } if ((tempuserneq > 11) || (tempuserneq < 1)) { alert('I AM ERROR. The NEQ stage must be between 1 and 11.'); return false; } if (tempinterests.length > 2000) { alert('I AM ERROR. Your profile text is '+(tempinterests.length-2000)+' character(s) too long.'); return false; } return true; } function joinupverification(thisform) { var tempusername = Trim(thisform.tempusername.value); var temppassword = Trim(thisform.temppassword.value); var temppassword2 = Trim(thisform.temppassword2.value); var email = Trim(thisform.email.value); var email2 = Trim(thisform.email2.value); var OK_characters="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 _-."; for (i=0; i 30000) { alert('I AM ERROR. Your post is '+(message.length-30000)+' character(s) too long.'); return false; } } function pollpostverification(thisform) { if (!thisform.topic || !thisform.message) { alert('I AM ERROR.'); return false; } if (thisform.topic.value=='' || thisform.message.value=='') { alert('I AM ERROR. Please put in a topic and message.'); return false; } var topic = thisform.topic.value; var message = thisform.message.value; if (message.length > 30000) { alert('I AM ERROR. Your message is '+(message.length-30000)+' character(s) too long.'); return false; } var x = 10; if (thisform.option1.value=='') { x=x-1;} if (thisform.option2.value=='') { x=x-1;} if (thisform.option3.value=='') { x=x-1;} if (thisform.option4.value=='') { x=x-1;} if (thisform.option5.value=='') { x=x-1;} if (thisform.option6.value=='') { x=x-1;} if (thisform.option7.value=='') { x=x-1;} if (thisform.option8.value=='') { x=x-1;} if (thisform.option9.value=='') { x=x-1;} if (thisform.option10.value=='') { x=x-1;} if (x < 2) { alert('I AM ERROR. You must have at least two poll options.'); return false; } } function toptenverification(thisform) { var error=false; if (!thisform.topic || !thisform.message || !thisform.conclusion) { alert('I AM ERROR.'); return false; } if ((thisform.topic.value=='' || thisform.topic.value=='Topic information and introduction') || thisform.message.value=='' || thisform.conclusion.value=='') { error=true; } for (var i=1; i<=10; i++) { eval ("if (thisform.header" + i + ".value=='' || thisform.header" + i + ".value=='#" + i + " header and body information') error=true;"); eval ("if (thisform.body" + i + ".value=='') error=true;"); } if (error) { alert('I AM ERROR. Please fill in all fields!'); return false; } var topic = thisform.topic.value; var header1 = thisform.header1.value; var header2 = thisform.header2.value; var header3 = thisform.header3.value; var header4 = thisform.header4.value; var header5 = thisform.header5.value; var header6 = thisform.header6.value; var header7 = thisform.header7.value; var header8 = thisform.header8.value; var header9 = thisform.header9.value; var header10 = thisform.header10.value; var introduction = thisform.message.value; var conclusion = thisform.conclusion.value; var body1 = thisform.body1.value; var body2 = thisform.body2.value; var body3 = thisform.body3.value; var body4 = thisform.body4.value; var body5 = thisform.body5.value; var body6 = thisform.body6.value; var body7 = thisform.body7.value; var body8 = thisform.body8.value; var body9 = thisform.body9.value; var body10 = thisform.body10.value; if (introduction.length > 5000) { alert('I AM ERROR. Your introduction is too long!'); return false; } if (conclusion.length > 5000) { alert('I AM ERROR. Your conclusion is too long!'); return false; } if (body10.length > 5000) { alert('I AM ERROR. Your #10 body is too long!'); return false; } if (body9.length > 5000) { alert('I AM ERROR. Your #9 body is too long!'); return false; } if (body8.length > 5000) { alert('I AM ERROR. Your #8 body is too long!'); return false; } if (body7.length > 5000) { alert('I AM ERROR. Your #7 body is too long!'); return false; } if (body6.length > 5000) { alert('I AM ERROR. Your #6 body is too long!'); return false; } if (body5.length > 5000) { alert('I AM ERROR. Your #5 body is too long!'); return false; } if (body4.length > 5000) { alert('I AM ERROR. Your #4 body is too long!'); return false; } if (body3.length > 5000) { alert('I AM ERROR. Your #3 body is too long!'); return false; } if (body2.length > 5000) { alert('I AM ERROR. Your #2 body is too long!'); return false; } if (body1.length > 5000) { alert('I AM ERROR. Your #1 body is too long!'); return false; } }