function Dots() { for (a=0; a<62; a++) { document.write(":") } }
function Dots2() { for (a=0; a<55; a++) { document.write(":") } }


function PicBtn(Img,TxtLnk,SpcOrBrk) {
	document.write("<span class=\"PicView\" onClick=\"ShortMsg(event,'", Img, "','", AutoMake, "','", AutoModel, "','", ModPrice, "','",
	TxtLnk, "')\" title=\"Click for picture\" onMouseover=\"style.background='#fff';style.color='#f00'\" ",
	"onMouseDown=\"style.background='#9f9';style.color='#04f'\" onMouseUp=\"style.background='#fff';style.color='#f00'\" ",
	"onMouseout=\"style.background='#fc4';style.color='#000'\">", TxtLnk, " <img src=\"/images/camera.icon.gif\" border=\"0\" width=\"16\" height=\"11\" ",
	"alt=\"\" style=\"position: relative; top: 2\" /></span>")

	if (SpcOrBrk == 0) { document.write(" ") } else { document.write("<div class=\"Div08\"></div>") }
}


function ShortMsg(evt,ImgURL,AutoMk,AutoMod,ModPrc,PicVw) {
	evt = (evt) ? evt : ((window.event) ? window.event : null)
	IW = (document.body.clientWidth - 700)/2

	if (navigator.appName.search(/explorer/i) != -1 || navigator.appVersion.search(/5.0/) != -1) {
		xCoord = document.body.scrollLeft + evt.clientX - IW - 75; yCoord = 200
		//	yCoord = document.body.scrollTop + evt.clientY + 25
	} else {
		xCoord = self.pageXOffset + evt.clientX - IW - 75; yCoord = 200
		//	yCoord = self.pageYOffset + evt.clientY + 25
	}

	box = document.getElementById("DetailNoteBL"); box.style.left = xCoord; box.style.top = yCoord
	box.style.visibility = "visible"

	ImgInfo = "<a href=\"#\" onClick=\"ShortMsgErase(); return false\"><img src=\"/images/tc.pics/" + ImgURL +
	"\" border=\"0\" height=\"375\" width=\"500\" alt=\"Close Image\" title=\"Close Image\" /></a>" +
	"<div class=\"Yel PView\">Picture View: <span style=\"padding-left: 10px\" class=\"a12 Wht Bld\">" + PicVw + "</span></div><nobr>Make: " +
	"<span class=\"a10 Blk Div09\">" + AutoMk + "</span></nobr> <nobr>Model: <span class=\"a10 Blk Div09\">" + AutoMod +
	"</span></nobr> <nobr>Price: <span class=\"a10 Blk\">$" + ModPrc + "</span></nobr><div class=\"Div08\"></div>"

	PicModel = document.getElementById("DetailContentBL"); PicModel.innerHTML = ImgInfo
}


function ShortMsgErase() {
	box = document.getElementById("DetailNoteBL"); box.style.visibility = "hidden"
}


function Calc() {
	fm = window.document.forms[0]
	TotQty=0; TotShip=0; TotNet=0; GTotal=0
	OrderReq="_______________________________________________\n" +
	"¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\n" +
	"DETAILS OF ORDER\n" +
	"¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯"

	for (a=1; a<=i; a++) {
		fieldno = a - 1
		if (fm.elements[fieldno].value!="") {
			check=fm.elements[fieldno].value
			len=check.length
			for (b=0; b<len; b++) {
				Digit=check.charAt(b)
				if (Digit<"0" || Digit>"9") {
					confirm("The quantity entered must be\na numerical value or field\nmust be left empty.\n\nClosing this confirmation box\nwill erase contents in the\nfield you just typed into.")
					fm.elements[fieldno].focus(); fm.elements[fieldno].value=""; break
				}
			}
			Qty[a]=parseInt(check)
			TotQty+=Qty[a]

			if (ShipSNB[a]=="n") {
				Total[a]=(Qty[a]*ShipCost[a])+(Qty[a]*Price[a])
			} else if (ShipSNB[a]=="s") {
				Total[a]=(Qty[a]*StdShip)+(Qty[a]*Price[a])
			} else {
				Total[a]=(Qty[a]*StdShip)+(Qty[a]*ShipCost[a])+(Qty[a]*Price[a])
			}

			OrderReq += "\n              Make: " + Make[a] +
			"\n             Model: " + Model[a] +
			"\n       Qty Ordered: " + Qty[a] +
			"\n        Price Each: $"

			price=Price[a]; CommaNumber()
			OrderReq += price + "\nShipping Cost Each: $"

			if (ShipSNB[a]=="n") { price=ShipCost[a]; CommaNumber()
			} else if (ShipSNB[a]=="s") { price=StdShip; CommaNumber()
			} else if (ShipSNB[a]=="b") { price=StdShip+ShipCost[a]; CommaNumber()
			} else if (ShipSNB[a]=="ns") { price="No shipping cost"
			} else { price="Call for shipping cost" }

			OrderReq += price + "\n Shipping Cost Tot: $"

			if (ShipSNB[a]=="n") {
				price=Qty[a]*ShipCost[a]; TotShip+=price; CommaNumber()
			} else if (ShipSNB[a]=="s") {
				price=Qty[a]*StdShip; TotShip+=price; CommaNumber()
			} else if (ShipSNB[a]=="b") {
				price=(Qty[a]*StdShip)+(Qty[a]*ShipCost[a]); TotShip+=price; CommaNumber()
			} else if (ShipSNB[a]=="ns") {
				price="No shipping cost"
			} else {
				price="Call for shipping cost"
			}


			OrderReq += price + "\n    Net Cost Total: $"
			price=Qty[a]*Price[a]; TotNet+=price; CommaNumber()
			OrderReq += price + "\n        Total Cost: $"

			price=Total[a]; GTotal+=price; CommaNumber()
			OrderReq += price + "\n"
		} else {
			Qty[a]=0; Total[a]=0
		}
	}

	OrderReq += "\n_______________________________________________\n" +
	"¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\n"
	OrderReq2=""
	OrderReq2 += "ووووووووووووووووووووووووووووووووووووووووووووووو\n" +
	"¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\n" +
	"   T·R·A·N·S·F·E·R   C·A·S·E   E·X·P·R·E·S·S\n" +
	"               Transfer Case Order\n" +
	"_______________________________________________\n" +
	"ووووووووووووووووووووووووووووووووووووووووووووووو\n\n\n" +
	"SUMMARY OF ORDER\n" +
	"¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\n" +
	"Total Qty  Tot Cost    Tot Cost\n" +
	"Ordered    Shipping    Net          Grand Total\n" +
	"-----------------------------------------------\n"

	price=TotQty; CommaNumber()
	lenn=price.length; OrderReq2 += price

	if (lenn<11) { for (c=1; c<=11-lenn; c++) { OrderReq2 += " " } }

	price=TotShip; CommaNumber()

	if (price=="0") { price="Call Us." }
	lenn=price.length; OrderReq2 += "$" + price

	if (lenn<11) { for (c=1; c<=11-lenn; c++) { OrderReq2 += " " } }

	price=TotNet; CommaNumber()
	lenn=price.length; OrderReq2 += "$" + price

	if (lenn<12) { for (c=1; c<=12-lenn; c++) { OrderReq2 += " " } }

	price=GTotal; CommaNumber()
	leng=price.length; OrderReq2 += "$" + price
	OrderReq2 += "\n\nGrand total does not include core charge(s).\n" +
	"Additional core charge varies per model.\nCall for details.\n\n\nCUSTOMER\n"
	OrderReq2 += "¯¯¯¯¯¯¯¯\n"

	if (fm.CompanyName.value>"") { OrderReq2 += "	" + fm.CompanyName.value + "\n" }
	if (fm.Name.value>"") { OrderReq2 += "	" + fm.Name.value + "\n" }
	if (fm.Address.value>"") { OrderReq2 += "	" + fm.Address.value + "\n" }
	if (fm.City.value>"") { OrderReq2 += "	" + fm.City.value + ", " }

	for (c=0; c<50; c++) {
		if (fm.State.options[c].selected) { states=fm.State.options[c].text; break }
	}

	if (states>"" && states!="---unchecked---") { OrderReq2 += states + ", " }
	if (fm.Country.value>"") { OrderReq2 += fm.Country.value + ", " }
	if (fm.ZipCode.value>"") { OrderReq2 += fm.ZipCode.value + "\n" }
	if (fm.Phone.value>"") { OrderReq2 += "	Phone: " + fm.Phone.value + "\n" }
	if (fm.Fax.value>"") { OrderReq2 += "	FAX: " + fm.Fax.value + "\n" }
	if (fm.Email.value>"") {
		OrderReq2 += "	E-mail: " + fm.Email.value + "\n"
		OrderReq2 += "	E-mail: mailto:" + fm.Email.value + " (linked)\n\n"
	}
	if (fm.QuestionComments.value>"") {
		OrderReq2 += "QUESTIONS/COMMENTS\n" +
		"¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\n" + fm.QuestionComments.value + "\n\n"
	}
	fm.Details.value=OrderReq2 + OrderReq
}



function CommaNumber() {
	price+=""; price2=""; lenn=price.length

	if (lenn>3) {
		for (c=lenn-1; c>=0; c--) { price2 += price.charAt(c) }
		price=price2; price2=""
		for (c=0; c<lenn; c++) {
			if (c % 3 == 0 && c != 0) { price2 += "," + price.charAt(c)
			} else { price2 += price.charAt(c) }
		}
		price=price2; price2=""; lenn=price.length

		for (c=lenn-1; c>=0; c--) { price2 += price.charAt(c) }
		price=price2
	}
}


Cntr="<div align=\"center\"><center>"
CntrE="</center></div>"
table0="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td></td></tr></table>\n"
table1="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" height=\"1\"><tr><td></td></tr></table>\n"
tblfont1="<td width=\"129\" align=\"right\" bgcolor=\"#ACA348\"><font face=\"arial,helvetica\" size=\"2\">"
tblfont2="<td width=\"320\" bgcolor=\"#C2B870\"><b><font color=\"#172C16\" face=\"arial,helvetica\" size=\"2\">"
tblfont3="<td width=\"259\" align=\"right\" bgcolor=\"#ACA348\"><font face=\"arial,helvetica\" size=\"2\">"
tblfont4="<td width=\"190\" bgcolor=\"#C2B870\"><font color=\"#172C16\" face=\"arial,helvetica\" size=\"2\"><b>"
tblE="</td></tr></table>\n"


function SeeOrder() {
	fm = window.document.forms[0]
	TotQty=0; TotShip=0; TotNet=0; GTotal=0
	OrderReq=Cntr + "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"450\" bgcolor=\"#C2B870\"><tr><td width=\"100%\">" +
	"<table border=\"0\" width=\"100%\" cellspacing=\"3\"><tr>\n" +
	"<td bgcolor=\"#D2CB97\"><font face=\"arial,helvetica\" size=\"1\">Order Details</font></td></tr></table>\n" +
	tblE + CntrE + table1

	for (a=1; a<=i; a++) {
		fieldno = a - 1
		if (fm.elements[fieldno].value!="") {
			check=fm.elements[fieldno].value
			len=check.length
			for (b=0; b<len; b++) {
				Digit=check.charAt(b)

				if (Digit<"0" || Digit>"9") {
					confirm("The quantity entered must be\na numerical value or field\nmust be left empty.\n\nClosing this confirmation box\nwill erase contents in the\nfield you just typed into.")
					fm.elements[fieldno].focus(); 
					fm.elements[fieldno].value="";break
				}
			}
			Qty[a]=parseInt(check)
			TotQty+=Qty[a]

			if (ShipSNB[a]=="n") {
				Total[a]=(Qty[a]*ShipCost[a])+(Qty[a]*Price[a])
			} else if (ShipSNB[a]=="s") {
				Total[a]=(Qty[a]*StdShip)+(Qty[a]*Price[a])
			} else {
				Total[a]=(Qty[a]*StdShip)+(Qty[a]*ShipCost[a])+(Qty[a]*Price[a])
			}

			OrderReq += Cntr + "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"450\"><tr>\n" + tblfont3 +
			"Make Of Transfer Case: </font></td><td width=\"1\"></td>\n" + tblfont4 + 
			"&nbsp; " + Make[a] + "</b></font></td></tr><tr>\n" + tblfont3 +
			"Transfer Case Model: </font></td><td width=\"1\"></td>\n" + tblfont4 +
			"&nbsp; " + Model[a] + "</b></font></td></tr><tr>\n" + tblfont3 + 
			"Quantity Ordered: </font></td><td width=\"1\"></td>\n" + tblfont4 +
			"&nbsp; " + Qty[a] + "</b></font></td></tr><tr>\n" + tblfont3 + 
			"Price Each: </font></td><td width=\"1\"></td>\n" + tblfont4 + "&nbsp; $"
			price=Price[a]; CommaNumber()
			OrderReq += price + "</b></font></td></tr><tr>\n" + tblfont3 +
			"Shipping Cost Each: </font></td><td width=\"1\"></td>" + tblfont4 + "&nbsp; $"

			if (ShipSNB[a]=="n") { price=ShipCost[a]; CommaNumber()
			} else if (ShipSNB[a]=="s") { price=StdShip; CommaNumber()
			} else if (ShipSNB[a]=="b") { price=StdShip+ShipCost[a]; CommaNumber()
			} else if (ShipSNB[a]=="ns") { price="No shipping cost"
			} else { price="Call for shipping cost" }

			OrderReq += price + "</b></font></td></tr><tr>" + tblfont3 +
			"Shipping Cost Total: </font></td><td width=\"1\"></td>\n" + tblfont4 + "&nbsp; $"

			if (ShipSNB[a]=="n") {
				price=Qty[a]*ShipCost[a]; TotShip+=price; CommaNumber()
			} else if (ShipSNB[a]=="s") {
				price=Qty[a]*StdShip; TotShip+=price; CommaNumber()
			} else if (ShipSNB[a]=="b") {
				price=(Qty[a]*StdShip)+(Qty[a]*ShipCost[a]); TotShip+=price; CommaNumber()
			} else if (ShipSNB[a]=="ns") {
				price="No shipping cost"
			} else {
				price="Call for shipping cost"
			}

			OrderReq += price + "</b></font></td></tr><tr>\n" + tblfont3 +
			"Net Cost Total: </font></td><td width=\"1\"></td>\n" + tblfont4 + "&nbsp; $"
			price=Qty[a]*Price[a]; TotNet+=price; CommaNumber()
			OrderReq += price + "</b></font></td></tr><tr>\n" + tblfont3 +
			"Cost Total: </font></td><td width=\"1\"></td>\n" +
			"<td width=\"190\" bgcolor=\"#C2B870\"><font face=\"arial,helvetica\" size=\"2\" color=\"#172C16\"><b>&nbsp; $"
			price=Total[a]; GTotal+=price; CommaNumber()
			OrderReq += price + "</b></font></td></tr><tr>\n" +
			"<td width=\"259\" align=\"right\" bgcolor=\"#ACA348\" height=\"4\">\n" + table0 +
			"</td><td width=\"1\" height=\"4\"></td><td width=\"190\" height=\"4\" bgcolor=\"#C2B870\">\n" + table0 + tblE +
			CntrE + table1
		} else {
			Qty[a]=0; Total[a]=0
		}
	}

	OrderReq += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" height=\"6\"><tr><td></td></tr></table>\n" +
	Cntr + "<table border=\"0\" cellspacing=\"0\" width=\"450\"><tr><td width=\"100%\" bgcolor=\"#172C16\">" +
	"<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"100%\" bgcolor=\"#276B27\">" +
	"<table border=\"0\" cellspacing=\"0\" width=\"185\" align=\"left\"><tr><td bgcolor=\"#172C16\" width=\"182\">" +
	"<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"100%\" bgcolor=\"#276B27\" align=\"center\">" +
	"<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" align=\"center\" style=\"margin: 6px\"><tr>\n" +
	"<td width=\"100%\" valign=\"middle\" align=\"center\" bgcolor=\"#C2B870\">" + 
	"<font face=\"Arial\" size=\"1\"><a href=\"mailto:transfercases@transfercases.com\">email us</a></font></td></tr></table>\n" +
	"<font face=\"arial,helvetica\" size=\"1\"><font color=\"#80FF80\">Call: (510) 533-2273<br>" +
	"</font><font color=\"#FFFF80\">1-800-MUD ROAD<br>Toll Free</font><font color=\"#80FF80\"><br>" +
	"(1-800-683-7623)<br>Fax: (510) 533-2298</font></font></td></tr></table>\n" +
	"</td><td width=\"3\"><font color=\"#80FF80\" face=\"arial,helvetica\" size=\"1\"></font></td></tr></table>\n" +
	"<div style=\"font-family: arial,helvetica; font-size: 9pt; color: #fff\">You may save this page " +
	"to your desktop for easy future reference of your transfer case order. Thank you for " +
	"placing your order. We will be in contact with you shortly.<br /><br /><b>Printing:</b> Print this page if you wish to keep a hard copy " +
	"of this order.</div></td></tr><tr>\n<td width=\"100%\" bgcolor=\"#C2B870\" align=\"center\"><b>" +
	"<font face=\"arial,helvetica\" size=\"2\">Web:</font> " + "<font face=\"arial,helvetica\" size=\"2\">" + 
	"<a href=\"http://www.transfercases.com\">http://www.transfercases.com</a></font></b></td>" +
	"</tr><tr><td width=\"100%\" bgcolor=\"#276B27\">\n" + Cntr +
	"<table border=\"0\" cellspacing=\"0\" bgcolor=\"#172C16\"><tr><td width=\"100%\">\n" +
	"<table border=\"0\" cellspacing=\"0\" width=\"100%\" bgcolor=\"#325C30\" cellpadding=\"0\">\n" + 
	"<tr><td width=\"52\" align=\"center\"><table border=\"0\" cellspacing=\"0\"><tr>\n" +
	"<td bgcolor=\"#172C16\" align=\"center\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n" +
	"<tr><td align=\"center\" bgcolor=\"#427C3F\">\n" +
	"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" height=\"35\" bgcolor=\"#427C3F\"><tr>\n" +
	"<td align=\"center\" valign=\"top\"><b><font color=\"#E6E1C4\" face=\"arial,helvetica\" size=\"3\">T</font></b></td>\n" +
	"<td align=\"center\"><b><font color=\"#D2CB97\" face=\"arial,helvetica\" size=\"3\">C</font></b></td>\n" +
	"<td align=\"center\" valign=\"bottom\"><b><font color=\"#BFB56A\" face=\"arial,helvetica\" size=\"3\">E</font></b></td></tr></table>\n" +
	tblE + tblE + "</td><td>" + Cntr + "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#325C30\"><tr>\n" +
	"<td width=\"90\" colspan=\"3\"><b><em><font face=\"verdana,arial,helvetica\" size=\"2\" color=\"#E6E1C4\">T</font><font color=\"#FFFFFF\" face=\"verdana,arial,helvetica\" size=\"1\">RANSFER</font></em></b></td>\n" +
	"<td width=\"140\" rowspan=\"3\"><p align=\"center\"><font face=\"Arial,Helvetica,Times New Roman\" size=\"1\" color=\"#FFFF80\">2969 East 7th Street<br>" +
	"Oakland, California, USA 94601</font></td></tr><tr>\n" +
	"<td width=\"14\">&nbsp;</td><td width=\"76\" colspan=\"2\"><b><em><font face=\"verdana,arial,helvetica\" size=\"2\" color=\"#D2CB97\">C</font><font color=\"#FFFFFF\" face=\"verdana,arial,helvetica\" size=\"1\">ASE</font></em></b></td></tr><tr>\n" +
	"<td width=\"14\">&nbsp;</td><td width=\"16\">&nbsp;</td><td width=\"60\"><b><em><font face=\"verdana,arial,helvetica\" size=\"2\" color=\"#BFB56A\">E</font><font color=\"#FFFFFF\" face=\"verdana,arial,helvetica\" size=\"1\">XPRESS</font></em></b></td></tr></table>\n" +
	CntrE + tblE + tblE + CntrE + tblE + tblE + CntrE +
	"<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" height=\"25\"><tr><td></td></tr></table>" + "</body></html>"

	OrderReq2=""
	OrderReq2 += "<html><head><title>Transfer Case Express · ORDER</title></head>\n<body bgcolor=\"#427C3F\" topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\">\n" +
	Cntr + "<table border=\"0\" cellpadding=\"6\" cellspacing=\"0\" width=\"462\"><tr><td>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"1\"><tr>\n" +
	"<td bgcolor=\"#C2B870\">" + table0 + tblE + tblE + CntrE + Cntr + "<table border=\"0\" cellspacing=\"0\" bgcolor=\"#172C16\"><tr><td width=\"100%\">\n" +
	"<table border=\"0\" cellspacing=\"0\" width=\"100%\" bgcolor=\"#325C30\" cellpadding=\"0\"><tr>\n" +
	"<td width=\"52\" align=\"center\"><table border=\"0\" cellspacing=\"0\"><tr><td bgcolor=\"#172C16\" align=\"center\">\n" +
	"<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\"><tr><td align=\"center\" bgcolor=\"#427C3F\">\n" +
	"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" height=\"35\" bgcolor=\"#427C3F\"><tr>\n" +
	"<td align=\"center\" valign=\"top\"><b><font color=\"#E6E1C4\" face=\"arial,helvetica\" size=\"3\">T</font></b></td>\n" +
	"<td align=\"center\"><b><font color=\"#D2CB97\" face=\"arial,helvetica\" size=\"3\">C</font></b></td>\n" +
	"<td align=\"center\" valign=\"bottom\"><b><font color=\"#BFB56A\" face=\"arial,helvetica\" size=\"3\">E</font></b></td></tr></table>\n" +
	tblE + tblE + "</td><td>" + Cntr + "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#325C30\"><tr>\n" +
	"<td width=\"90\" colspan=\"3\"><b><em><font face=\"verdana,arial,helvetica\" size=\"2\" color=\"#E6E1C4\">T</font><font color=\"#FFFFFF\" face=\"verdana,arial,helvetica\" size=\"1\">RANSFER</font></em></b></td>\n" +
	"<td width=\"140\" rowspan=\"3\"><p align=\"center\"><font face=\"Arial,Helvetica\" size=\"1\" color=\"#FFFF80\">2969 East 7th Street<br>" +
	"Oakland, California, USA 94601</font></td></tr><tr><td width=\"14\"></td>\n" +
	"<td width=\"76\" colspan=\"2\"><b><em><font face=\"verdana,arial,helvetica\" size=\"2\" color=\"#D2CB97\">C</font><font color=\"#FFFFFF\" face=\"verdana,arial,helvetica\" size=\"1\">ASE</font></em></b></td>\n" +
	"</tr><tr><td width=\"14\"></td><td width=\"16\"></td>\n" +
	"<td width=\"60\"><b><em><font face=\"verdana,arial,helvetica\" size=\"2\" color=\"#BFB56A\">E</font><font color=\"#FFFFFF\" face=\"verdana,arial,helvetica\" size=\"1\">XPRESS</font></em></b></td></tr></table>\n" +
	CntrE + tblE + tblE + CntrE + Cntr + "<table border=\"0\" cellpadding=\"6\" cellspacing=\"0\" width=\"462\"><tr><td width=\"100%\">\n" +
	"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"1\"><tr><td bgcolor=\"#C2B870\">\n" +
	table0 + tblE + tblE + CntrE + Cntr + "<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"450\"><tr><td width=\"100%\" bgcolor=\"#C2B870\">\n" +
	"<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"50%\"><tr>\n<td width=\"100%\" bgcolor=\"#325C30\"><font face=\"arial,helvetica\" size=\"2\" color=\"#00FF00\"><b>Order Summary</b></font></td></tr></table>\n" +
	tblE + CntrE + table1 + Cntr + "<table border=\"0\" cellspacing=\"0\" width=\"450\" cellpadding=\"0\"><tr><td width=\"111\" bgcolor=\"#C2B870\">\n" +
	"<table border=\"0\" width=\"100%\" cellspacing=\"3\"><tr>\n<td width=\"100%\" bgcolor=\"#D2CB97\"><font face=\"arial,helvetica\" size=\"1\">Total Qty Ordered</font></td></tr></table>\n" +
	"</td><td width=\"1\"></td><td width=\"112\" bgcolor=\"#C2B870\">\n<table border=\"0\" width=\"100%\" cellspacing=\"3\"><tr>\n" +
	"<td width=\"100%\" bgcolor=\"#D2CB97\"><font face=\"arial,helvetica\" size=\"1\">Total Cost Shipping</font></td></tr></table>\n" +
	"</td><td width=\"1\"></td><td width=\"112\" bgcolor=\"#C2B870\">\n" + "<table border=\"0\" width=\"100%\" cellspacing=\"3\"><tr>\n" +
	"<td width=\"100%\" bgcolor=\"#D2CB97\"><font face=\"arial,helvetica\" size=\"1\">Total Cost Net</font></td></tr></table>\n" +
	"</td><td width=\"1\"></td><td width=\"112\" bgcolor=\"#C2B870\">\n<table border=\"0\" width=\"100%\" cellspacing=\"3\"><tr>\n" +
	"<td width=\"100%\" bgcolor=\"#D2CB97\"><font face=\"arial,helvetica\" size=\"1\">Total Cost</font></td></tr></table>\n" +
	"</td></tr><tr>" + "<td width=\"111\" bgcolor=\"#C2B870\"><font face=\"arial,helvetica\" size=\"2\">&nbsp; "

	price=TotQty; CommaNumber()

	OrderReq2 += price + "</font></td><td width=\"1\"></td>\n" +
	"<td width=\"112\" bgcolor=\"#C2B870\"><font face=\"arial,helvetica\" size=\"2\">&nbsp; $"

	price=TotShip; CommaNumber()

	if (price=="0") { price="Call Us." }

	OrderReq2 += price + "</font></td><td width=\"1\"></td>\n" +
	"<td width=\"112\" bgcolor=\"#C2B870\"><font face=\"arial,helvetica\" size=\"2\">&nbsp; $"

	price=TotNet; CommaNumber()

	OrderReq2 += price + "</font></td><td width=\"1\"></td>\n" +
	"<td width=\"112\" bgcolor=\"#C2B870\"><font face=\"arial,helvetica\" size=\"2\">&nbsp; $"

	price=GTotal; CommaNumber()

	OrderReq2 += price + "</font></td></tr></table>" + CntrE + table1 + Cntr +
	"\n<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"450\" bgcolor=\"#C2B870\"><tr><td>\n" +
	"<font face=\"arial,helvetica\" size=\"2\">Total cost does not include core charge(s).<br>" +
	"Additional core charge varies per model. Call for details.</font>\n" +
	tblE + CntrE + table1 + Cntr +
	"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"450\" bgcolor=\"#C2B870\"><tr><td>\n" +
	"<table border=\"0\" width=\"100%\" cellspacing=\"3\"><tr>\n" +
	"<td bgcolor=\"#D2CB97\"><font face=\"arial,helvetica\" size=\"1\">Customer Information</font></td></tr></table>\n" +
	tblE + CntrE + table1 + Cntr + "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"450\"><tr>\n" +
	tblfont1 + "Company Name: </font></td><td width=\"1\"></td>\n" + tblfont2 + "&nbsp; " + fm.CompanyName.value +
	"</font></b></td></tr><tr>" + tblfont1 + "Your Name: </font></td><td width=\"1\"></td>" + tblfont2 + "&nbsp; " + fm.Name.value +
	"</font></b></td></tr><tr>" + tblfont1 + "Address: </font></td><td width=\"1\"></td>" + tblfont2 + "&nbsp; " + fm.Address.value +
	"</font></b></td></tr><tr>" + tblfont1 + "City: </font></td><td width=\"1\"></td>" + tblfont2 + "&nbsp; " + fm.City.value +
	"</font></b></td></tr><tr>" + tblfont1 + "State: </font></td><td width=\"1\"></td>" + tblfont2 + "&nbsp; "

	for (c=0; c<50; c++) {
		if (fm.State.options[c].selected) { states=fm.State.options[c].text; break }
	}

	if (states>"" && states!="---unchecked---") { OrderReq2 += states }

	OrderReq2 += "</font></b></td></tr><tr>" + tblfont1 + "Country: </font></td><td width=\"1\"></td>" +
	"<td width=\"320\" bgcolor=\"#C2B870\"><font color=\"#172C16\"><b><font face=\"arial,helvetica\" size=\"2\">&nbsp; " + fm.Country.value +
	"</font></b></font></td></tr><tr>" + tblfont1 + "Zip Code: </font></td><td width=\"1\"></td>" + tblfont2 + "&nbsp; " + fm.ZipCode.value +
	"</font></b></font></td></tr><tr>" + tblfont1 + "Phone: </font></td><td width=\"1\"></td>" +
	"<td width=\"320\" bgcolor=\"#C2B870\"><font color=\"#172C16\" face=\"arial,helvetica\" size=\"2\"><b>&nbsp; " + fm.Phone.value +
	"</b></font></td></tr><tr>" + tblfont1 + "FAX: </font></td><td width=\"1\"></td>" +
	"<td width=\"320\" bgcolor=\"#C2B870\"><font color=\"#172C16\" face=\"arial,helvetica\" size=\"2\"><b>&nbsp; " + fm.Fax.value +
	"</b></font></td></tr><tr>" + tblfont1 + "E-mail: </font></td><td width=\"1\"></td>" +
	"<td width=\"320\" bgcolor=\"#C2B870\"><font face=\"arial,helvetica\" size=\"2\" color=\"#172C16\"><b>&nbsp; " + fm.Email.value +
	"</b></font></td></tr><tr><td width=\"129\" align=\"right\" bgcolor=\"#ACA348\" height=\"4\">" + table0 +
	"</td><td width=\"1\" height=\"4\"></td><td width=\"320\" height=\"4\" bgcolor=\"#C2B870\">" + table0 + tblE + CntrE + table1 +
	Cntr + "<table border=\"0\" cellspacing=\"0\" width=\"450\" cellpadding=\"3\"><tr><td bgcolor=\"#C2B870\">\n" +
	"<table border=\"0\" cellspacing=\"0\" align=\"left\"><tr>\n<td bgcolor=\"#D2CB97\"><font face=\"arial,helvetica\" size=\"1\">Questions/Comments </font>" + 
	tblE + "<font face=\"arial,helvetica\" size=\"2\">&nbsp; " + fm.QuestionComments.value + "</font>" + tblE + CntrE + table1

	OWin=window.open("","ordering","height=400,width=500,top=0,left=100,resizable,menubar,toolbar,scrollbars")
	OWin.focus()
	OWin.document.write(OrderReq2 + OrderReq)
	OWin.document.close(OrderReq2 + OrderReq)
	OrderReq=0
	OrderReq2=0
}


function CheckIfIncluded() {
	RPL = /\s/gi; PNum = document.TCEOrder.Phone.value; EmlAddy = document.TCEOrder.Email.value
	PNum = PNum.replace(RPL , ""); EmlAddy = EmlAddy.replace(RPL , "")
	document.TCEOrder.Phone.value = PNum; document.TCEOrder.Email.value = EmlAddy
	if (PNum.length < 9 && EmlAddy.length < 8) {
		alert("Must enter either complete phone number\nor e-mail address."); return false
	}


	if (PNum.length > 8 && EmlAddy.length > 7) {
		if ((PNum.search(/^\d{3}\-?\d{2}\-?\d{3}\-?\d{3}\-?\d{4}$/) == -1 && PNum.search(/^\d{3}\-?\d{3}\-?\d{4}$/) == -1) || PNum.search(/[A-Za-z`~\!@#\$%\^&\*\(\)_=\+\[\]\{\};:'"\,\.<>\/\?\\\|]/) != -1) {
			alert("Phone number must match formats xxx-xxx-xxxx or\nxxx-xx-xxx-xxx-xxxx (international).\nPlease make correction."); return false
		}

		if (EmlAddy.search(/[\w\.\-]{2,}@[A-Za-z0-9\.]+\.{1}[A-Za-z]{2,4}/) == -1 || EmlAddy.search(/[`~\!#\$%\^&\*\(\)\+=\{\}\[\];:'",<>\/\?\\\|]/) != -1 || EmlAddy.search(/\.[A-Za-z]*[0-9_]+$/) != -1) {
			alert("E-mail address appears incorrectly formatted.\nPlease make correction."); return false
		}
	}

	if (PNum.length > 8 && EmlAddy.length < 8) {
		if ((PNum.search(/^\d{3}\-?\d{2}\-?\d{3}\-?\d{3}\-?\d{4}$/) == -1 && PNum.search(/^\d{3}\-?\d{3}\-?\d{4}$/) == -1) || PNum.search(/[A-Za-z`~\!@#\$%\^&\*\(\)_=\+\[\]\{\};:'"\,\.<>\/\?\\\|]/) != -1) {
			alert("Phone number must match formats xxx-xxx-xxxx or\nxxx-xx-xxx-xxx-xxxx (international).\nPlease make correction."); return false
		}
	}

	if (PNum.length < 9 && EmlAddy.length > 7) {
		if (EmlAddy.search(/[\w\.\-]{2,}@[A-Za-z0-9\.]+\.{1}[A-Za-z]{2,4}/) == -1 || EmlAddy.search(/[`~\!#\$%\^&\*\(\)\+=\{\}\[\];:'",<>\/\?\\\|]/) != -1 || EmlAddy.search(/\.[A-Za-z]*[0-9_]+$/) != -1) {
			alert("E-mail address appears incorrectly formatted.\nPlease make correction."); return false
		}
	}
	return true
}


