		
				var TBSizes = new Array();
	
	
			
			
var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
	},
	searchString: function (data) {
		for (var i=0;i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
			this.versionSearchString = data[i].versionSearch || data[i].identity;
			if (dataString) {
				if (dataString.indexOf(data[i].subString) != -1)
					return data[i].identity;
			}
			else if (dataProp)
				return data[i].identity;
		}
	},
	searchVersion: function (dataString) {
		var index = dataString.indexOf(this.versionSearchString);
		if (index == -1) return;
		return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
	},
	dataBrowser: [
		{
			string: navigator.userAgent,
			subString: "Chrome",
			identity: "Chrome"
		},
		{ 	string: navigator.userAgent,
			subString: "OmniWeb",
			versionSearch: "OmniWeb/",
			identity: "OmniWeb"
		},
		{
			string: navigator.vendor,
			subString: "Apple",
			identity: "Safari",
			versionSearch: "Version"
		},
		{
			prop: window.opera,
			identity: "Opera"
		},
		{
			string: navigator.vendor,
			subString: "iCab",
			identity: "iCab"
		},
		{
			string: navigator.vendor,
			subString: "KDE",
			identity: "Konqueror"
		},
		{
			string: navigator.userAgent,
			subString: "Firefox",
			identity: "Firefox"
		},
		{
			string: navigator.vendor,
			subString: "Camino",
			identity: "Camino"
		},
		{		// for newer Netscapes (6+)
			string: navigator.userAgent,
			subString: "Netscape",
			identity: "Netscape"
		},
		{
			string: navigator.userAgent,
			subString: "MSIE",
			identity: "Explorer",
			versionSearch: "MSIE"
		},
		{
			string: navigator.userAgent,
			subString: "Gecko",
			identity: "Mozilla",
			versionSearch: "rv"
		},
		{ 		// for older Netscapes (4-)
			string: navigator.userAgent,
			subString: "Mozilla",
			identity: "Netscape",
			versionSearch: "Mozilla"
		}
	],
	dataOS : [
		{
			string: navigator.platform,
			subString: "Win",
			identity: "Windows"
		},
		{
			string: navigator.platform,
			subString: "Mac",
			identity: "Mac"
		},
		{
			string: navigator.platform,
			subString: "Linux",
			identity: "Linux"
		}
	]

};
BrowserDetect.init();
	
		
				function openHelpWindow(win, height, width, scrollbars)
				{
					window.open(win,'popupwin','height=' + height + ',width=' + width + ',scrollbars=' + scrollbars + ',status=no,toolbars=no,resizable=no,menubar=no');
				}
		
				function buildPreviewHTML(sLine)
				{
					var sHTML

					sHTML = "<!--PREVIEW TABLE-->";
					sHTML +="<table cellpadding='1' cellspacing='0' border='0' ID='Table16'><tr><td align='center' bgcolor='#CACED9'>";
					sHTML +="<table cellpadding='0' cellspacing='0' border='0' ID='Table17'>";
					sHTML +="<tr><td bgcolor='#666666' width='300' align='center'><img src='hanoverassets/tcs/monogram/preview.gif' width='200' height='17'></td></tr>";
					sHTML +="<tr><td align='center' bgcolor='#666666' width='300' height='100'>";
					sHTML +="<table cellpadding='0' cellspacing='0' border='0' ID='Table18' >";
					sHTML +="<tr>";
					
					sHTML +="<td valign='top'><div ID='showinitial0_" + sLine + "' Name='showinitial0'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial1_" + sLine + "' Name='showinitial1'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial2_" + sLine + "' Name='showinitial2'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial3_" + sLine + "' Name='showinitial3'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial4_" + sLine + "' Name='showinitial4'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial5_" + sLine + "' Name='showinitial5'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial6_" + sLine + "' Name='showinitial6'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial7_" + sLine + "' Name='showinitial7'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial8_" + sLine + "' Name='showinitial8'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial9_" + sLine + "' Name='showinitial9'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial10_" + sLine + "' Name='showinitial10'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial11_" + sLine + "' Name='showinitial11'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial12_" + sLine + "' Name='showinitial12'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial13_" + sLine + "' Name='showinitial13'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial14_" + sLine + "' Name='showinitial14'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial15_" + sLine + "' Name='showinitial15'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial16_" + sLine + "' Name='showinitial16'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial17_" + sLine + "' Name='showinitial17'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial18_" + sLine + "' Name='showinitial18'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial19_" + sLine + "' Name='showinitial19'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial20_" + sLine + "' Name='showinitial20'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td valign='top'><div ID='showinitial21_" + sLine + "' Name='showinitial21'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial22_" + sLine + "' Name='showinitial22'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial23_" + sLine + "' Name='showinitial23'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial24_" + sLine + "' Name='showinitial24'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial25_" + sLine + "' Name='showinitial25'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="</tr>";
					sHTML +="</table>";
					sHTML +="<table cellpadding='0' cellspacing='0' border='0' ID='Table18'>";
					sHTML +="<tr>";
					sHTML +="<td><div ID='showinitial26_" + sLine + "' Name='showinitial26'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial27_" + sLine + "' Name='showinitial27'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial28_" + sLine + "' Name='showinitial28'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial29_" + sLine + "' Name='showinitial29'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial30_" + sLine + "' Name='showinitial30'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial31_" + sLine + "' Name='showinitial31'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial32_" + sLine + "' Name='showinitial32'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial33_" + sLine + "' Name='showinitial33'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial34_" + sLine + "' Name='showinitial34'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial35_" + sLine + "' Name='showinitial35'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial36_" + sLine + "' Name='showinitial36'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial37_" + sLine + "' Name='showinitial37'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial38_" + sLine + "' Name='showinitial38'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial39_" + sLine + "' Name='showinitial39'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial40_" + sLine + "' Name='showinitial40'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial41_" + sLine + "' Name='showinitial41'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial42_" + sLine + "' Name='showinitial42'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial43_" + sLine + "' Name='showinitial43'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial44_" + sLine + "' Name='showinitial44'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial45_" + sLine + "' Name='showinitial45'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial46_" + sLine + "' Name='showinitial46'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial47_" + sLine + "' Name='showinitial47'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial48_" + sLine + "' Name='showinitial48'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial49_" + sLine + "' Name='showinitial49'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial50_" + sLine + "' Name='showinitial50'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial51_" + sLine + "' Name='showinitial51'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="</tr>";
					sHTML +="</table>";
					sHTML +="<table cellpadding='0' cellspacing='0' border='0' ID='Table18'>";
					sHTML +="<tr>";
					sHTML +="<td><div ID='showinitial52_" + sLine + "' Name='showinitial52'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial53_" + sLine + "' Name='showinitial53'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial54_" + sLine + "' Name='showinitial54'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial55_" + sLine + "' Name='showinitial55'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial56_" + sLine + "' Name='showinitial56'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial57_" + sLine + "' Name='showinitial57'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial58_" + sLine + "' Name='showinitial58'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial59_" + sLine + "' Name='showinitial59'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial60_" + sLine + "' Name='showinitial60'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial61_" + sLine + "' Name='showinitial61'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial62_" + sLine + "' Name='showinitial62'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial63_" + sLine + "' Name='showinitial63'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial64_" + sLine + "' Name='showinitial64'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial65_" + sLine + "' Name='showinitial65'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial66_" + sLine + "' Name='showinitial66'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial67_" + sLine + "' Name='showinitial67'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial68_" + sLine + "' Name='showinitial68'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial69_" + sLine + "' Name='showinitial69'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial70_" + sLine + "' Name='showinitial70'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial71_" + sLine + "' Name='showinitial71'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial72_" + sLine + "' Name='showinitial72'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial73_" + sLine + "' Name='showinitial73'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial74_" + sLine + "' Name='showinitial74'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial75_" + sLine + "' Name='showinitial75'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial76_" + sLine + "' Name='showinitial76'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial77_" + sLine + "' Name='showinitial77'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="</tr>";
					sHTML +="</table>";
					sHTML +="<table cellpadding='0' cellspacing='0' border='0' ID='Table18'>";
					sHTML +="<tr>";
					sHTML +="<td><div ID='showinitial78_" + sLine + "' Name='showinitial78'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial79_" + sLine + "' Name='showinitial79'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial80_" + sLine + "' Name='showinitial80'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial81_" + sLine + "' Name='showinitial81'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial82_" + sLine + "' Name='showinitial82'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial83_" + sLine + "' Name='showinitial83'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial84_" + sLine + "' Name='showinitial84'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial85_" + sLine + "' Name='showinitial85'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial86_" + sLine + "' Name='showinitial86'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial87_" + sLine + "' Name='showinitial87'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial88_" + sLine + "' Name='showinitial78'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial89_" + sLine + "' Name='showinitial79'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial90_" + sLine + "' Name='showinitial80'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial91_" + sLine + "' Name='showinitial81'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial92_" + sLine + "' Name='showinitial82'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial93_" + sLine + "' Name='showinitial83'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial94_" + sLine + "' Name='showinitial84'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial95_" + sLine + "' Name='showinitial85'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial96_" + sLine + "' Name='showinitial86'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial97_" + sLine + "' Name='showinitial87'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial98_" + sLine + "' Name='showinitial78'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial99_" + sLine + "' Name='showinitial79'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial100_" + sLine + "' Name='showinitial86'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial101_" + sLine + "' Name='showinitial87'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial102_" + sLine + "' Name='showinitial78'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="<td><div ID='showinitial103_" + sLine + "' Name='showinitial79'><img src='pix.gif' width='1' height='1' border='0'></div></td>";
					sHTML +="</tr>";
					sHTML +="</table>";
					sHTML +="<table cellpadding='0' cellspacing='0' border='0' bordercolor='white' ID='ModernTable" + sLine + "'>";
					sHTML +="<tr>";
					sHTML +="<td valign='bottom'><div Name='modern0' ID='modern0_" + sLine + "'>&nbsp;</div></td>";
					sHTML +="<td valign='bottom'><div Name='modern1' ID='modern1_" + sLine + "'></div></td>";
					sHTML +="<td rowspan='2' valign='middle'><div ID='modern3_" + sLine + "' Name='modern2'></div></td>";
					sHTML +="</tr>";
					sHTML +="<tr>";
					sHTML +="<td valign='top'><div Name='modern3' ID='modern4_" + sLine + "'>&nbsp;</div></td>";
					sHTML +="<td valign='top'><div Name='modern4' ID='modern2_" + sLine + "'></div></td>";
					sHTML +="</tr>";
					sHTML +="</table>";
					sHTML +="</td></tr></table></td></tr></table>";
					sHTML +="</td>";
					sHTML +="<div style='display:none'>";
					sHTML +="<input type='text' id=text1 name=text1>";
					sHTML +="</div>";
					sHTML +="<!--END PREVIEW TABLE-->";
					
					return sHTML;
				}		
		
				function createSelect(id, cssClass, optionTexts, optionValues, onChange)
				{	
					var oSelect = document.createElement("select");
					oSelect.id = id;
					oSelect.name = id;
					oSelect.className = cssClass;
					oSelect.options.length = 0;
					oSelect.onchange = new Function("e",onChange);

					for(var i=0;i<optionTexts.length;i++)
					{
						oSelect.options[oSelect.options.length] = new Option(optionTexts[i],optionValues[i]);
					}

					return oSelect;
				}
				
				function createButton(id, cssClass, onclick, text)
				{
					var a = document.createElement("input");
					a.type="button";
					a.id=id;
					a.name=id;
					a.className=cssClass;
					a.onclick=new Function("oc",onclick);
					a.value=text;
					
					return a;
				}
				
				function createCheckboxNew(id, cssClass, text, prodRow)
				{
					var a = document.createElement("input");
					a.type="checkbox";
					a.id=id;
					a.name=id;
					a.className=cssClass;
					//a.onclick=new Function("oc","applyAllMonoChoices('" + prodRow + "','" + newRowData + "')");
					return a;
				}								
				
				function createCheckbox(id, cssClass, text, prodRow, newRowData)
				{
					var a = document.createElement("input");
					a.type="checkbox";
					a.id=id;
					a.name=id;
					a.className=cssClass;
					a.onclick=new Function("oc","applyAllMonoChoices('" + prodRow + "','" + newRowData + "')");
					return a;
				}				
				
				function createFAQAnchor(id, cssClass, href, onclick, text, image, imageAlt, Height, Width, Top, Left, Adjustment)
				{
					var a = document.createElement('a');
					var d=document.createElement("div");
					d.innerHTML="&nbsp;"
					d.style.height=Height+"px";
					d.style.width=Width+"px";
					d.style.backgroundRepeat="no-repeat";
					d.style.backgroundImage="url(" + image + ")";
					a.id = id;
					a.name = id;
					a.className = cssClass;						
					a.onclick = new Function("oc",onclick);
					a.href = href;
					a.style.height=Height+"px";
					a.style.textDecoration="none";
					a.style.width=Width+"px";
					a.style.position="absolute";
					a.style.top=Top+"px";
					a.style.left=Left+"px";
					AdjustForFirefox(a,Adjustment);
					a.appendChild(d);
	
					return a;
				}				
				
				function createButtonAnchor(id, cssClass, href, onclick, text)
				{

					var a = document.createElement('a');
					a.id = id;
					a.name = id;
					a.innerHTML = text;
					a.className = cssClass;						
					a.onclick = new Function("mv",onclick);
					//a.onmouseout = new Function("mo",mouseout);
					a.href = href;
								
					return a;
				}				
				
				function createAnchor(id, cssClass, href, mouseover, mouseout, text)
				{

					var a = document.createElement('a');
					a.id = id;
					a.name = id;
					a.innerHTML = text;
					a.className = cssClass;						
					a.onmouseover = new Function("mv",mouseover);
					a.onmouseout = new Function("mo",mouseout);
					a.href = href;
								
					return a;
				}
				
				function createCollapseAnchor(id, cssClass, href, mouseover, mouseout, text)
				{

					var a = document.createElement('a');
					a.id = id;
					a.name = id;
					a.innerHTML = text;
					a.className = cssClass;						
					a.onclick = new Function("mv",mouseover);
					a.onmouseout = new Function("mo",mouseout);
					a.href = href;
								
					return a;
				}				

				function createNumericSelect(id, cssClass, minNumber, maxNumber, onChange, selectedIndex)
				{
					var oSelect = document.createElement("select");
					oSelect.id = id;
					oSelect.name = id;
					oSelect.className = cssClass;
					oSelect.options.length = 0;
					oSelect.onchange = new Function("e",onChange);

					for(var i=minNumber;i<=maxNumber;i++)
					{
						oSelect.options[oSelect.options.length] = new Option(i,i);
					}

					oSelect.selectedIndex = selectedIndex;
					return oSelect;
				}

				function setSelectOptions(selectId, optionTexts, optionValues)
				{
					var oSelect = document.getElementById(selectId);

					oSelect.options.length = 0;
					for(var i=0;i<optionTexts.length;i++)
					{
						oSelect.options[oSelect.options.length] = new Option(optionTexts[i],optionValues[i]);
					}
				}

				function createTextbox(id, cssClass, maxlength, initialValue, onfocus, onblur, disabled)
				{
					var oText = document.createElement("input");
					oText.type = "text";
					oText.id = id;
					oText.name = id;
					oText.className = cssClass;
					oText.maxLength = maxlength;
					oText.value = initialValue;
					oText.onkeyup = new Function("ob",onblur);
					oText.onfocus = new Function("of",onfocus);
					oText.disabled = true;

					return oText;
				}
				
				function clearMonoChoices(productRow)
				{
					if(confirm("This will reset all of the monogramming choices you have made.\n\nAre you sure?"))
					{
						for(var i=0;i<parseInt(document.getElementById("monoCounter" + productRow).value);i++)
						{
							document.getElementById("monoType" + productRow + "_" + i).selectedIndex=0;	
							document.getElementById("monoFont" + productRow + "_" + i).selectedIndex=0;
							document.getElementById("monoColor" + productRow + "_" + i).selectedIndex=0;
							document.getElementById("monoInitial" + productRow + "_" + i).value="ABC";										
						}
						document.getElementById('monoApplyAll' + productRow).checked=false;
						var pre = document.getElementById("monoPre"+productRow);
						pre.innerHTML=buildPreviewHTML(productRow);
						
					}
				}
				
				function applyAllMonoChoices(productRow,newRowData)
				{
					if(document.getElementById('monoApplyAll' + productRow).checked)
					{
						if(document.getElementById("monoType" + productRow + "_0").selectedIndex==0 || document.getElementById("monoFont" + productRow + "_0").selectedIndex==0 || document.getElementById("monoColor" + productRow + "_0").selectedIndex==0)
						{
							alert("Please choose your monogramming options in the top row before applying your selections to all items.");
							document.getElementById('monoApplyAll' + productRow).checked=false;
						}
						else if(confirm("This will give all items the monogramming options below.\n\n" + document.getElementById("monoType" + productRow + "_0").options[document.getElementById("monoType" + productRow + "_0").selectedIndex].text + "\n" + document.getElementById("monoFont" + productRow + "_0").options[document.getElementById("monoFont" + productRow + "_0").selectedIndex].text  + "\n" + document.getElementById("monoColor" + productRow + "_0").options[document.getElementById("monoColor" + productRow + "_0").selectedIndex].text + "\nTEXT:" + document.getElementById("monoInitial" + productRow + "_0").value +  "\n\nAre you sure?"))
						{
							for(var i=1;i<parseInt(document.getElementById("monoCounter" + productRow).value);i++)
							{
								document.getElementById("monoType" + productRow + "_" + i).selectedIndex=document.getElementById("monoType" + productRow + "_0").selectedIndex;	
								//alert("343");
								monoTypeSelectedNew(document.getElementById("monoType" + productRow + "_" + i),'monoFont' + productRow + '_' + i  , productRow,i,false,newRowData);
								//alert("345");
								document.getElementById("monoFont" + productRow + "_" + i).selectedIndex=document.getElementById("monoFont" + productRow + "_0").selectedIndex;
								document.getElementById("monoColor" + productRow + "_" + i).selectedIndex=document.getElementById("monoColor" + productRow + "_0").selectedIndex;
								document.getElementById("monoInitial" + productRow + "_" + i).value=document.getElementById("monoInitial" + productRow + "_0").value;	
								
								if(document.getElementById("monoInitial" + productRow + "_0_DOB")!=null)
								{
									document.getElementById("monoInitial" + productRow + "_" + i + "_DOB").value=document.getElementById("monoInitial" + productRow + "_0_DOB").value;
								}							
								
								if(document.getElementById("monoInitial" + productRow + "_0_Wgt")!=null)
								{
									document.getElementById("monoInitial" + productRow + "_" + i + "_Wgt").value=document.getElementById("monoInitial" + productRow + "_0_Wgt").value;
								}		
							}
							
							previewMono(productRow, 0, document.getElementById("monoInitial" + productRow + "_0"));
						}
						else
						{
							document.getElementById('monoApplyAll' + productRow).checked=false;
						}
					}
					
				}
				
				function checkApplyAllStatus(productRow)
				{
						var allSame=true;
						var typeIndex=document.getElementById("monoType" + productRow + "_0").selectedIndex;
						var fontIndex=document.getElementById("monoFont" + productRow + "_0").selectedIndex;
						var colorIndex=document.getElementById("monoColor" + productRow + "_0").selectedIndex;
						var mainValue=document.getElementById("monoInitial" + productRow + "_0").value;								
						
						for(var i=1;i<parseInt(document.getElementById("monoCounter" + productRow).value);i++)
						{
							if(document.getElementById("monoType" + productRow + "_" + i).selectedIndex!=typeIndex || 	document.getElementById("monoFont" + productRow + "_" + i).selectedIndex!=fontIndex || 	document.getElementById("monoColor" + productRow + "_" + i).selectedIndex!=colorIndex || document.getElementById("monoInitial" + productRow + "_" + i).value!=mainValue)
							{
								allSame=false;
								break;
							}									
						}
						
						document.getElementById('monoApplyAll' + productRow).checked=allSame;			
				}

			function editBasketMonoData(productRow, originalHTML, DataString, assetSite,newRowData, monoSelect)
			{
				//alert("522");
				//alert(DataString);
				var Data = DataString.split("|");
	
				var typeIndex = Data.length;
			
				if(typeIndex<4)
				{
					typeIndex=Data[1].length;
				}
				//alert("Data1=");
				//alert(Data[1].length);
				if(document.getElementById("EditMonoAnchor" + productRow).src.indexOf("editBtn.gif",0)>-1)
				{
					//alert("532");
					document.getElementById("EditMonoAnchor" + productRow).src=assetSite + "/monogram/buttons/saveBtn_1.gif";
					document.getElementById("MonoChange" + productRow).value="True";
					document.getElementById("monoContainer" + productRow).innerHTML="";
					addRowS(productRow, newRowData);
					//alert("typeIndex=" + typeIndex);
					//alert("537");
					document.getElementById("EditMonoAnchor" + productRow).onclick=new Function("return checkBasketMonoOptions('" + productRow + "');");

					//alert(Data[1]);
					for(var z=0;z<document.getElementById("monoType" + productRow + "_0").options.length;z++)
					{
						//alert(document.getElementById("monoType" + productRow + "_0").options[z].value);
						if(document.getElementById("monoType" + productRow + "_0").options[z].value==monoSelect)
						{
							typeIndex=z;				
						}
					}
					document.getElementById("monoType" + productRow + "_0").selectedIndex = typeIndex;
					//alert("542");
					monoTypeSelectedNew(document.getElementById("monoType" + productRow + "_0"),"monoFont" + productRow + "_0", productRow, "0", true, newRowData);
					//alert("543");
					for(var i=0;i<document.getElementById("monoFont" + productRow + "_0").options.length;i++)
					{
						if(document.getElementById("monoFont" + productRow + "_0").options[i].value==Data[0])
						{
							document.getElementById("monoFont" + productRow + "_0").selectedIndex=i;
							break;
						}
					}
					//alert("569");
					var ColorName="";
					for(var j=Data.length;j>-1;j--)
					{
						if(Data[j]!=null && Data[j]!="")
						{
							ColorName=Data[j];
							break;
						}
					}
					//alert("579");
					for(var i=0;i<document.getElementById("monoColor" + productRow + "_0").options.length;i++)
					{
						//alert("color=" + ColorName);
						
						if(document.getElementById("monoColor" + productRow + "_0").options[i].value==ColorName)
						{
							document.getElementById("monoColor" + productRow + "_0").selectedIndex=i;
							break;
						}
					}	
					//alert("590");
					document.getElementById("monoInitial" + productRow + "_0").value = Data[1];
					if(document.getElementById("monoInitial" + productRow + "_0_DOB")!=null)
					{
						document.getElementById("monoInitial" + productRow + "_0_DOB").value=Data[2];
					}
					if(document.getElementById("monoInitial" + productRow + "_0_Wgt")!=null)
					{
						document.getElementById("monoInitial" + productRow + "_0_Wgt").value=Data[3];
					}
					previewMono(productRow, "0");
					//alert("592");
				}
				//alert("566");
				return false;
			}
			
			function checkParentMonoOptions()
			{
			
				var vMonoType = "";
				var erMessage = "";
				var errorFound = false;
				var numOfProducts = parseInt(document.getElementById("TotalChildCount").value);
		
				for(var productRow=1;productRow<=numOfProducts;productRow++)
				{

					var numOfRows = parseInt(document.getElementById("monoCounter" + productRow).value);
					var Confirm=document.getElementById("monoConfirm"+productRow);
					
					if(Confirm!=null && !Confirm.checked)
					{
						erMessage = "You must confirm all your monogramming options before proceeding.";
						Confirm.focus();
						alert(erMessage);
						errorFound=true;
					}
					else
					{
						for(var i=0;i<numOfRows;i++)
						{
							
							if(document.getElementById("monoType" + productRow + "_" + i).selectedIndex>0)
							{
								vMonoType = document.getElementById("monoType" + productRow + "_" + i).value.split("-");
								if( document.getElementById("monoFont" + productRow + "_" + i).selectedIndex==0 || document.getElementById("monoColor" + productRow + "_" + i).selectedIndex==0)
								{
									erMessage = "Your monogramming information is incomplete.";
									
									if(document.getElementById("monoFont" + productRow + "_" + i).selectedIndex==0)
									{
										erMessage="You must select a monogramming font.";
										document.getElementById("monoFont" + productRow + "_" + i).focus();					
									}
									else if(document.getElementById("monoColor" + productRow + "_" + i).selectedIndex==0)
									{
										erMessage="You must select a monogramming color.";
										document.getElementById("monoColor" + productRow + "_" + i).focus();					
									}
								}
								else if(document.getElementById("monoInitial" + productRow+ "_" + i).value.length<(parseInt(vMonoType[1])+1))
								{
									if(parseInt(vMonoType[1]) < 3)
									{
										erMessage="Your monogram is only " + document.getElementById("monoInitial" + productRow+ "_" + i).value.length + " characters and your monogramming style requires at least " + (parseInt(vMonoType[1])+1) + " characters.";
										document.getElementById("monoInitial" + productRow+ "_" + i).focus();
									}
									
								}
								
								//alert(document.getElementById("monoType" + productRow + "_" + i).options[document.getElementById("monoType" + productRow + "_" + i).selectedIndex].value);
								if(document.getElementById("monoType" + productRow + "_" + i).options[document.getElementById("monoType" + productRow + "_" + i).selectedIndex].value=="2-04-97-14" || document.getElementById("monoType" + productRow + "_" + i).options[document.getElementById("monoType" + productRow + "_" + i).selectedIndex].value=="0-05-98-14"  || document.getElementById("monoType" + productRow + "_" + i).options[document.getElementById("monoType" + productRow + "_" + i).selectedIndex].value=="0-03-91-09")
								{
									if(document.getElementById("monoInitial" + productRow+ "_" + i).value=="name")
									{
										erMessage="You have not entered a name";
										document.getElementById("monoInitial" + productRow+ "_" + i).focus();
									}
									else if(document.getElementById("monoInitial" + productRow+ "_" + i + "_DOB")!=null && document.getElementById("monoInitial" + productRow+ "_" + i + "_DOB").value=="date")
									{
										erMessage="You have not entered a date of birth";
										document.getElementById("monoInitial" + productRow+ "_" + i + "_DOB").focus();
									}	
									else if(document.getElementById("monoInitial" + productRow+ "_" + i + "_Wgt")!=null && document.getElementById("monoInitial" + productRow+ "_" + i + "_Wgt").value=="weight")
									{
										erMessage="You have not entered a weight";
										document.getElementById("monoInitial" + productRow+ "_" + i + "_Wgt").focus();
									}																				
								}

								
								if(!(erMessage==""))
								{
									alert(erMessage);
									errorFound=true;
									break;	
								}
							}
							else
							{
								//code for no monogramming type selected
								//currently if no type is selected, an unmonogrammed item is added to the basket.
							}
						}
					}
				}
				
				return !errorFound;		
			}
			
			function checkBasketMonoOptions(productRow)
			{	
					var vMonoType = document.getElementById("monoType" + productRow + "_0").value.split("-");
					var erMessage = "";
			
				//alert("695");
				if(document.getElementById("monoType" + productRow + "_0").selectedIndex==0 || document.getElementById("monoFont" + productRow + "_0").selectedIndex==0 || document.getElementById("monoColor" + productRow + "_0").selectedIndex==0)
				{
					//alert("698");
					erMessage = "Your monogramming information is incomplete.";
					
					if(document.getElementById("monoType" + productRow + "_0").selectedIndex==0)
					{
						erMessage="You must select a monogramming style.";
						document.getElementById("monoType" + productRow + "_0").focus();
					} 
					else if(document.getElementById("monoFont" + productRow + "_0").selectedIndex==0)
					{
						erMessage="You must select a monogramming font.";
						document.getElementById("monoFont" + productRow + "_0").focus();					
					}
					else if(document.getElementById("monoColor" + productRow + "_0").selectedIndex==0)
					{
						erMessage="You must select a monogramming color.";
						document.getElementById("monoColor" + productRow + "_0").focus();					
					}
				}
				else if(document.getElementById("monoInitial" + productRow+ "_0").value.length<(parseInt(vMonoType[1])+1))
				{
					//alert("718");
					if(parseInt(vMonoType[1]) < 3)
					{
						erMessage="Your monogram is only " + document.getElementById("monoInitial" + productRow+ "_0").value.length + " characters and your monogramming style requires at least " + (parseInt(vMonoType[1])+1) + " characters.";
						document.getElementById("monoInitial" + productRow+ "_0").focus();
					}
					
				}
				
				if(document.getElementById("monoType" + productRow + "_0").options[document.getElementById("monoType" + productRow + "_0").selectedIndex].value=="2-04-97-14" || document.getElementById("monoType" + productRow + "_0").options[document.getElementById("monoType" + productRow + "_0").selectedIndex].value=="0-05-98-14"  || document.getElementById("monoType" + productRow + "_0").options[document.getElementById("monoType" + productRow + "_0").selectedIndex].value=="0-03-91-09")
				{
					if(document.getElementById("monoInitial" + productRow+ "_0").value=="name")
					{
						erMessage="You have not entered a name";
						document.getElementById("monoInitial" + productRow+ "_0").focus();
					}
					else if(document.getElementById("monoInitial" + productRow+ "_0" + "_DOB")!=null && document.getElementById("monoInitial" + productRow+ "_0" + "_DOB").value=="date")
					{
						erMessage="You have not entered a date of birth";
						document.getElementById("monoInitial" + productRow+ "_0" + "_DOB").focus();
					}	
					else if(document.getElementById("monoInitial" + productRow+ "_0" + "_Wgt")!=null && document.getElementById("monoInitial" + productRow+ "_0" + "_Wgt").value=="weight")
					{
						erMessage="You have not entered a weight";
						document.getElementById("monoInitial" + productRow+ "_0" + "_Wgt").focus();
					}																				
				}


				
				if(!(erMessage==""))
				{
					alert(erMessage);		
					return false;
				}
				else
				{	
					//alert("726");
					callMonoEditSubmit(productRow);
					//alert("728");
				
				}	
			}

			function adjustMonoBasketHeight(productRow, newHeight)
			{
				var TD = document.getElementById("monoTd" + productRow);
				TD.style.height=newHeight+"px";
			}

			function adjustMonoContainerHeight(productRow)
			{

				//alert("536");
				var Container = document.getElementById("monoContainer" + productRow);

				var Wrapper =  document.getElementById("monoWrapper" + productRow);
				
				var TD = document.getElementById("monoTd" + productRow);
				//alert("542");
				var QtyDD = document.getElementById("qty_" + productRow);

				var newQty = parseInt(QtyDD.options[QtyDD.selectedIndex].value);

				var workingHeight=(newQty*30) + 50;
				//alert("548");
				var actualHeight=200;

				for(ctr=0;ctr<newQty;ctr++)
				{
					if(document.getElementById("monoType" + productRow + "_" + ctr) != null)
					{
						if(document.getElementById("monoType" + productRow + "_" + ctr).options[document.getElementById("monoType" + productRow + "_" + ctr).selectedIndex].value=="2-04-97-04")
						{
							workingHeight+=30;
						}
					
						if(document.getElementById("monoType" + productRow + "_" + ctr).options[document.getElementById("monoType" + productRow + "_" + ctr).selectedIndex].value=="0-05-98-14")
						{
							workingHeight+=60;
						}		
					}		
				}
				if(workingHeight>actualHeight)
				{
					
					actualHeight=workingHeight;
				}
	
				if(Container!=null)
				{
					//alert("Container");
					Container.style.height=actualHeight+"px";
				}
				
				if(Wrapper!=null)
				{
					//alert("Wrapper");
					//Wrapper.style.height=actualHeight+"px";
				}
				
				if(TD!=null)
				{
					//alert("TD");
					TD.style.height=actualHeight + "px";
				}
				
			}

			function addNewMonoRow(productRow, assetSite, newRowData)
			{
				//alert("833");
				var totalQty = 0;
				var c2DivLength=0;
				var c2 = document.getElementById("monoContainer" + productRow);
				var c = document.getElementById("monoRowsOuter" + productRow);
				var mc = document.getElementById("monoCounter" + productRow);
				var newQty = parseInt(document.form1.elements["qty_" + productRow].options[document.form1.elements["qty_" + productRow].selectedIndex].value);
		
				for(ctr=0;ctr<c2.childNodes.length;ctr++)
				{
					if(c2.childNodes[ctr].nodeName=="DIV")
					{
						c2DivLength+=1;
					}
				}
				//alert("848");
				if(c2DivLength>1)
				{
					//alert("851");
					totalQty = c.childNodes.length;
					if(parseInt(totalQty) > parseInt(document.form1.elements["qty_" + productRow].options[document.form1.elements["qty_" + productRow].selectedIndex].value))
					{
						if(newQty > 0)
						{
							while(mc.value>newQty)
							{
								removeRow(productRow, mc.value);
								mc.value-=1;
								//c2.style.height=getMonoContainerHeight(productRow);
							}
						}
						else
						{	
							
							document.getElementById("monoTd" + productRow).style.height = 0;
							document.getElementById("monoTd" + productRow).style.backgroundColor="#FFFFFF";
							var c = document.getElementById("monoContainer" + productRow);
							while(c.childNodes.length >= 1)
							{
								c.removeChild(c.firstChild);
							}
							c.style.display="none";
							document.getElementById("monoCounter1").value=0;	
							document.form1.elements["chk_monogramming_" + productRow].checked = false;		
							var pRow=document.getElementById("monoParentRow"+productRow);		
							for(var i=0;i<pRow.childNodes.length;i++)
							{
								if(pRow.childNodes[i].nodeType==1)
								{
									pRow.childNodes[i].style.backgroundColor="#FFFFFF";
								}
							}	
						}			

					}
					else
					{
						//alert("890");
						for(var i=parseInt(mc.value) ;i<parseInt(document.form1.elements["qty_" + productRow].options[document.form1.elements["qty_" + productRow].selectedIndex].value);i++)
						{
							addRow(productRow,i, assetSite, newRowData);
							
						}
						applyAllMonoChoices(productRow,newRowData);
						c2.style.display="block";
						document.getElementById("monoTd" + productRow).style.backgroundColor="#F1EDE4";
					}
				}
				else
				{
					//alert("902");
					addFAQRow(productRow, assetSite);
					//alert("904");
					addPreview(productRow, newRowData);
					//alert("906");
					var numToMake = document.form1.elements["qty_" + productRow].options[document.form1.elements["qty_" + productRow].selectedIndex].value;
					//alert("908");
					//alert("numToMake = " + numToMake);
					for (var i=1;i<=numToMake;i++)
					{
						//alert("912");
						addRow(productRow,i, assetSite, newRowData);
						//alert("914");
					}
					//alert("916");
					c2.style.display="block";
					//alert("918");
					document.getElementById("monoTd" + productRow).style.backgroundColor="#F1EDE4";
					//alert("920");
				}

				if(newQty==1)
				{
					document.getElementById("monoApplyAllText"+productRow).style.visibility="hidden";
					document.getElementById('monoApplyAll' + productRow).style.visibility="hidden";
				}
				else
				{
					document.getElementById("monoApplyAllText"+productRow).style.visibility="visible";
					document.getElementById('monoApplyAll' + productRow).style.visibility="visible";				
				}
				
				adjustMonoContainerHeight(productRow);
			}
			
			function addPreview(productRow, newRowData)
			{
				var pre = document.createElement("div");
				pre.className="monoPre";
				pre.id="monoPre"+productRow;
				pre.innerHTML=buildPreviewHTML(productRow);
				document.getElementById("monoContainer"+productRow).appendChild(pre);
				document.getElementById("monoContainer"+productRow).appendChild(createButtonAnchor('monoClear' + productRow,'ClearMonoSelections','javascript:void();','clearMonoChoices(' + productRow + ');','Clear Choices'));
				//alert("691");
				document.getElementById("monoContainer"+productRow).appendChild(createCheckbox('monoApplyAll' + productRow,'MonoApplyAll','Check this to apply the same monogramming to all items.',productRow,newRowData));
				document.getElementById("monoContainer"+productRow).appendChild(createCheckboxNew('monoConfirm' + productRow,'MonoConfirm','Check this to apply the same monogramming to all items.',productRow));
				
				var pre2 = document.createElement("div");
				pre2.className="monoApplyAllText";
				pre2.id="monoApplyAllText"+productRow;	
				pre2.innerHTML='Check this to apply the same monogramming to all items.';
				document.getElementById("monoContainer"+productRow).appendChild(pre2);	
				
				var pre3 = document.createElement("div");
				pre3.className="monoPriceText";
				pre3.id="monoPriceText"+productRow;	
				pre3.innerHTML=document.getElementById("monoPrice"+productRow).value + "<br/>Monogram items are non-returnable due to their customization" ;
				document.getElementById("monoContainer"+productRow).appendChild(pre3);		
				
				var pre4 = document.createElement("div");
				pre4.className="MonoConfirmText";
				pre4.id="monoConfirmText"+productRow;	
				pre4.innerHTML='Check this to confirm your monogramming selections.';
				document.getElementById("monoContainer"+productRow).appendChild(pre4);										
			}
			
			function addFAQRow2(productRow, assetSite)
			{
				//alert("ddFAQRow2");
				var tbl = document.createElement("table");
				tbl.id="FAQTable" + productRow;
				tbl.className='FAQTable';
				
				var row=tbl.insertRow(0);
				var styleCell=row.insertCell(0);
				var fontCell=row.insertCell(1);
				var colorCell=row.insertCell(2);

				document.getElementById("monoContainer"+productRow).appendChild(enterImage);
				styleCell.appendChild(createFAQAnchor('monoFAQStyle' + productRow,'FAQCellStyle','i_monostyles_new.asp','return hs.htmlExpand(this, { objectType: "iframe", width: 400, height: 200} )','Styles',assetSite + '/monogram/buttons/viewstylesBtn.gif','View Styles',18,83,3));
				//FAQStyleCell.className='FAQCell';
				fontCell.appendChild(createFAQAnchor('monoFAQFont' + productRow,'FAQCellFont','i_monofonts_new.asp','return hs.htmlExpand(this, { objectType: "iframe", width: 500, height: 500} )','Fonts',assetSite + '/monogram/buttons/viewfontsBtn.gif','View Fonts',18,83,4));
				//FAQFontCell.className='FAQCell';
				colorCell.appendChild(createFAQAnchor('monoFAQColor' + productRow,'FAQCellColor','i_monocolors_new.asp','return hs.htmlExpand(this, { objectType: "iframe", width: 420, height: 400} )','Colors',assetSite + '/monogram/buttons/viewcolorsBtn.gif','View Styles',18,83,5));
				//FAQColorCell.className='FAQCell';
				
				document.getElementById("monoContainer" + productRow).appendChild(tbl);
				var cxButton = createCollapseAnchor("monoCX" + productRow,"ColExp","javascript:void();","collapseRow('" + productRow + "');","","[hide]");
				document.getElementById("monoContainer" + productRow).appendChild(cxButton);
			}
			
			function addFAQRow(productRow, assetSite)
			{
			
				var FAQTableMain = document.createElement("table");
				FAQTableMain.id="FAQTable" + productRow;
				var FAQTable = document.createElement("tbody");
							FAQTableMain.appendChild(FAQTable);
				FAQTableMain.className='FAQTable';
				var FAQRow = document.createElement("tr");
				var FAQStyleCell = document.createElement("td");
				var FAQFontCell = document.createElement("td");
				var FAQColorCell = document.createElement("td");
				FAQStyleCell.appendChild(createFAQAnchor('monoFAQStyle' + productRow,'FAQCellStyle','i_monostyles_new.asp','return hs.htmlExpand(this, { objectType: "iframe", width: 400, height: 400} )','Styles',assetSite + '/monogram/buttons/viewstylesBtn.gif','View Styles',18,83,15,5));
				//FAQStyleCell.className='FAQCell';
				FAQFontCell.appendChild(createFAQAnchor('monoFAQFont' + productRow,'FAQCellFont','i_monofonts_new.asp','return hs.htmlExpand(this, { objectType: "iframe", width: 500, height: 500} )','Fonts',assetSite + '/monogram/buttons/viewfontsBtn.gif','View Fonts',18,83,15,89));
				//FAQFontCell.className='FAQCell';
				FAQColorCell.appendChild(createFAQAnchor('monoFAQColor' + productRow,'FAQCellColor','i_monocolors_new.asp','return hs.htmlExpand(this, { objectType: "iframe", width: 420, height: 400} )','Colors',assetSite + '/monogram/buttons/viewcolorsBtn.gif','View Styles',18,83,15,173));
				//FAQColorCell.className='FAQCell';
				FAQRow.appendChild(FAQStyleCell);
				FAQRow.appendChild(FAQFontCell);
				FAQRow.appendChild(FAQColorCell);
				FAQTable.appendChild(FAQRow);
				FAQTableMain.style.paddingBottom="15px";
				document.getElementById("monoContainer" + productRow).appendChild(FAQTableMain);
				var cxButton = createCollapseAnchor("monoCX" + productRow,"ColExp","javascript:void();","collapseRow('" + productRow + "');","","[hide]");
				document.getElementById("monoContainer" + productRow).appendChild(cxButton);
								var enterImage=new Image();
				enterImage.src=assetSite + '/monogram/buttons/entermonoBtn.gif';
				enterImage.alt='Enter Monogramming Text Here';
				enterImage.className="EnterMonoImage";
				if(BrowserDetect.browser=="Firefox")
				{
					enterImage.className="EnterMonoImageFF";
				}
				document.getElementById("monoContainer" + productRow).appendChild(enterImage);
			}
			
			function adjustQtyDropDown(oSelect)
			{
				var minNumber = 1;
				var maxNumber = parseInt(oSelect.options[oSelect.selectedIndex].value);		
				oSelect.options.length = 0;

				for(var i=minNumber;i<=maxNumber;i++)
				{
					oSelect.options[oSelect.options.length] = new Option(i,i);
				}

				oSelect.selectedIndex = (maxNumber-1);
			}
			
			function expandRow(productRow, origHeight1, origHeight2)
			{
				var mc = document.getElementById("monoContainer" + productRow);
				var pRow=document.getElementById("monoParentRow"+productRow);
				var fT = document.getElementById("FAQTable" + productRow);
				var mp=document.getElementById("monoPre" + productRow);
				
				for(var i=0;i<mc.childNodes.length;i++)
				{
					if(mc.childNodes[i].className=="ColExp")
					{
						mc.childNodes[i].innerHTML="[hide]";
						mc.childNodes[i].onclick = new Function("er","collapseRow('" + productRow + "');");
					}
				}
				
				fT.style.visibility="visible";
				mp.style.visibility="visible";
				mc.style.height = origHeight1;
				mc.style.backgroundColor="#F1EDE4";
				mc.style.overflow="visible";
				mc.style.paddingTop="15px";
				mc.style.marginBottom="15px";
				//below does nothing
				pRow.style.backgroundColor="#F1EDE4";
				document.getElementById("monoTd" + productRow).style.height =origHeight2;
				//tried
				document.getElementById("monoTd" + productRow).style.backgroundColor="#F1EDE4";
				document.getElementById('monoClear' + productRow).innerHTML="Clear Choices";
				for(var i=0;i<pRow.childNodes.length;i++)
				{
					if(pRow.childNodes[i].nodeType==1)
					{
						//this element is problem
						pRow.childNodes[i].style.backgroundColor="#F1EDE4";
					}
				}
			}
			
			function collapseRow(productRow)
			{
				var originalHeight;
				var originalHeight2;
				var mc = document.getElementById("monoContainer" + productRow);
				var pRow=document.getElementById("monoParentRow"+productRow);
				var fT = document.getElementById("FAQTable" + productRow);
				var mp=document.getElementById("monoPre" + productRow);
				originalHeight = mc.style.height;
				originalHeight2=document.getElementById("monoTd" + productRow).style.height;

				
				for(var i=0;i<mc.childNodes.length;i++)
				{
					if(mc.childNodes[i].className=="ColExp")
					{
						mc.childNodes[i].innerHTML="[show]";
						mc.childNodes[i].onclick = new Function("er","expandRow('" + productRow + "','" + originalHeight + "','" + originalHeight2 + "');");
					}
				}
				
				fT.style.visibility="hidden";
				mp.style.visibility="hidden";
				mc.style.height = "20px";
				mc.style.backgroundColor="#FFFFFF";
				mc.style.overflow="hidden";
				mc.style.paddingTop="0px";
				mc.style.marginBottom="0px";
				pRow.style.backgroundColor="#FFFFFF";
				document.getElementById("monoTd" + productRow).style.height = "20px";
				document.getElementById("monoTd" + productRow).style.backgroundColor="#FFFFFF";
				document.getElementById('monoClear' + productRow).innerHTML="";
				for(var i=0;i<pRow.childNodes.length;i++)
				{
					if(pRow.childNodes[i].nodeType==1)
					{
						pRow.childNodes[i].style.backgroundColor="#FFFFFF";
					}
				}
			}
			
			function addRowS(productRow, newRowData)
			{	
				var Styles = getStyleData(newRowData);
				var StyleValues=getStyleValues(Styles);
				var newdiv = document.createElement('span');
				var currentCount = document.getElementById("monoCounter" + productRow).value;
				newdiv.id = "monoDiv" + productRow + "_" + currentCount;
				newdiv.className="RegMonoRow";
				document.getElementById("monoCounter" + productRow).value=parseInt(document.getElementById("monoCounter" + productRow).value)+1;		
				newdiv.appendChild(createSelect("monoType" + productRow + "_" + currentCount,"monoDDL",Styles,StyleValues,'monoTypeSelectedNew(this,"monoFont' + productRow + '_' + currentCount + '",' + productRow + ',' + currentCount + ',true,"' + newRowData + '");'));	
				newdiv.appendChild(createSelect("monoFont" + productRow + "_" + currentCount,"monoDDL",['Select Font'],[' '],'previewMono(' + productRow + ', ' + currentCount + ');'));
				newdiv.appendChild(createSelect("monoColor" + productRow + "_" + currentCount,"monoDDL",['Select Color','Amethyst','Baby Blue','Baby Pink','Black','Brown','Dark Blue','Emerald','Hot Pink','Hunter','Ivory','Khaki','Lime Green','Medium Blue','Medium Pink','Navy','Orange','Purple','Red','Sage','Soft Gray','Sunset Gold','White','Wine','Yellow'],['default','61193  Amethyst','61165  Baby Blue','61408  Baby Pink','61352  Black','61473  Brown','61460  Dark Blue','61051  Emerald','61511  Hot Pink','61449  Hunter','61071  Ivory','61470  Khaki','61510  Lime Green','61028  Medium Blue','61410  Medium Pink','61200  Navy','61457  Orange','61122  Purple','61147  Red','61508  Sage','61465  Soft Gray','61083  Sunset Gold','61001  White','61405  Wine','61187  Yellow'],'previewMono(' + productRow + ', ' + currentCount + ');'));
				newdiv.appendChild(createTextbox("monoInitial" + productRow + "_" + currentCount,"monoTxt",50,"ABC","","previewMono(" + productRow + ", " + currentCount + ")"));
				document.getElementById("monoContainer" + productRow).appendChild(newdiv);
			}		
			
			function getStyleData(newRowData)
			{
				var InitialSplit = newRowData.split("|");
				var StyleList = InitialSplit[0].split("_");

				StyleList[0] = "No Monogram";
				
				return StyleList;
			
			}	
			
			function getStyleValues(StyleList)
			{
				var StyleValues=new Array();
				
				for(ctr=0;ctr<StyleList.length;ctr++)
				{
					switch(StyleList[ctr])
					{
						case "No Monogram":
						
							StyleValues[ctr]="default";
							break;
						
						case "1 Initial":
						
							StyleValues[ctr]="0-00-88-09";
							break;

						case "2 Initials":
						
							StyleValues[ctr]="0-01-89-09";
							break;	

						case "3 Initials":
						
							StyleValues[ctr]="0-02-90-09";
							break;		
						
						case "Name or Word":
						
							StyleValues[ctr]="0-03-91-09";
							break;
							
						case "Name & DOB":
						
							StyleValues[ctr]="2-04-97-14";
							break;
							
						case "Name, DOB, & Wt.":
						
							StyleValues[ctr]="0-05-98-14";
							break;
					}
				}
				
				return StyleValues;
			}
			
			function getFontData(newRowData,productRow)
			{
			
				var InitialSplit = newRowData.split("|");
		
				var FontLists=InitialSplit[1].split("*");
				//alert(InitialSplit[2]);
				TBSizes=InitialSplit[2].split("_");

				var HolderList=FontLists[productRow].split("_");
				var ActualList=new Array();
				
				ActualList[0]="Select Style";
				for(ctr=0;ctr<HolderList.length;ctr++)
				{
					if(!(HolderList[ctr]==""))
					{
						ActualList[ctr+1]=HolderList[ctr];
					}
				}
			
				return ActualList;
						
			}

			function addRow(productRow, qty, assetSite, newRowData)
			{
				//alert("1217");
				var Styles = getStyleData(newRowData);
				var StyleValues=getStyleValues(Styles);
				var newdiv = document.createElement('div');
				var currentCount = document.getElementById("monoCounter" + productRow).value;
				newdiv.id = "monoDiv" + productRow + "_" + currentCount;
				newdiv.className="RegMonoRow";
				newdiv.setAttribute("class","RegMonoRow");
				newdiv.style.paddingBottom="3px";
				newdiv.style.position="relative";
				//alert("1227");
				document.getElementById("monoCounter" + productRow).value=parseInt(document.getElementById("monoCounter" + productRow).value)+1;	
				newdiv.appendChild(createSelect("monoType" + productRow + "_" + currentCount,"monoDDL",Styles,StyleValues,'monoTypeSelectedNew(this,"monoFont' + productRow + '_' + currentCount + '",' + productRow + ',' + currentCount + ',false,"' + newRowData + '");checkApplyAllStatus(' + productRow + ');'));	
				newdiv.appendChild(createSelect("monoFont" + productRow + "_" + currentCount,"monoDDL",['Select Style'],[' '],'previewMono(' + productRow + ', ' + currentCount + ');checkApplyAllStatus(' + productRow + ')'));
				newdiv.appendChild(createSelect("monoColor" + productRow + "_" + currentCount,"monoDDL",['Select Color','Amethyst','Baby Blue','Baby Pink','Black','Brown','Dark Blue','Emerald','Hot Pink','Hunter','Ivory','Khaki','Lime Green','Medium Blue','Medium Pink','Navy','Orange','Purple','Red','Sage','Soft Gray','Sunset Gold','White','Wine','Yellow'],['default','61193  Amethyst','61165  Baby Blue','61408  Baby Pink','61352  Black','61473  Brown','61460  Dark Blue','61051  Emerald','61511  Hot Pink','61449  Hunter','61071  Ivory','61470  Khaki','61510  Lime Green','61028  Medium Blue','61410  Medium Pink','61200  Navy','61457  Orange','61122  Purple','61147  Red','61508  Sage','61465  Soft Gray','61083  Sunset Gold','61001  White','61405  Wine','61187  Yellow'],'previewMono(' + productRow + ', ' + currentCount + ');checkApplyAllStatus(' + productRow + ')'));
				newdiv.appendChild(createTextbox("monoInitial" + productRow + "_" + currentCount,"monoTxt",50,"ABC","","previewMono(" + productRow + ", " + currentCount + ", this);checkApplyAllStatus(" + productRow + ")"));
				newdiv.appendChild(createFAQAnchor('monoPreview' + productRow + "_" + currentCount,'FAQCellPreview','javascript:void();','previewMono(' + productRow + ', ' + currentCount + ');','Preview',assetSite + '/monogram/buttons/previewBtn.gif','Preview',18,65,2,340,2));
				//newdiv.appendChild(createNumericSelect("monoQty" + productRow + "_" + currentCount,"monoDDL",1,qty,"addNewMonoRow(" + productRow + ");adjustQtyDropDown(this);",qty - 1))
				//newdiv.appendChild(createAnchor("monoCoEx" + productRow + "_" + currentCount,"monoAsmall","javascript:removeRow(" + productRow + "," + currentCount + ");","","","[remove]"));
				//alert("1236");
				var x=document.getElementById("monoRowsOuter" + productRow);
				//alert(x==null);
				document.getElementById("monoRowsOuter" + productRow).appendChild(newdiv);
				//alert("1238");
				var pRow=document.getElementById("monoParentRow"+productRow);
				//alert("1239");
				for(var i=0;i<pRow.childNodes.length;i++)
				{
					if(pRow.childNodes[i].nodeType==1)
					{
						pRow.childNodes[i].style.backgroundColor="#F1EDE4";
					}
				}
				//alert("1247");
			}
			
			function removeRow(productRow, count)
			{
				var c = document.getElementById("monoRowsOuter" + productRow);

				c.removeChild(c.lastChild);
			}
			
			function checkAttributeValue(attrNum, productRow)
			{
				var IsGood=true;
				//alert("1273");
				if(document.getElementById("ATTR"+attrNum+ "_VIS"+productRow)!=null)
				{ 
					//alert(document.getElementById("ATTR"+attrNum+ "_VIS"+productRow).value);
					if(document.getElementById("ATTR"+attrNum+ "_VIS"+productRow).value=="YES")
					{
						
						IsGood=false;
						var attrToCheck=document.getElementById("attr_value_"+attrNum+"_"+productRow);
						if(attrToCheck==null)
						{
							attrToCheck=document.getElementById("comp_item_"+attrNum+"_"+productRow)
						}
						if(attrToCheck.selectedIndex>0)
						{
							IsGood=true;
						}
					}
				}
				//alert("1284");
				return IsGood;
				
			}
			
			function checkAttributeValues(productRow)
			{
			
				var AttsToCheck=document.getElementById("MonoAttsToCheck"+productRow).value;
				var AttNames=AttsToCheck.split("|");
				var IsGood=true;

				for(var i=0;i<AttNames.length;i++)
				{
					if(!IsGood)
					{
						break;
					}
					if(AttNames[i]!="")
					{
						if(document.getElementById(AttNames[i]).selectedIndex==0)
						{
							IsGood=false;
						}
					}				
				}

				return IsGood;
			}
			
			function clearAttributeValue(attrNum, productRow)
			{
				if(document.getElementById("ATTR"+attrNum+ "_VIS"+productRow).value=="YES")
				{
					document.getElementById("attr_value_"+attrNum+"_"+productRow).selectedIndex=0;
				}
							
			}
			
			function clearAllMonoSelections(productRow, control, assetSite, newRowData)
			{
				document.form1.elements["qty_" + productRow].selectedIndex=0;
				clearAttributeValue(1,productRow);
				clearAttributeValue(2,productRow);
				clearAttributeValue(3,productRow);
				document.form1.elements["chk_monogramming_" + productRow].checked=false;
				var mc = document.getElementById("monoCounter" + productRow);
				mc.value=0;
			}
			
			function checkForMonoRowCreation(productRow, control, assetSite, newRowData)
			{
				//alert(checkAttributeValue(1,productRow));
				//alert(checkAttributeValue(2,productRow));
				//alert(checkAttributeValue(3,productRow));
				//alert(document.form1.elements["qty_" + productRow].selectedIndex > 0);
				//alert(document.form1.elements["chk_monogramming_" + productRow].checked);
				var color = document.getElementById(control);
				var returnValue = true;
				//alert(checkAttributeValues(productRow));
				if (document.form1.elements["qty_" + productRow].selectedIndex > 0 && checkAttributeValues(productRow) && document.form1.elements["chk_monogramming_" + productRow].checked)
				{
					//alert("1269");
					addNewMonoRow(productRow, assetSite, newRowData);
				}
				else
				{	
					//alert("1274");
					var askConfirm = 0;
					var q = document.form1.elements["qty_" + productRow];
					var m = document.form1.elements["chk_monogramming_" + productRow];
					var mc = document.getElementById("monoCounter" + productRow);
					
					if(parseInt(mc.value) > 0)
					{
						if(q.selectedIndex == 0 || color.selectedIndex == 0 || !m.checked)
						{
							askConfirm=1;
						}
					}
					//alert("1287");
					if(askConfirm == 1)
					{
						if (confirm("Any monogramming information selected will be lost.\nAre you sure?"))
						{
							document.getElementById("monoTd" + productRow).style.height = 0;
							document.getElementById("monoTd" + productRow).style.backgroundColor="#FFFFFF";
							var c = document.getElementById("monoContainer" + productRow);
							while(c.childNodes.length >= 1)
							{
								c.removeChild(c.firstChild);
							}
							c.style.display="none";
							
							var Outer=document.createElement("div");
							Outer.id="monoRowsOuter" + productRow;
							Outer.className="monoRowsOuter";
							
							c.appendChild(Outer);
							
							document.getElementById("monoCounter1").value=0;
							var pRow=document.getElementById("monoParentRow"+productRow);

							for(var i=0;i<pRow.childNodes.length;i++)
							{
								if(pRow.childNodes[i].nodeType==1)
								{
									pRow.childNodes[i].style.backgroundColor="#FFFFFF";
								}
							}
						}
						else
						{
							returnValue = false;
						}
					}
				}
				
				return returnValue;
			}
			
			function clearMonogramText(typeDDL, productRow, currentCount, basket)
			{
				/*
				ADJUST FOR MULTIPLE LINE OPTIONS
				*/
				var basketHeight=25;
				//alert("1055");
				var index = typeDDL.selectedIndex;
				var monoTxt = document.getElementById("monoInitial" + productRow + "_" + currentCount);
				var monoDiv= document.getElementById("monoDiv" + productRow + "_" + currentCount);
				//alert("1059");
				monoTxt.disabled = false;		
				var DOBToRemove = document.getElementById("monoInitial" + productRow + "_" + currentCount + "_DOB");
				var WgtToRemove = document.getElementById("monoInitial" + productRow + "_" + currentCount + "_Wgt");
				//alert("1061");
				var basketAdjust=0;
				/*
				REMOVE EXTRA TEXTBOXES IF THEY EXIST
				*/				
				if(DOBToRemove != null)
				{
					monoDiv.removeChild(DOBToRemove);
				}
				
				if(WgtToRemove != null)
				{
					monoDiv.removeChild(WgtToRemove);
				}
				//alert(index);
				switch(typeDDL.options[index].value)
				{
					case '0-00-88-09':
						//alert("1079");
						monoDiv.style.height="25px";
						monoTxt.maxLength = 1;
						//if(!(basket))
							monoTxt.value="A";
						break;

					case '0-01-89-09':
						monoDiv.style.height="25px";					
						monoTxt.maxLength = 2;
						//if(!(basket))
							monoTxt.value="AB";						
						break;

					case '0-02-90-09':
						monoDiv.style.height="25px";					
						monoTxt.maxLength = 3;
						//if(!(basket))
							monoTxt.value="ABC";						
						break;

					case '0-03-91-09':
						monoDiv.style.height="25px";				
						monoTxt.maxLength = parseInt(TBSizes[index+4]);
						if(!(basket))
							monoTxt.value="name";						
						break;
						
					case '2-04-97-14':
						
						monoDiv.style.height="50px";
						monoTxt.maxLength = parseInt(TBSizes[index+4]);
						basketHeight=75;
						var DOBTextBox = createTextbox("monoInitial" + productRow + "_" + currentCount + "_DOB","monoTxtDOB", parseInt(TBSizes[index+5]),"date","","previewMono(" + productRow + ", " + currentCount + ", this);checkApplyAllStatus(" + productRow + ")");
						DOBTextBox.style.top="16px";
						DOBTextBox.style.left="284px";
						DOBTextBox.disabled=false;
						AdjustForFirefox(DOBTextBox,0);
						monoDiv.appendChild(DOBTextBox);
						if(!(basket))
							monoTxt.value="name";								
						break;
						
					case '0-05-98-14':
						monoDiv.style.height="75px";	
						basketHeight=100;
						monoTxt.maxLength = parseInt(TBSizes[index+5]);
						var DOBTextBox = createTextbox("monoInitial" + productRow + "_" + currentCount + "_DOB","monoTxtDOB", parseInt(TBSizes[index+6]),"date","","previewMono(" + productRow + ", " + currentCount + ", this);checkApplyAllStatus(" + productRow + ")");
						DOBTextBox.style.top="16px";
						DOBTextBox.style.left="284px";
						DOBTextBox.disabled=false;
						AdjustForFirefox(DOBTextBox,0);
						monoDiv.appendChild(DOBTextBox);
						var WgtTextBox = createTextbox("monoInitial" + productRow + "_" + currentCount + "_Wgt","monoTxtWgt", parseInt(TBSizes[index+7]),"weight","","previewMono(" + productRow + ", " + currentCount + ", this);checkApplyAllStatus(" + productRow + ")");
						WgtTextBox.style.top="18px";
						WgtTextBox.style.left="284px";
						WgtTextBox.disabled=false;
						AdjustForFirefox(WgtTextBox,1);
						monoDiv.appendChild(WgtTextBox);	
						if(!(basket))
							monoTxt.value="name";																								
						break;
					
					case '-1':
						monoTxt.maxLength = 0;
						monoTxt.readOnly = true;
						break;

				}
				//alert("1144")
				if(!(basket))
				{
					//alert("1147");
					previewMono(productRow, currentCount);
					//alert("1149");
					adjustMonoContainerHeight(productRow);
					//alert("1150");
				}
				else
				{
					//alert("1154");
					adjustMonoBasketHeight(productRow, basketHeight);
				}
				

			}
			
			function AdjustForFirefox(obj,adjustment)
			{
				//the adjustments are pre-defined here
				
				switch(adjustment)
				{
					case 0: //DOB Textbox
					
						if(BrowserDetect.browser=="Firefox")
						{
							if(BrowserDetect.version==3)
							{
								obj.style.left="287px";
							}
							
							if(BrowserDetect.version==2)
							{
								obj.style.left="296px";
							}							
						}
						break;
						
					case 1: //Wgt Textbox
					
						if(BrowserDetect.browser=="Firefox")
						{
							if(BrowserDetect.version==3)
							{
								obj.style.left="287px";
							}
							
							if(BrowserDetect.version==2)
							{
								obj.style.left="296px";
							}							
						}
					
						break;
						
					case 2: //Preview Button
					
						if(BrowserDetect.browser=="Firefox")
						{
							if(BrowserDetect.version==3)
							{
								obj.style.top="0px";
								obj.style.left="345px";
							}
							
							if(BrowserDetect.version==2)
							{
								obj.style.top="0px";
								obj.style.left="350px";
							}							
						}
					
						break;	
						
					case 2: //View Styles Button
					
						if(BrowserDetect.browser=="Firefox")
						{
							if(BrowserDetect.version==3)
							{
								obj.style.top="0px";
								obj.style.left="0px";
							}
							
							if(BrowserDetect.version==2)
							{
								obj.style.top="0px";
								obj.style.left="0px";
							}							
						}
					
						break;										
				}
			}

			function monoTypeSelectedNew(typeDDL, fontName, productRow, currentCount, basket, optionList)
			{
				//alert(optionList);
				var FontDisplay = new Array();
				//alert("1158");
				var FontList = new Array();
				FontDisplay[0]='Select Style';
				FontList[0]='default';
				//alert("1162");
				if(typeDDL.selectedIndex>0)
				{
					var FullList=getFontData(optionList,typeDDL.selectedIndex-1);
					
					for(ctr=1;ctr<FullList.length;ctr++)
					{
						FontDisplay[ctr]=FullList[ctr].split("  ")[1];
						FontList[ctr]=FullList[ctr];
					}
				}
				//alert("1173");
				setSelectOptions(fontName,FontDisplay,FontList);
				//alert("1175");
				clearMonogramText(typeDDL, productRow, currentCount,basket);
				//alert("1177");	
				
			}

			function monoTypeSelected(typeDDL, fontName, productRow, currentCount, basket)
			{
			
				var index = typeDDL.selectedIndex;
		
				switch(typeDDL.options[index].value)
				{
					case '-1':
						setSelectOptions(fontName,['Select Style'],[' ']);
						clearMonogramText(typeDDL, productRow, currentCount,basket);
						break;

					case '0-00-88-09':
						setSelectOptions(fontName,['Select Style','Block','Classic','Juliet','Sketch','Kids','Collegiate','Traditional','Diamond','Signet'],['default','02  Block','04  Classic','07  Juliet','08  Sketch','15  Kids','13  Collegiate','14  Traditional','03  Diamond','05  Signet']);
						clearMonogramText(typeDDL, productRow, currentCount,basket);
						break;

					case '0-01-89-09':
						setSelectOptions(fontName,['Select Style','Block','Classic','Juliet','Sketch','Kids','Collegiate','Traditional','Diamond','Signet'],['default','02  Block','04  Classic','07  Juliet','08  Sketch','15  Kids','13  Collegiate','14  Traditional','03  Diamond','05  Signet']);
						clearMonogramText(typeDDL, productRow, currentCount,basket);
						break;

					case '0-02-90-09':
						setSelectOptions(fontName,['Select Style','Block','Classic','Juliet','Sketch','Kids','Collegiate','Traditional','Diamond','Signet','Modern'],['default','02  Block','04  Classic','07  Juliet','08  Sketch','15  Kids','13  Collegiate','14  Traditional','03  Diamond','05  Signet','06  Modern']);
						clearMonogramText(typeDDL, productRow, currentCount,basket);
						break;

					case '0-03-91-09':
						setSelectOptions(fontName,['Select Style','Block','Classic','Juliet','Sketch','Kids','Traditional'],['default','02  Block','04  Classic','07  Juliet','08  Sketch','15  Kids','14  Traditional']);
						clearMonogramText(typeDDL, productRow, currentCount,basket);
						break;

					default:
						setSelectOptions(fontName,['Select Style'],[' ']);
						clearMonogramText(typeDDL, productRow, currentCount,basket);
						break;
				}
			}
			
			/*function checkForIllegalCharacterEntry(productRow, currentCount)
			{
					var FOO = document.getElementById("monoInitial" + productRow + "_" + currentCount).value;
					var Style = "monoFont" + productRow + "_" + currentCount;
					var oStyle = document.getElementById(Style);
					var vStyle = oStyle.value;

					if(getInnerHTML(FOO.charAt(FOO.length-1), "", vStyle, '<%=assetSite%>')!="<img src='<%=assetSite%>/monogram/pix.gif' width='9'>")
					{
						if(vStyle=="14  Traditional")
						{
							var cTrad="";
							for(var i=0;i<FOO.length;i++)
							{
								if(i==0)
								{
									cTrad=cTrad+FOO.charAt(i).toUpperCase();
								}
								else
								{
									cTrad=cTrad+FOO.charAt(i).toLowerCase();
								}	
							
							}
							document.getElementById("monoInitial" + productRow + "_" + currentCount).value=cTrad;
						}
						showABC(productRow, currentCount, "<%=assetSite%>");
					}
					else
					{
						
						var newFOO="";
						var fLen = FOO.length;
						for(var i=0;i<fLen-1;i++)
						{
							newFOO=newFOO+FOO.charAt(i);
						}
						document.getElementById("monoInitial" + productRow + "_" + currentCount).value=newFOO;
					}				
			}*/
			
			
