// Fellowes JavaScript
<!--

function whatsnew1()
{
	var hd1 = document.getElementById("hd1")
	var hd2 = document.getElementById("hd2")
	var hd3 = document.getElementById("hd3")
	var td1 = document.getElementById("td1")
	var td2 = document.getElementById("td2")
	var td3 = document.getElementById("td3")
	
	hd1.style.display = "";
	hd2.style.display = "none";
	hd3.style.display = "none";
	
	td1.style.background = "#FEEBBD";
	td2.style.background = "#FFF7E5";
	td3.style.background = "#FFF7E5";
}

function whatsnew2()
{
	var hd1 = document.getElementById("hd1")
	var hd2 = document.getElementById("hd2")
	var hd3 = document.getElementById("hd3")
	var td1 = document.getElementById("td1")
	var td2 = document.getElementById("td2")
	var td3 = document.getElementById("td3")
	
	hd1.style.display = "none";
	hd2.style.display = "";
	hd3.style.display = "none";
	
	td1.style.background = "#FFF7E5";
	td2.style.background = "#FEEBBD";
	td3.style.background = "#FFF7E5";
}

function whatsnew3()
{
	var hd1 = document.getElementById("hd1")
	var hd2 = document.getElementById("hd2")
	var hd3 = document.getElementById("hd3")
	var td1 = document.getElementById("td1")
	var td2 = document.getElementById("td2")
	var td3 = document.getElementById("td3")
	
	hd1.style.display = "none";
	hd2.style.display = "none";
	hd3.style.display = "";
	
	td1.style.background = "#FFF7E5";
	td2.style.background = "#FFF7E5";
	td3.style.background = "#FEEBBD";
}

function checkNewsBoxes()
{
	var x = document.newsAdmin
	var storyBox1 = document.newsAdmin.story1.value
	var storyBox2 = document.newsAdmin.story2.value
	var storyBox3 = document.newsAdmin.story3.value
	var num1 = eval(storyBox1 + 0)
	var num2 = eval(storyBox2 + 0)
	var num3 = eval(storyBox3 + 0)
	var rowE = document.getElementById("rowE")
	var row1 = document.getElementById("row1")
	var row2 = document.getElementById("row2")
	var row3 = document.getElementById("row3")
	var row0 = document.getElementById("row0")
	var error = "no"
	
	rowE.style.display = "none";
	row1.style.display = "none";
	row2.style.display = "none";
	row3.style.display = "none";
	row0.style.display = "none";
	
	if ((storyBox1 != "1") && (storyBox2 != "1") && (storyBox3 != "1")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}

// START VALIDATE STORY 1
	if ((storyBox1 == "1") && (x.shortHeadline1.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox1 == "1") && (x.headline1.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox1 == "1") && (x.browse1.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}

	if ((storyBox2 == "1") && (x.shortHeadline2.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "1") && (x.headline2.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "1") && (x.browse2.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	
	if ((storyBox3 == "1") && (x.shortHeadline3.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "1") && (x.headline3.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "1") && (x.browse3.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
// END VALIDATE STORY 1	

// START VALIDATE STORY 2
	if ((storyBox1 || storyBox3 == "1") && (storyBox2 == "2") && (x.shortHeadline2.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox1 || storyBox3 == "1") && (storyBox2 == "2") && (x.headline2.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox1 || storyBox3 == "1") && (storyBox2 == "2") && (x.browse2.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}

	if ((storyBox2 || storyBox3 == "1") && (storyBox1 == "2") && (x.shortHeadline1.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox2 || storyBox3 == "1") && (storyBox1 == "2") && (x.headline1.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox2 || storyBox3 == "1") && (storyBox1 == "2") && (x.browse1.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	
	if ((storyBox1 || storyBox2 == "1") && (storyBox3 == "2") && (x.shortHeadline3.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox1 || storyBox2 == "1") && (storyBox3 == "2") && (x.headline3.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox1 || storyBox2 == "1") && (storyBox3 == "2") && (x.browse3.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	
	if ((storyBox1 == "2") && (storyBox2 != "1") && (storyBox3 != "1")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "2") && (storyBox1 != "1") && (storyBox3 != "1")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "2") && (storyBox1 != "1") && (storyBox2 != "1")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	
	if ((storyBox1 == "3") && (storyBox2 != "2") && (storyBox3 != "2")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "3") && (storyBox1 != "2") && (storyBox3 != "2")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "3") && (storyBox1 != "2") && (storyBox2 != "2")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
// END VALIDATE STORY 2

// START VALIDATE STORY 3
	if ((storyBox1 || storyBox3 == "1") && (storyBox1 || storyBox3 == "2") && (storyBox2 == "3") && (x.shortHeadline2.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox1 || storyBox3 == "1") && (storyBox1 || storyBox3 == "2") && (storyBox2 == "3") && (x.headline2.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox1 || storyBox3 == "1") && (storyBox1 || storyBox3 == "2") && (storyBox2 == "3") && (x.browse2.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}

	if ((storyBox2 || storyBox3 == "1") && (storyBox2 || storyBox3 == "2") && (storyBox1 == "3") && (x.shortHeadline1.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox2 || storyBox3 == "1") && (storyBox2 || storyBox3 == "2") && (storyBox1 == "3") && (x.headline1.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox2 || storyBox3 == "1") && (storyBox2 || storyBox3 == "2") && (storyBox1 == "3") && (x.browse1.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	
	if ((storyBox1 || storyBox2 == "1") && (storyBox1 || storyBox2 == "2") && (storyBox3 == "3") && (x.shortHeadline3.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox1 || storyBox2 == "1") && (storyBox1 || storyBox2 == "2") && (storyBox3 == "3") && (x.headline3.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox1 || storyBox2 == "1") && (storyBox1 || storyBox2 == "2") && (storyBox3 == "3") && (x.browse3.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
// END VALIDATE STORY 3

// START VALIDATE ORDER
	if ((storyBox1 == "2") && (num1 + num2 + num3 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "2") && (num1 + num2 + num3 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "2") && (num1 + num2 + num3 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	
	if ((storyBox1 == "3") && (num1 + num2 + num3 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "3") && (num1 + num2 + num3 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "3") && (num1 + num2 + num3 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
// END VALIDATE ORDER	

	if (error == "no") {
		return true;
	}
	else {
		return false;
	}
}


function clearStory(newsAdmin, num)
{
	Story = document.getElementsByName('story' + num);
	ShortHd = document.getElementsByName('shortHeadline' + num);
	FullHd = document.getElementsByName('headline' + num);
	Url = document.getElementsByName('url' + num);

        Story[0].value = ''; 
        ShortHd[0].value = '';
        FullHd[0].value = '';
		Url[0].value = '';
}

function clearStoryRC(newsAdminRC, num)
{
	Story = document.getElementsByName('story' + num);
	Headline = document.getElementsByName('headline' + num);
	Body = document.getElementsByName('body' + num);
	Url = document.getElementsByName('url' + num);
	theDate = document.getElementsByName('date' + num);

        Story[0].value = ''; 
        Headline[0].value = '';
        Body[0].value = '';
		Url[0].value = '';
		theDate[0].value = '';
}



function checkNewsBoxesRC()
{
	var x = document.newsAdminRC
	var storyBox1 = document.newsAdminRC.story1.value
	var storyBox2 = document.newsAdminRC.story2.value
	var storyBox3 = document.newsAdminRC.story3.value
	var storyBox4 = document.newsAdminRC.story4.value
	var storyBox5 = document.newsAdminRC.story5.value
	var storyBox6 = document.newsAdminRC.story6.value
	var storyBox7 = document.newsAdminRC.story7.value
	var storyBox8 = document.newsAdminRC.story8.value
	var storyBox9 = document.newsAdminRC.story9.value
	var storyBox10 = document.newsAdminRC.story10.value	
	var num1 = eval(storyBox1 + 0)
	var num2 = eval(storyBox2 + 0)
	var num3 = eval(storyBox3 + 0)
	var num4 = eval(storyBox4 + 0)
	var num5 = eval(storyBox5 + 0)
	var num6 = eval(storyBox6 + 0)
	var num7 = eval(storyBox7 + 0)
	var num8 = eval(storyBox8 + 0)
	var num9 = eval(storyBox9 + 0)
	var num10 = eval(storyBox10 + 0)
	var rowE = document.getElementById("rowE")
	var row1 = document.getElementById("row1")
	var row2 = document.getElementById("row2")
	var row3 = document.getElementById("row3")
	var row4 = document.getElementById("row4")
	var row5 = document.getElementById("row5")
	var row6 = document.getElementById("row6")
	var row7 = document.getElementById("row7")
	var row8 = document.getElementById("row8")
	var row9 = document.getElementById("row9")
	var row10 = document.getElementById("row10")
	var row0 = document.getElementById("row0")
	var rowD = document.getElementById("rowD")
	var error = "no"
	
	rowE.style.display = "none";
	row1.style.display = "none";
	row2.style.display = "none";
	row3.style.display = "none";
	row4.style.display = "none";
	row5.style.display = "none";
	row6.style.display = "none";
	row7.style.display = "none";
	row8.style.display = "none";
	row9.style.display = "none";
	row10.style.display = "none";
	row0.style.display = "none";
	rowD.style.display = "none";
	
	if ((storyBox1 != "1") && (storyBox2 != "1") && (storyBox3 != "1") && (storyBox4 != "1") && (storyBox5 != "1") && (storyBox6 != "1") && (storyBox7 != "1") && (storyBox8 != "1") && (storyBox9 != "1") && (storyBox10 != "1")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	
// START VALIDATE STORY 1	
	if ((storyBox1 == "1") && (x.headline1.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox1 == "1") && (x.body1.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	
	if ((storyBox2 == "1") && (x.headline2.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "1") && (x.body2.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	
	if ((storyBox3 == "1") && (x.headline3.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "1") && (x.body3.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	
	if ((storyBox4 == "1") && (x.headline4.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "1") && (x.body4.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	
	if ((storyBox5 == "1") && (x.headline5.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "1") && (x.body5.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	
	if ((storyBox6 == "1") && (x.headline6.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "1") && (x.body6.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	
	if ((storyBox7 == "1") && (x.headline7.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "1") && (x.body7.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	
	if ((storyBox8 == "1") && (x.headline8.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "1") && (x.body8.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	
	if ((storyBox9 == "1") && (x.headline9.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "1") && (x.body9.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	
	if ((storyBox10 == "1") && (x.headline10.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "1") && (x.body10.value == "")) {
		rowE.style.display = "";
		row1.style.display = "";
		error = "yes";
	}
// END VALIDATE STORY 1

// START VALIDATE STORY 2	
	if ((storyBox1 == "2") && (x.headline1.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox1 == "2") && (x.body1.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	
	if ((storyBox2 == "2") && (x.headline2.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "2") && (x.body2.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	
	if ((storyBox3 == "2") && (x.headline3.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "2") && (x.body3.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	
	if ((storyBox4 == "2") && (x.headline4.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "2") && (x.body4.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	
	if ((storyBox5 == "2") && (x.headline5.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "2") && (x.body5.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	
	if ((storyBox6 == "2") && (x.headline6.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "2") && (x.body6.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	
	if ((storyBox7 == "2") && (x.headline7.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "2") && (x.body7.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	
	if ((storyBox8 == "2") && (x.headline8.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "2") && (x.body8.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	
	if ((storyBox9 == "2") && (x.headline9.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "2") && (x.body9.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	
	if ((storyBox10 == "2") && (x.headline10.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "2") && (x.body10.value == "")) {
		rowE.style.display = "";
		row2.style.display = "";
		error = "yes";
	}
// END VALIDATE STORY 2

// START VALIDATE STORY 3	
	if ((storyBox1 == "3") && (x.headline1.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox1 == "3") && (x.body1.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	
	if ((storyBox2 == "3") && (x.headline2.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "3") && (x.body2.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	
	if ((storyBox3 == "3") && (x.headline3.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "3") && (x.body3.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	
	if ((storyBox4 == "3") && (x.headline4.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "3") && (x.body4.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	
	if ((storyBox5 == "3") && (x.headline5.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "3") && (x.body5.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	
	if ((storyBox6 == "3") && (x.headline6.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "3") && (x.body6.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	
	if ((storyBox7 == "3") && (x.headline7.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "3") && (x.body7.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	
	if ((storyBox8 == "3") && (x.headline8.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "3") && (x.body8.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	
	if ((storyBox9 == "3") && (x.headline9.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "3") && (x.body9.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	
	if ((storyBox10 == "3") && (x.headline10.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "3") && (x.body10.value == "")) {
		rowE.style.display = "";
		row3.style.display = "";
		error = "yes";
	}
// END VALIDATE STORY 3

// START VALIDATE STORY 4	
	if ((storyBox1 == "4") && (x.headline1.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	if ((storyBox1 == "4") && (x.body1.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	
	if ((storyBox2 == "4") && (x.headline2.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "4") && (x.body2.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	
	if ((storyBox3 == "4") && (x.headline3.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "4") && (x.body3.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	
	if ((storyBox4 == "4") && (x.headline4.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "4") && (x.body4.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	
	if ((storyBox5 == "4") && (x.headline5.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "4") && (x.body5.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	
	if ((storyBox6 == "4") && (x.headline6.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "4") && (x.body6.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	
	if ((storyBox7 == "4") && (x.headline7.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "4") && (x.body7.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	
	if ((storyBox8 == "4") && (x.headline8.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "4") && (x.body8.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	
	if ((storyBox9 == "4") && (x.headline9.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "4") && (x.body9.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	
	if ((storyBox10 == "4") && (x.headline10.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "4") && (x.body10.value == "")) {
		rowE.style.display = "";
		row4.style.display = "";
		error = "yes";
	}
// END VALIDATE STORY 4

// START VALIDATE STORY 5	
	if ((storyBox1 == "5") && (x.headline1.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	if ((storyBox1 == "5") && (x.body1.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	
	if ((storyBox2 == "5") && (x.headline2.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "5") && (x.body2.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	
	if ((storyBox3 == "5") && (x.headline3.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "5") && (x.body3.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	
	if ((storyBox4 == "5") && (x.headline4.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "5") && (x.body4.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	
	if ((storyBox5 == "5") && (x.headline5.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "5") && (x.body5.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	
	if ((storyBox6 == "5") && (x.headline6.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "5") && (x.body6.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	
	if ((storyBox7 == "5") && (x.headline7.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "5") && (x.body7.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	
	if ((storyBox8 == "5") && (x.headline8.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "5") && (x.body8.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	
	if ((storyBox9 == "5") && (x.headline9.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "5") && (x.body9.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	
	if ((storyBox10 == "5") && (x.headline10.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "5") && (x.body10.value == "")) {
		rowE.style.display = "";
		row5.style.display = "";
		error = "yes";
	}
// END VALIDATE STORY 5

// START VALIDATE STORY 6	
	if ((storyBox1 == "6") && (x.headline1.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	if ((storyBox1 == "6") && (x.body1.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	
	if ((storyBox2 == "6") && (x.headline2.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "6") && (x.body2.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	
	if ((storyBox3 == "6") && (x.headline3.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "6") && (x.body3.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	
	if ((storyBox4 == "6") && (x.headline4.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "6") && (x.body4.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	
	if ((storyBox5 == "6") && (x.headline5.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "6") && (x.body5.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	
	if ((storyBox6 == "6") && (x.headline6.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "6") && (x.body6.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	
	if ((storyBox7 == "6") && (x.headline7.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "6") && (x.body7.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	
	if ((storyBox8 == "6") && (x.headline8.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "6") && (x.body8.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	
	if ((storyBox9 == "6") && (x.headline9.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "6") && (x.body9.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	
	if ((storyBox10 == "6") && (x.headline10.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "6") && (x.body10.value == "")) {
		rowE.style.display = "";
		row6.style.display = "";
		error = "yes";
	}
// END VALIDATE STORY 6

// START VALIDATE STORY 7
	if ((storyBox1 == "7") && (x.headline1.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	if ((storyBox1 == "7") && (x.body1.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	
	if ((storyBox2 == "7") && (x.headline2.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "7") && (x.body2.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	
	if ((storyBox3 == "7") && (x.headline3.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "7") && (x.body3.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	
	if ((storyBox4 == "7") && (x.headline4.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "7") && (x.body4.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	
	if ((storyBox5 == "7") && (x.headline5.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "7") && (x.body5.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	
	if ((storyBox6 == "7") && (x.headline6.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "7") && (x.body6.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	
	if ((storyBox7 == "7") && (x.headline7.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "7") && (x.body7.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	
	if ((storyBox8 == "7") && (x.headline8.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "7") && (x.body8.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	
	if ((storyBox9 == "7") && (x.headline9.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "7") && (x.body9.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	
	if ((storyBox10 == "7") && (x.headline10.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "7") && (x.body10.value == "")) {
		rowE.style.display = "";
		row7.style.display = "";
		error = "yes";
	}
// END VALIDATE STORY 7

// START VALIDATE STORY 8	
	if ((storyBox1 == "8") && (x.headline1.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	if ((storyBox1 == "8") && (x.body1.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	
	if ((storyBox2 == "8") && (x.headline2.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "8") && (x.body2.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	
	if ((storyBox3 == "8") && (x.headline3.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "8") && (x.body3.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	
	if ((storyBox4 == "8") && (x.headline4.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "8") && (x.body4.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	
	if ((storyBox5 == "8") && (x.headline5.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "8") && (x.body5.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	
	if ((storyBox6 == "8") && (x.headline6.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "8") && (x.body6.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	
	if ((storyBox7 == "8") && (x.headline7.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "8") && (x.body7.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	
	if ((storyBox8 == "8") && (x.headline8.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "8") && (x.body8.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	
	if ((storyBox9 == "8") && (x.headline9.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "8") && (x.body9.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	
	if ((storyBox10 == "8") && (x.headline10.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "8") && (x.body10.value == "")) {
		rowE.style.display = "";
		row8.style.display = "";
		error = "yes";
	}
// END VALIDATE STORY 8

// START VALIDATE STORY 9	
	if ((storyBox1 == "9") && (x.headline1.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	if ((storyBox1 == "9") && (x.body1.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	
	if ((storyBox2 == "9") && (x.headline2.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "9") && (x.body2.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	
	if ((storyBox3 == "9") && (x.headline3.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "9") && (x.body3.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	
	if ((storyBox4 == "9") && (x.headline4.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "9") && (x.body4.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	
	if ((storyBox5 == "9") && (x.headline5.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "9") && (x.body5.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	
	if ((storyBox6 == "9") && (x.headline6.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "9") && (x.body6.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	
	if ((storyBox7 == "9") && (x.headline7.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "9") && (x.body7.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	
	if ((storyBox8 == "9") && (x.headline8.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "9") && (x.body8.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	
	if ((storyBox9 == "9") && (x.headline9.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "9") && (x.body9.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	
	if ((storyBox10 == "9") && (x.headline10.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "9") && (x.body10.value == "")) {
		rowE.style.display = "";
		row9.style.display = "";
		error = "yes";
	}
// END VALIDATE STORY 9

// START VALIDATE STORY 10
	if ((storyBox1 == "10") && (x.headline1.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	if ((storyBox1 == "10") && (x.body1.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	
	if ((storyBox2 == "10") && (x.headline2.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "10") && (x.body2.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	
	if ((storyBox3 == "10") && (x.headline3.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "10") && (x.body3.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	
	if ((storyBox4 == "10") && (x.headline4.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "10") && (x.body4.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	
	if ((storyBox5 == "10") && (x.headline5.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "10") && (x.body5.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	
	if ((storyBox6 == "10") && (x.headline6.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "10") && (x.body6.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	
	if ((storyBox7 == "10") && (x.headline7.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "10") && (x.body7.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	
	if ((storyBox8 == "10") && (x.headline8.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "10") && (x.body8.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	
	if ((storyBox9 == "10") && (x.headline9.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "10") && (x.body9.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	
	if ((storyBox10 == "10") && (x.headline10.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "10") && (x.body10.value == "")) {
		rowE.style.display = "";
		row10.style.display = "";
		error = "yes";
	}
// END VALIDATE STORY 10

// START VALIDATE ORDER

	// start validate 2
	if ((storyBox1 == "3") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "3") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "3") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "3") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "3") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "3") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "3") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "3") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "3") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "3") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "60")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	// end validate 2
	// start validate 3
	if ((storyBox1 == "4") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "100")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "4") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "100")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "4") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "100")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "4") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "100")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "4") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "100")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "4") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "100")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "4") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "100")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "4") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "100")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "4") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "100")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "4") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "100")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	// end validate 3
	// start validate 4
	if ((storyBox1 == "5") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "150")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "5") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "150")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "5") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "150")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "5") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "150")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "5") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "150")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "5") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "150")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "5") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "150")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "5") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "150")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "5") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "150")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "5") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "150")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	// end validate 4
	// start validate 5
	if ((storyBox1 == "6") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "210")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "6") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "210")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "6") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "210")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "6") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "210")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "6") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "210")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "6") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "210")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "6") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "210")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "6") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "210")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "6") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "210")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "6") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "210")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	// end validate 5
	// start validate 6
	if ((storyBox1 == "7") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "280")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "7") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "280")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "7") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "280")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "7") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "280")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "7") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "280")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "7") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "280")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "7") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "280")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "7") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "280")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "7") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "280")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "7") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "280")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	// end validate 6
	// start validate 7
	if ((storyBox1 == "8") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "360")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "8") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "360")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "8") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "360")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "8") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "360")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "8") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "360")) {
		rowE.style.display = "";
		row0.style.display = "";
	}
	if ((storyBox6 == "8") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "360")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "8") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "360")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "8") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "360")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "8") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "360")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "8") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "360")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	// end validate 7
	// start validate 8
	if ((storyBox1 == "9") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "450")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "9") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "450")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "9") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "450")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "9") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "450")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "9") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "450")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "9") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "450")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "9") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "450")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "9") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "450")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "9") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "450")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "9") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "450")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	// end validate 8
	// start validate 9
	if ((storyBox1 == "10") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "550")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox2 == "10") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "550")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox3 == "10") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "550")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox4 == "10") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "550")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox5 == "10") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "550")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox6 == "10") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "550")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox7 == "10") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "550")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox8 == "10") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "550")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox9 == "10") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "550")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	if ((storyBox10 == "10") && (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 < "550")) {
		rowE.style.display = "";
		row0.style.display = "";
		error = "yes";
	}
	// end validate 9
	
	// start validate date
	
		var x = document.newsAdminRC.date1.value
		var valid = "0123456789/"
		var ok = "yes";
		var temp;
		
		if (document.newsAdminRC.date1.value != "") {
		
		for (var i=0; i<x.length; i++) {
		temp = "" + x.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if ((ok == "no") || (!(x.length == 8))) {
		rowE.style.display = "";
		rowD.style.display = "";
		error="yes";
		}
		}
		
		var x = document.newsAdminRC.date2.value
		var valid = "0123456789/"
		var ok = "yes";
		var temp;
		
		if (document.newsAdminRC.date2.value != "") {
		
		for (var i=0; i<x.length; i++) {
		temp = "" + x.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if ((ok == "no") || (!(x.length == 8))) {
		rowE.style.display = "";
		rowD.style.display = "";
		error="yes";
		}
		}
		
		var x = document.newsAdminRC.date3.value
		var valid = "0123456789/"
		var ok = "yes";
		var temp;
		
		if (document.newsAdminRC.date3.value != "") {
		
		for (var i=0; i<x.length; i++) {
		temp = "" + x.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if ((ok == "no") || (!(x.length == 8))) {
		rowE.style.display = "";
		rowD.style.display = "";
		error="yes";
		}
		}
		
		var x = document.newsAdminRC.date4.value
		var valid = "0123456789/"
		var ok = "yes";
		var temp;
		
		if (document.newsAdminRC.date4.value != "") {
		
		for (var i=0; i<x.length; i++) {
		temp = "" + x.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if ((ok == "no") || (!(x.length == 8))) {
		rowE.style.display = "";
		rowD.style.display = "";
		error="yes";
		}
		}
		
		var x = document.newsAdminRC.date5.value
		var valid = "0123456789/"
		var ok = "yes";
		var temp;
		
		if (document.newsAdminRC.date5.value != "") {
		
		for (var i=0; i<x.length; i++) {
		temp = "" + x.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if ((ok == "no") || (!(x.length == 8))) {
		rowE.style.display = "";
		rowD.style.display = "";
		error="yes";
		}
		}
		
		var x = document.newsAdminRC.date6.value
		var valid = "0123456789/"
		var ok = "yes";
		var temp;
		
		if (document.newsAdminRC.date6.value != "") {
		
		for (var i=0; i<x.length; i++) {
		temp = "" + x.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if ((ok == "no") || (!(x.length == 8))) {
		rowE.style.display = "";
		rowD.style.display = "";
		error="yes";
		}
		}
		
		var x = document.newsAdminRC.date7.value
		var valid = "0123456789/"
		var ok = "yes";
		var temp;
		
		if (document.newsAdminRC.date7.value != "") {
		
		for (var i=0; i<x.length; i++) {
		temp = "" + x.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if ((ok == "no") || (!(x.length == 8))) {
		rowE.style.display = "";
		rowD.style.display = "";
		error="yes";
		}
		}
		
		var x = document.newsAdminRC.date8.value
		var valid = "0123456789/"
		var ok = "yes";
		var temp;
		
		if (document.newsAdminRC.date8.value != "") {
		
		for (var i=0; i<x.length; i++) {
		temp = "" + x.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if ((ok == "no") || (!(x.length == 8))) {
		rowE.style.display = "";
		rowD.style.display = "";
		error="yes";
		}
		}
		
		var x = document.newsAdminRC.date9.value
		var valid = "0123456789/"
		var ok = "yes";
		var temp;
		
		if (document.newsAdminRC.date9.value != "") {
		
		for (var i=0; i<x.length; i++) {
		temp = "" + x.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if ((ok == "no") || (!(x.length == 8))) {
		rowE.style.display = "";
		rowD.style.display = "";
		error="yes";
		}
		}
		
		var x = document.newsAdminRC.date10.value
		var valid = "0123456789/"
		var ok = "yes";
		var temp;
		
		if (document.newsAdminRC.date10.value != "") {
		
		for (var i=0; i<x.length; i++) {
		temp = "" + x.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		}
		if ((ok == "no") || (!(x.length == 8))) {
		rowE.style.display = "";
		rowD.style.display = "";
		error="yes";
		}
		}
	
	// end validate date
	
	if (error == "no") {
		return true;
	}
	else {
		return false;
	}
	
// END VALIDATE ORDER

}

function textCounter(field, maxlimit) 
{
	if (field.value.length > maxlimit) {
		field.value = field.value.substring(0, maxlimit);
	}
	else {
		document.getElementById(field.id+"_maxChar").value = maxlimit - field.value.length;
	}
} 


-->