
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";

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

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 quote(quoted_text, 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 quote
	input.focus();
	if (ref_address.length!=0) bbdebut = '[ref=' + ref_address + '][i]' + postusername + ' said:[/i][/ref][quote]';
	else bbdebut = '[quote=' + postusername + ']';
	bbfin = '[/quote]';

	if(typeof document.selection != 'undefined')
	{
		var range = document.selection.createRange();
		var insText = range.text;
		if (insText.length == 0)
		{
			range.text = bbdebut + quoted_text + bbfin;
		}
		else
		{
			range.text = insText + bbdebut + quoted_text + bbfin;
		}
		range = document.selection.createRange();
		if (insText.length == 0)
		{
			range.move('character', 0);
		}
		else
		{
			range.moveStart('character', insText.length + bbdebut.length + quoted_text.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 + quoted_text + bbfin + input.value.substr(end);
			var pos;
			pos = start + bbdebut.length + quoted_text.length + bbfin.length;
		}
		else
		{
			input.value = input.value.substr(0, start) + insText + bbdebut + quoted_text + bbfin + input.value.substr(end);
			var pos;
			pos = start + insText.length + bbdebut.length + quoted_text.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 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.boardlevel.selectedIndex
        var linktopass

        linktopass = form.boardlevel.options[myindex].value;
        location.href = linktopass;
}

function gamesratingsjump(form) 
{
	var myindex=form.gamesratings.selectedIndex
        var linktopass

        linktopass = form.gamesratings.options[myindex].value;
        location.href = linktopass;
}

function startList() {
if (document.all&&document.getElementById) {
    navs = document.getElementsByTagName('a');
    for (var i=0; i<navs.length; i++) {
        if(/linknodecoration/.test(navs[i].id)) {
            navs[i].parentNode.onmouseover=function() {this.className+=" over";};
            navs[i].parentNode.onmouseout=function() {this.className=this.className.replace(" over", "");};
            }
        }
    }
}

function confirmdelete()
{
	var choice=confirm("Are you sure you want to delete this?");
	if (choice)
		return true;
	else
		return false;
}

function gotyverification(thisform)
{
	if (
	(thisform.wiigoty1.value == '') && (thisform.wiigoty2.value == '') && (thisform.wiigoty3.value == '') &&  
	(thisform.dsgoty1.value == '') && (thisform.dsgoty2.value == '') && (thisform.dsgoty3.value == '') && 
	(thisform.wiiwaregoty1.value == '') && (thisform.wiiwaregoty2.value == '') && (thisform.wiiwaregoty3.value == '') && 
	(thisform.wiimw1.value == '') && (thisform.wiimw2.value == '') && (thisform.wiimw3.value == '') &&  
	(thisform.dsmw1.value == '') && (thisform.dsmw2.value == '') && (thisform.dsmw3.value == '') && 
	(thisform.wiiwaremw1.value == '') && (thisform.wiiwaremw2.value == '') && (thisform.wiiwaremw3.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.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.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.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.dsmw1.value==thisform.dsmw2.value && thisform.dsmw1.value != '') || 
	(thisform.dsmw1.value==thisform.dsmw3.value && thisform.dsmw1.value != '') || 
	(thisform.dsmw2.value==thisform.dsmw3.value && thisform.dsmw2.value != '') || 
	(thisform.wiiwaremw1.value==thisform.wiiwaremw2.value && thisform.wiiwaremw1.value != '') || 
	(thisform.wiiwaremw1.value==thisform.wiiwaremw3.value && thisform.wiiwaremw1.value != '') || 
	(thisform.wiiwaremw2.value==thisform.wiiwaremw3.value && thisform.wiiwaremw2.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 profile text is '+(message.length-30000)+' character(s) too long.');
		return false;
	}
}

function comicupdateverification(thisform)
{
	if (thisform.description.value=='') 
	{
		alert('I AM ERROR. Please put in a description.');
		return false;
	}
	var description = thisform.description.value;
	if (description.length > 500) 
	{
		alert('Your description is too long!');
		return false;
	}
}

function comicuploadverification(thisform)
{
	if (thisform.title.value=='') 
	{
		alert('I AM ERROR. Please add a title for this comic.');
		return false;
	}
	
	if (thisform.description.value=='') 
	{
		alert('I AM ERROR. Please add a description for this comic.');
		return false;
	}
	
	if (thisform.file.value=='') 
	{
		alert('I AM ERROR. Please select a file.');
		return false;
	}
}

function comicdetailverification(thisform)
{
	if (thisform.title.value=='') 
	{
		alert('I AM ERROR. Please add a title for this comic.');
		return false;
	}
	
	if (thisform.description.value=='') 
	{
		alert('I AM ERROR. Please add a description for this comic.');
		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 givexpverification(thisform)
{
	if (thisform.usertogetxp.value=='') 
	{
		alert('I AM ERROR. Please enter username.');
		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.platformid.value=='') 
	{
		alert('I AM ERROR. Please select a platform.');
		return false;
	}
	var message = thisform.information.value;
	if (message.length > 10000) 
	{
		alert('I AM ERROR. Your information is too long!');
		return false;
	}
}

function requestaccountverification(thisform)
{
	var email = Trim(thisform.email.value);
	if ((email=='') || (email=='E-mail'))
	{
		alert('I AM ERROR. Please fill in the required field.');
		return false;
	}
}

function profileeditverification(thisform)
{
	var tempusername = Trim(thisform.newusername.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;
	}
	if (tempusername=='')
	{
		alert('I AM ERROR. Please fill in your user name.');
		return false;
	}
	if ((thisform.email.value.indexOf('@') == -1) || (thisform.email.value.indexOf('.') == -1))
	{
		alert('I AM ERROR. Invalid email.');
		return false;
	}
	if (thisform.password1.value=='' || thisform.password2.value=='')
	{
		alert('I AM ERROR. Please enter your password (twice).');
		return false;
	}
	if (thisform.birthdaymonth.value=='' || thisform.birthdayday.value=='' || thisform.birthdayyear.value=='')
	{
		alert('I AM ERROR. Please fill in your birthday.');
		return false;
	}
	if (thisform.password1.value != thisform.password2.value) 
	{
		alert('I AM ERROR. Your password and password verification must match.');
		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 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;
	}
	if (tempusername=='')
	{
		alert('I AM ERROR. Please fill in your user name.');
		return false;
	}
	if ((tempuserlevel<max_level) || (tempuserlevel>-1))
	{
		alert('I AM ERROR. The level must be between -1 and ' + max_level + '.');
		return false;
	}
	if ((tempuserxp>max_xp) || (tempuserxp<15000))
	{
		alert('I AM ERROR. The xp must be between 15000 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 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);
	
	if ((email.indexOf('@') == -1) || (email.indexOf('.') == -1))
	{
		alert('I AM ERROR. Invalid email.');
		return false;
	}
	if (tempusername=='' || thisform.email.value=='' || thisform.birthdaymonth.value=='' || thisform.birthdayday.value=='' || thisform.birthdayyear.value=='' || temppassword=='' || temppassword2=='') 
	{
		alert('I AM ERROR. Please fill in all required fields.');
		return false;
	}
	
	if (temppassword != temppassword2) 
	{
		alert('I AM ERROR. Your password and password verification must match.');
		return false;
	}

	if (email != email2) 
	{
		alert('I AM ERROR. Your email and email verification must match.');
		return false;
	}
}

function personaaddverification(thisform)
{
	var tempusername = Trim(thisform.tempusername.value);
	
	if ((tempusername=='') || (tempusername=='New persona'))
	{
		alert('I AM ERROR. Please fill the required field.');
		return false;
	}
}

function loginverification(thisform)
{
	if (thisform.username.value=='' || thisform.password.value=='') 
	{
		alert('I AM ERROR. Please enter username and password.');
		return false;
	}
}

function nintendocodesverification(thisform)
{
	if (thisform.name.value=='' || thisform.code.value=='') 
	{
		alert('I AM ERROR. Please fill in all required fields.');
		return false;
	}
}

function nintendocodeseditverification(thisform)
{
	if (thisform.code.value=='') 
	{
		alert('I AM ERROR. Please fill in code.');
		return false;
	}
}

function parentpostverification(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 (topic.length > 200) 
	{
		alert('I AM ERROR. Your topic is too long!');
		return false;
	}
	if (message.length > 30000) 
	{
		alert('I AM ERROR. Your profile text 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 (topic.length > 200) 
	{
		alert('I AM ERROR. Your topic is too long!');
		return false;
	}
	if (message.length > 10000) 
	{
		alert('I AM ERROR. Your message is 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 (topic.length > 200) 
	{
		alert('I AM ERROR. Your topic is too long!');
		return false;
	}
	if (header10.length > 200) 
	{
		alert('I AM ERROR. Your #10 header is too long!');
		return false;
	}
	if (header9.length > 200) 
	{
		alert('I AM ERROR. Your #9 header is too long!');
		return false;
	}
	if (header8.length > 200) 
	{
		alert('I AM ERROR. Your #8 header is too long!');
		return false;
	}
	if (header7.length > 200) 
	{
		alert('I AM ERROR. Your #7 header is too long!');
		return false;
	}
	if (header6.length > 200) 
	{
		alert('I AM ERROR. Your #6 header is too long!');
		return false;
	}
	if (header5.length > 200) 
	{
		alert('I AM ERROR. Your #5 header is too long!');
		return false;
	}
	if (header4.length > 200) 
	{
		alert('I AM ERROR. Your #4 header is too long!');
		return false;
	}
	if (header3.length > 200) 
	{
		alert('I AM ERROR. Your #3 header is too long!');
		return false;
	}
	if (header2.length > 200) 
	{
		alert('I AM ERROR. Your #2 header is too long!');
		return false;
	}
	if (header1.length > 200) 
	{
		alert('I AM ERROR. Your #1 header is too long!');
		return false;
	}
	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;
	}
}