var preError = "The following errors have been found:\n------------------------------------\n";
var errorString = "";
var postError = "------------------------------------\nPlease correct these errors and re-submit.";
var errorNumber = 0;
var errorNumDot = ". ";

var styleID, colorID, fontColorID, foilColorID, itemLayout, itemContent, monogramStyle, designID, ms;
var initialFontOne, initialSizeOne, initialFontTwo, initialSizeTwo, initialFontThree, initialSizeThree, initialOneCopy, initialTwoCopy, initialThreeCopy;
var fontFaces = new Array(), fontSizes = new Array(), linesCopy = new Array();
var numberOfLines, includeDesign;
var currentStepDiv = "styleStep";
var currentStepNum = 1;
var fontColorChoice = 1;
var colorChoice = 1;
var choices = 2;				// this gets reset in parent php page to actual #
var colorID4, colorID2, colorID3;
var envContent;                  
var firstenv = true;
var font1select, font2select;
//var choices = 2;				// this gets reset in parent php page to actual #
//var extraMargin = 0;    // ditto
//var extraSpace = 0;     // ditto
//var paperColorCategoryID = 0;		// ditto
//var fontColorCategoryID = 0;		// ditto 
//var envtype = "";		// ditto 
//var designID = 0;		// ditto 
//var productID = 0;		// ditto 
//var dlines = 9;		// ditto
var napkinPictureUrl, printID, layoutChosen;
var productName = "";
//var colorName = "";
var colorName2 = "";  
var colorName3 = "";  
var colorName4 = "";
//var previewButton = false;

function getAllValues() {
	styleID = document.productForm.styleID.value;
	colorID = document.productForm.colorID.value;
	colorID2 = document.productForm.colorID2.value; 
	foilColorID = document.productForm.foilColorID.value;
	fontColorID = document.productForm.fontColorID.value;
	itemContent = getRadioValue(document.productForm.itemContent);
	itemLayout = document.productForm.itemLayout.value;
	for (i=1; i < dlines; i++) {
		fontFaces[i] = getSelectValue(document.productForm.elements['fontFace' + i]);
		fontSizes[i] = getSelectValue(document.productForm.elements['fontSize' + i]);
//		fontColors[i] = document.productForm.elements['fontColor' + i].value;
//		aligns[i] = document.productForm.elements['align' + i].value;
		linesCopy[i] = document.productForm.elements['line' + i].value;
	}
	designID = document.productForm.designID.value;
}
function seek(showDiv) {
	eval(navRefOne + showDiv + navRefTwo + ".display = 'block'");
}
function hide(hideDiv) {
	eval(navRefOne + hideDiv + navRefTwo + ".display = 'none'");
}

var stepArray = new Array();
i = 1;
stepArray["styleStep"] = i++;
stepArray["colorStep"] = i++;
stepArray["copyArtStep"] = i++;
stepArray["foilStep"] = i++;
stepArray["fontColorStep"] = i++;
stepArray["copyStep"] = i++;
//stepArray["layoutStep"] = i++;
stepArray["previewStep"] = i++;

function backStep() {
	if (currentStepNum == stepArray["colorStep"]) {
		colorChoice = 1;
	}
	if (currentStepNum == stepArray["fontColorStep"]) {
		fontColorChoice = 1;
	}

	var newStepNum = currentStepNum;
	if (newStepNum > 1) {
		newStepNum = newStepNum - 1;
	}
	for (newStep in stepArray) {
		if (stepArray[newStep] == newStepNum) {
			changeStep(newStep);
			break;
		}
	}
}
function changeStep(stepDiv) {
	stepnum = stepArray[stepDiv];

	var cat = "";
	getAllValues();

	if (currentStepDiv.slice(0,9) == "colorStep") {
		eval(navRefOne + "colorStepNo" + navRefTwo.replace(/.style/,".className") + " = 'inactive-step'");
	} else {
		eval(navRefOne + currentStepDiv + "No" + navRefTwo.replace(/.style/,".className") + " = 'inactive-step'");
	}
//	if (currentStepDiv.slice(0,13) == "fontColorStep") {
//		eval(navRefOne + "fontColorStepNo" + navRefTwo.replace(/.style/,".className") + " = 'inactive-step'");
//	} else {
//		eval(navRefOne + currentStepDiv + "No" + navRefTwo.replace(/.style/,".className") + " = 'inactive-step'");
//	}
	eval(navRefOne + stepDiv + "No" + navRefTwo.replace(/.style/,".className") + " = 'active-step'");
	if (stepDiv == "colorStep" && colorChoice > 1 && choices >= colorChoice) {
			stepDiv = stepDiv + colorChoice;
	}
//	if (stepDiv == "fontColorStep" && fontColorChoice > 1 && choices >= fontColorChoice) {
//			stepDiv = stepDiv + fontColorChoice;
//	}
	eval(navRefOne + currentStepDiv + "Desc" + navRefTwo + ".display = 'none'");
	eval(navRefOne + stepDiv + "Desc" + navRefTwo + ".display = 'block'");
	eval(navRefOne + currentStepDiv + navRefTwo + ".display = 'none'");
	eval(navRefOne + stepDiv + navRefTwo + ".display = 'block'");
	if (currentStepDiv != stepDiv) {
		if (stepDiv.slice(0,13) == "fontColorStep") {
			if (styleID < 230) {
				setTimeout('loadIframe("fontColorSamples", "samplePages/showFoils.php?cat=m")',300);
			} else {
				setTimeout('loadIframe("fontColorSamples", "samplePages/showFontColors.php")',300);
			}
		} else if (stepDiv.slice(0,9) == "colorStep") {
			cat = "m";
			if (styleID > 229) {
				cat = "mt";
			}
			if (colorChoice > 1) {
				setTimeout('loadIframe("colorSamples' + colorChoice + '", "samplePages/showPaperColors.php?cat=' + cat + '")',300);
			} else {
				if (choices > 1) {   
					cat = "all";
				}
				setTimeout('loadIframe("colorSamples", "samplePages/showPaperColors.php?cat=' + cat + '")',300);
			}
		} else if (stepDiv == "foilStep") {
			setTimeout('loadIframe("foilSamples", "samplePages/showFoils.php")',300);
		} else if (stepDiv == "copyArtStep") {
			setTimeout('loadIframe("copyArtSamples", "samplePages/showDesigns.php")',300);
		} else if (stepDiv == "layoutStep") {
			setTimeout('loadIframe("layoutSamples", "samplePages/showLugTagLayouts.php")',300);
		}
	}
	currentStepDiv = stepDiv;
	currentStepNum = stepnum;
	updatePreview();
//	nextTip();
}
function selectStyle(selectItem,selectName) { 
	choices = 1;
	colorChoice = 1;
	if (selectItem == 225 || selectItem == 231) {
		choices = 2;
	}
	document.productForm.styleID.value=selectItem;
	var d=document.getElementById('product_type');
	d.innerHTML=selectName + " " + colorName;
	productName=selectName;
	if (selectItem < 230) {
		var d=document.getElementById('fontText1');
		d.innerHTML="FOIL";
		var d=document.getElementById('fontText2');
		d.innerHTML="foil";
	} else {
		if (document.productForm.fontColorID.value < 100) {
			document.productForm.fontColorID.value = 180;
			foilName = "Thermography-Black";
			var f=document.getElementById('foil_type');
			f.innerHTML=foilName + "<br />" + foilName1;
		}
		var d=document.getElementById('fontText1');
		d.innerHTML="FONT";
		var d=document.getElementById('fontText2');
		d.innerHTML="font";
	}
	styleSelect();
}
function selectColor(selectItem,selectName) {
	switch (colorChoice) {
		case 1:
			document.productForm.colorID.value=selectItem;
			colorName=selectName;
			break;
		case 2:
			document.productForm.colorID2.value=selectItem;
			colorName2=selectName;
			break;
	}
	var d=document.getElementById('product_type');
	d.innerHTML=productName + "<br />" + colorName + "<br />" + colorName2;
//	colorName=selectName;
	getAllValues();
	colorSelect();
}
function selectLayout(selectItem) {
	document.productForm.itemLayout.value=selectItem;
	getAllValues();
	layoutSelect();
}
//function selectMonogram(selectItem) {
//	document.productForm.monogramStyleList.value=selectItem;
//	getAllValues();
//	monogramSelect();
//}
function selectFontColor(selectItem,fontColorName) {               
	document.productForm.fontColorID.value=selectItem;
	foilName1 = fontColorName;
	var d=document.getElementById('foil_type');
	d.innerHTML=foilName + "<br />" + foilName1;
	getAllValues();
	fontColorSelect();
}
function selectFoil(selectItem,foilNamex) {
	if (currentStepDiv == "fontColorStep") {
		selectFontColor(selectItem,foilNamex);
		return;
	}
	document.productForm.foilColorID.value=selectItem;
	foilName = foilNamex;
	var d=document.getElementById('foil_type');
	d.innerHTML=foilName + "<br />" + foilName1;
	getAllValues();
	foilColorSelect();
}
function selectBlank() {
	document.productForm.foilColorID.value="";
	foilName1 = "";
	var d=document.getElementById('foil_type');
	d.innerHTML=foilName + "<br />" + foilName1;
	getAllValues();
	changeStep("previewStep");
}
function selectDesign(selectItem) {
	document.productForm.designID.value=selectItem;
	getAllValues();
	designSelect();
}
function selectFont(selectItem) {
	var oldFontVal = ffield.selectedIndex;
	var oldFontName = ffield.options[ffield.selectedIndex].text;
	ffield.selectedIndex=selectItem;
	var newFontVal = ffield.options[ffield.selectedIndex].value;
	hidebox('fontBox');
	hidebox('allFontBox');
	if (oldFontVal != selectItem) { 
		if (newFontVal > 400) {
			var i = ffield.name.slice(-1);
	  	if (document.productForm.elements['line'+i].value != "") {
	  		document.productForm.elements['line'+i].value = "";
				alert("Because you have selected a FLOURISH for this line, the text in it has been cleared.");
			}
		}
		var chgFonts = false;
		chgFonts = confirm("Change all lines with " + oldFontName + " to " + ffield.options[ffield.selectedIndex].text + "?");
		if (chgFonts) {
		  for (i=1; i < dlines; i++) {
		  	if (document.productForm.elements['fontFace'+i].selectedIndex == oldFontVal) {
			  	document.productForm.elements['fontFace'+i].selectedIndex = selectItem;
			  	if (newFontVal > 400 && document.productForm.elements['line'+i].value != "") {
			  		document.productForm.elements['line'+i].value = "";
			  	}
			  }
			}
		}
	}
	getAllValues();
	fontSelect();
}
function getFonts() {
	var hiid = document.productForm.elements['fontFace1'].length;
	var countFontIDArray = new Array(hiid);
  for (i=1; i <= hiid; i++) {
  	countFontIDArray[i] = 0;
  }
  for (i=1; i < dlines; i++) {
  	var nextval = document.productForm.elements['fontFace'+i].selectedIndex;
  	countFontIDArray[nextval] = countFontIDArray[nextval] + 1;
	}
	hiid = 0;
	font1ID = 19;
  for (i=1; i <= countFontIDArray.length; i++) {
  	if (countFontIDArray[i] > hiid) {
  		font2select = hiid;
  		hiid = countFontIDArray[i];
  		font1select = i;
  	}
  }
}

function setFonts() {
}

function selectGiftset(selectItem) {
	document.productForm.giftsetID.value=selectItem;
	document.productForm.action = "/giftsets.php";
	if (BrowserDetect.browser == "Explorer" && BrowserDetect.version < 7){
		setTimeout('document.productForm.submit()',300);
	} else {
		document.productForm.submit();
	}
}
function updateCopy(EW_this) {
	getAllValues();
	var nxtFldName = EW_this.name.replace(/line/,"fontFace");
//	var lineNo = nxtFldName.slice(-1);
//	var lstFld;
//	var lstFldName;
//if (lineNo > 1) {
//	var lstFldNo = lineNo - 1;
	if (EW_this.value != "") {
		var nxtFld = eval(navRefOne + nxtFldName + navRefTwo.replace(/.style/,""));
		if (nxtFld.options[nxtFld.selectedIndex].value > 400) {
			nxtFld.selectedIndex = 0;
			alert("Please select a font for this line.");
			nxtFld.focus();
		}
	}
	updatePreview();
}
function findItem(seekValue, seekList) {
	var index;
	var arrayLength = seekList.length;
	for (index = 0; index < arrayLength; index++) {
	  if (seekList.options[index].value == seekValue) {
	  	return index;
	  }
	}
}
/* ================================= Begin onChange functions ================================= */
function styleSelect() {
	getAllValues();
	changeStep("colorStep");
}
function colorSelect() {
	getAllValues();
	if (choices > colorChoice) {
		colorChoice++;
		changeStep("colorStep");
	} else {
		colorChoice = 1;
		changeStep("copyArtStep");
	}
}
function fontColorSelect() {
	getAllValues();
//	if (choices > fontColorChoice) {
//		fontColorChoice++;
//		changeStep("fontColorStep");
//	} else {
//		fontColorChoice = 1;
//		if (designID == 0 || designID == "") {
			changeStep("copyStep");
//		} else {
//			changeStep("copyArtStep");
//		}
//	}
}
function contentSelect() {
	getAllValues();
	if (itemContent.substr(0,8) == "monogram") {
		if (designID != "") {
			designID = "";
			document.productForm.designID.value="";
			alert("Designs cannot be added with Monograms. Your design selection has been cleared.");
		}
		var d=document.getElementById('linelbl1');
		d.innerHTML="Monogram First Initial:";
		var d=document.getElementById('linelbl2');
		d.innerHTML="Monogram Second Initial: (if any)";
		var d=document.getElementById('linelbl3');
		d.innerHTML="Monogram Third Initial: (if any)";
	} else {
		var d=document.getElementById('linelbl1');
		d.innerHTML="Line 1:";
		var d=document.getElementById('linelbl2');
		d.innerHTML="Line 2:";
		var d=document.getElementById('linelbl3');
		d.innerHTML="Line 3:";
	}
	updatePreview();
}
function designSelect() {
	getAllValues();
	if (designID != "" && itemContent.substr(0,8) == "monogram") { //no art on monograms
		designID = "";
		document.productForm.designID.value="";
		if (itemContent.substr(0,8) == "monogram") {
			alert("Designs cannot be added with Monograms. Your design selection has been cleared.");
		}
		return;
	}
	changeStep("foilStep"); 
}
function foilColorSelect() {
	getAllValues();
	changeStep("fontColorStep");
}
function layoutSelect() {
	getAllValues();
	if (itemLayout == "squareSetup" && designID != "") {
		designID = "";
		document.productForm.designID.value="";
		alert("Designs cannot be added to a Square Setup. Your design selection has been cleared.");
	}
	if (itemLayout == "squareSetup" && itemContent.substr(0,8) == "monogram") {
		document.productForm.itemLayout.value="";
		alert("Square Setup cannot be selected with Monograms.");
		return;
	}
	if (envtype != "") {
		changeStep("envStep");
	} else {
		changeStep("previewStep");
	}
}
function fontSelect() {
	getAllValues();
	updatePreview();
}

var oldSize;
function sizeSelect(sfield) {
	var oldFontName = sfield.options[oldSize].text;
	if (oldSize != sfield.selectedIndex) { 
		var chgFonts = false;
		var sSize = oldSize;
		chgFonts = confirm("Change all lines with " + oldFontName + " to " + sfield.options[sfield.selectedIndex].text + "?");
		if (chgFonts) {
		  for (i=1; i < dlines; i++) {
		  	if (document.productForm.elements['fontSize'+i].selectedIndex == sSize) {
			  	document.productForm.elements['fontSize'+i].selectedIndex = sfield.selectedIndex;
			  }
			} 
			oldSize = sfield.selectedIndex;
		}
	}
	getAllValues();
	updatePreview();
}

var previewDelay;
var previewUrl;

function getPictUrl() {
	napkinPictureUrl =
	"menucardPicture.php?" +
	"styleID=" + document.urlPlaceholderForm.styleID.value + "&" +
	"colorID=" + document.urlPlaceholderForm.colorID.value + "&" +
	"colorID2=" + document.urlPlaceholderForm.colorID2.value + "&" +
	"layout=" + document.urlPlaceholderForm.layoutChosen.value + "&" +
	"foilID=" + document.urlPlaceholderForm.foilColorID.value + "&" +
	"foilID2=" + document.urlPlaceholderForm.fontColorID.value + "&" +
	"designID=" + document.urlPlaceholderForm.designID.value + "&" +
	"design=" + document.urlPlaceholderForm.includeDesign.value + "&";

	for (i=1; i < dlines; i++) {
		napkinPictureUrl +=
		"fontID" + i + "=" + document.urlPlaceholderForm.elements['fontID' + i].value + "&" +
		"size" + i + "=" + document.urlPlaceholderForm.elements['size' + i].value + "&" +
		"line" + i + "=" + escape(document.urlPlaceholderForm.elements['line' + i].value) + "&";
	}
	napkinPictureUrl +=
	"ms=" + document.urlPlaceholderForm.ms.value; 
//document.productForm.comments.value = napkinPictureUrl;	
	return(napkinPictureUrl);
}

function moveUp() {
	extraMargin -= 4;
	updatePreview();
}
function moveDown() {
	extraMargin += 4;
	updatePreview();
}
function moreSpace() {
	extraSpace++;
	updatePreview();
}
function lessSpace() {
	extraSpace--;
	updatePreview();
}

function updatePreview() {
	getAllValues();
		document.urlPlaceholderForm.styleID.value = styleID;
		document.urlPlaceholderForm.colorID.value = colorID;
		document.urlPlaceholderForm.colorID2.value = colorID2;
		document.urlPlaceholderForm.foilColorID.value = foilColorID;
		document.urlPlaceholderForm.fontColorID.value = fontColorID;
		document.urlPlaceholderForm.designID.value = designID; 
		noCopy = true;
		for (i=1; i < dlines; i++) {
			document.urlPlaceholderForm.elements['fontID' + i].value = fontFaces[i];
			document.urlPlaceholderForm.elements['size' + i].value = fontSizes[i];
			document.urlPlaceholderForm.elements['line' + i].value = linesCopy[i];
			if (linesCopy[i] != "") {
				noCopy = false;
			} 
		}
		if ((currentStepDiv == "fontColorStep" || currentStepDiv == "copyStep") && noCopy && (designID == "" || designID == 0)) { 
			document.urlPlaceholderForm.line1.value = "Font";
			document.urlPlaceholderForm.line2.value = "Color";
		}
		document.urlPlaceholderForm.layoutChosen.value = itemLayout;
		ms = "noneChosen";
		if (itemContent.substr(0,8) == "monogram") {
			if (document.urlPlaceholderForm.line3.value != "") {
				ms = "threeLetters" + itemContent.substr(8);
			} else if (document.urlPlaceholderForm.line2.value != "") {
				ms = "twoLetters" + itemContent.substr(8);
			} else if (document.urlPlaceholderForm.line1.value != "") {
				ms = "oneLetter";
			}
		}
		document.urlPlaceholderForm.ms.value = ms;
		includeDesign = "no";
		if (document.urlPlaceholderForm.designID.value != "" && document.urlPlaceholderForm.designID.value != 0) {
			includeDesign = "yes";
		}
		document.urlPlaceholderForm.includeDesign.value = includeDesign;

//alert(getPictUrl());
	previewUrl = getPictUrl();

	previewDelay = setTimeout("displayPreview()",500);
}

function displayPreview() {
	eval(navRefOne + "previewboxcontainer" + navRefTwo + ".background = \"url('" + previewUrl + "') no-repeat center center\"");
}
//	eval(navRefOne + "" + navRefTwo + ".background = \"url('/" + getPictUrl() + "') no-repeat center center\"");
//}

function largePreview(e) {
	getAllValues();
//alert(itemContent + "\n" + getPictUrl());
	if (!e) var e = window.event;

	enlarge(getPictUrl() + "&large=y",e,'center',300,700);
//	var newWin = window.open("/" + getPictUrl() + "&large=y", 'samples', 'width=700,height=750,top=0,left=0,resizable,scrollbars=yes,statusbar');
//	newWin.focus();
}


function checkErrors() {
	getAllValues();
	/* reset errors */
	errorString = "";
	errorNumber = 0;
	/* -------------- check style -------------- */
	if (styleID == "") {
		errorNumber++;
		errorString += errorNumber + errorNumDot + "A menu card style has not been chosen!\n";
	}
	/* -------------- check color or faux print -------------- */
	if (colorID == "") {
		errorNumber++;
		errorString += errorNumber + errorNumDot + "A menu card color has not been chosen!\n";
	}
	if (choices > 1 &&  colorID2 == "") {
		errorNumber++;
		errorString += errorNumber + errorNumDot + "A menu card top layer color has not been chosen!\n";
	}
	/* -------------- check font color -------------- */
	if (fontColorID == "") {
		errorNumber++;
		errorString += errorNumber + errorNumDot + "A font color has not been chosen!\n";
	}
	/* -------------- check lines (if neccessary) -------------- */
	for (i=1; i < dlines; i++) {
		if (linesCopy[i] != "") {
			if (fontFaces[i] == "noneChosen") {
				errorNumber++;
				errorString += errorNumber + errorNumDot + "A font for line " + i + " has not been chosen!\n";
			}
			if (fontSizes[i] == "noneChosen") {
				errorNumber++;
				errorString += errorNumber + errorNumDot + "A font size for line " + i + " has not been chosen!\n";
			}
		}
	}
	/* -------------- check foil -------------- */
	if (designID != "") {
		if (foilColorID == "") {
			errorNumber++;
			errorString += errorNumber + errorNumDot + "A foil color for the design has not been chosen!\n";
		}
	}
	if (errorNumber != 0) {
		return true;
	} else {
		return false;
	}
}

function addToCart() {
	if (checkErrors()) {
		alert(preError + errorString + postError);
	} else {

		document.addCartForm.cart_url.value = getPictUrl();
		document.addCartForm.cart_productID.value = document.urlPlaceholderForm.styleID.value;
		document.addCartForm.cart_layout.value = document.urlPlaceholderForm.layoutChosen.value;
		document.addCartForm.cart_designID.value = document.urlPlaceholderForm.designID.value;
		document.addCartForm.cart_colorID.value = document.urlPlaceholderForm.colorID.value;
		document.addCartForm.cart_colorID2.value = document.urlPlaceholderForm.colorID2.value;
		document.addCartForm.cart_foilID.value = document.urlPlaceholderForm.foilColorID.value;
		document.addCartForm.cart_foilID2.value = document.urlPlaceholderForm.fontColorID.value;

		var monoArray = new Array();
		monoArray.oneLetter = "One Letter";
		monoArray.twoLettersHoriz = "Two Letters Horizontal";
		monoArray.twoLettersVert = "Two Letters Vertical";
		monoArray.twoLettersOffset = "Two Letters Offset";
		monoArray.threeLettersHoriz = "Three Letters Horizontal";
		monoArray.threeLettersVert = "Three Letters Vertical";
		monoArray.threeLettersOffset = "Three Letters Offset";
		if (document.urlPlaceholderForm.ms.value != "noneChosen") {
			var monoChoice = document.urlPlaceholderForm.ms.value;
			monogramStyleName = monoArray[monoChoice];
			contentType = "Monogram " + "(" + monogramStyleName + ")";
		} else {
//		 	contentType = "Nc: " + document.urlPlaceholderForm.numberOfLines.value + " line(s)";
		}

		for (i=1; i < dlines; i++) {
			document.addCartForm.elements['cart_fontID' + i].value = document.urlPlaceholderForm.elements['fontID' + i].value;
			document.addCartForm.elements['cart_fontSize' + i].value =   document.urlPlaceholderForm.elements['size' + i].value;
			document.addCartForm.elements['cart_line' + i].value =   document.urlPlaceholderForm.elements['line' + i].value;
		}

		document.addCartForm.cart_comments.value = document.productForm.comments.value;

//		if (document.productForm.giftbox.checked) {
//			document.addCartForm.cart_giftbox.value = "yes";
//		} else {
//			document.addCartForm.cart_giftbox.value = "no";
//		}
		document.addCartForm.cart_insert.value = "yes";

		document.addCartForm.submit();
	}

/* var test; */
/* test = "url = " + document.addCartForm.cart_url.value + "\n"; */
/* test += "product ID = " + document.addCartForm.cart_productID.value + "\n"; */
/* test += "layout = " + document.addCartForm.cart_layout.value + "\n"; */
/* test += "content = " + document.addCartForm.cart_contentType.value + "\n"; */
/* test += "color ID = " + document.addCartForm.cart_colorID.value + "\n"; */
/* test += "fontColor ID = " + document.addCartForm.cart_fontColorID.value + "\n"; */
/* test += "design ID = " + document.addCartForm.cart_designID.value + "\n"; */
/* test += "line one = " + document.addCartForm.cart_lineOneCopy.value + "\n"; */
/* test += "font one ID = " + document.addCartForm.cart_fontOneID.value + "\n"; */
/* test += "font one size = " + document.addCartForm.cart_fontOneSize.value + "\n"; */
/* test += "line two = " + document.addCartForm.cart_lineTwoCopy.value + "\n"; */
/* test += "font two ID = " + document.addCartForm.cart_fontTwoID.value + "\n"; */
/* test += "font two size = " + document.addCartForm.cart_fontTwoSize.value + "\n"; */
/* test += "line three = " + document.addCartForm.cart_lineThreeCopy.value + "\n"; */
/* test += "font three ID = " + document.addCartForm.cart_fontThreeID.value + "\n"; */
/* test += "font three size = " + document.addCartForm.cart_fontThreeSize.value + "\n"; */
/* test += "line four = " + document.addCartForm.cart_lineFourCopy.value + "\n"; */
/* test += "font four ID = " + document.addCartForm.cart_fontFourID.value + "\n"; */
/* test += "font four size = " + document.addCartForm.cart_fontFourSize.value + "\n"; */
/* test += "line five = " + document.addCartForm.cart_lineFiveCopy.value + "\n"; */
/* test += "font five ID = " + document.addCartForm.cart_fontFiveID.value + "\n"; */
/* test += "font five size = " + document.addCartForm.cart_fontFiveSize.value + "\n"; */
/* alert(test); */
}



