<!--

// op6 - 8

// this function will check op3 - op11 to see if a value is entered in each.
// $8 will be charged for each line of text.  Each line should not exceed 15
// characters (defunct for now)
function calcAddlCosts()
{
	// addl cost variable.  initially "$0"
	var strCost;
	
	strCost = document.frm.op11;
	var intCost = 0;
	var lines = 0;
	
	// default strCost to $0
	strCost.value = "$0";
		
	// loop through op3 - 11 seeing if any have a value
	for (i = 6; i <= 8; i++)
	{
		if (eval("document.frm.op" + i + ".value.length") > 0)
		{
			intCost += 8;  // inc by $8
			lines++;       // count lines
		}
	
	}
	
	// once cost calculated, throw it into string hidden var that will be passed in the form
	if (intCost > 0)
	{
		if (lines == 1)
			strLines = "line";
		else
			strLines = "lines";
			
		strCost.value = lines + " " + strLines + " of personalization - $" + intCost; 
	}
	
	// debug
	// alert("strCost:" + strCost.value);
	
	// submit form
	document.frm.submit();
}
// -->