function createEstimateShippingQuote(simTO)
	{
		
		var postcode = document.getElementById("dzipcode");
		var prod_qty = document.getElementById("prod_qty");
		var volume_discount = document.getElementById("volume_discount");
		var strContent = '';
		var strEndLine = '\n';
		strContent = '<form name="frmShippingQuote" id="frmShippingQuote">' + strEndLine;
		strContent += '<table width="364" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFF9E7"  class="quote">' + strEndLine;
	    	strContent += '  <tr>' + strEndLine;
	    	strContent += '    <td height="29" width="7"></td>' + strEndLine;
	    	strContent += '    <td height="29" align="right" style="vertical-align: middle"><img src="/images/close_img.gif" width="15" height="15" onclick="hidetheDiv();" style="cursor: pointer"/></td>' + strEndLine;
		strContent += '    <td width="7" height="29"></td>' + strEndLine;
		strContent += '  </tr>' + strEndLine;
		strContent += '  <tr>' + strEndLine;
		strContent += '    <td width="7"></td>' + strEndLine;
		strContent += '    <td bgcolor="#FFFFFF" style="padding-left: 5px;">' + strEndLine;
		strContent += '      <table border="0">' + strEndLine;
		strContent += '        <tr>' + strEndLine;
		strContent += '          <td  class="quote" style="color:#615944">Enter in the quantity of the product you ' + strEndLine;
		strContent += '	             would like a freight quote for and your ' + strEndLine;
		strContent += '	             5-digit zip code, then click &quot;Calculate.&quot;'
		strContent += '          </td>' + strEndLine;
		strContent += '        </tr>' + strEndLine;
		strContent += '        <tr>' + strEndLine;
		strContent += '          <td>&nbsp</td>' + strEndLine;
		strContent += '        </tr>' + strEndLine;
		strContent += '        <tr>' + strEndLine;
		strContent += '          <td>' + strEndLine;
		strContent += '            <table border="0" cellspacing="0" cellpadding ="0">' + strEndLine;
		strContent += '              <tr><td id="quantityerror" class="quote_error_red" colspan="2"></td></tr>' + strEndLine;
		strContent += '              <tr>' + strEndLine;
		strContent += '                <td class="quote_img" style="vertical-align: middle;color:#615944">Quantity&nbsp;</td>' + strEndLine;
		if (prod_qty)
		{
		strContent += '                <td style="color:#615944"><input type="text" style="padding-left:5px" name="productqty" size="5" id="productqty" value="' + prod_qty.value + '"></td>' + strEndLine;
		}
		else
		{
		strContent += '                <td style="color:#615944"><input type="text" style="padding-left:5px" name="productqty" size="5" id="productqty" value=""></td>' + strEndLine;
		}
		strContent += '              <tr>' + strEndLine;
		strContent += '            </table>' + strEndLine;
		strContent += '          </td>' + strEndLine;
		strContent += '        </tr>' + strEndLine;
		strContent += '        <tr><td id="zipcodeerror" class="quote_error_red"></td></tr>' + strEndLine;	
		strContent += '        <tr>' + strEndLine;
		if (postcode)
		{
			var tmpPostCodeFromCookie=postcode.value;
			if (tmpPostCodeFromCookie == "")
			{
				tmpPostCodeFromCookie = Get_Cookie("current_zipcode");
				if (!tmpPostCodeFromCookie)
				{
					tmpPostCodeFromCookie = "";
				}
			}
			strContent += '          <td class="quote_img" style="color:#615944">Delivery Address Zip Code <input type="text" style="padding-left:5px" name="postcode" id ="postcode" size="15" value=' + tmpPostCodeFromCookie + '></td>' + strEndLine;
		}
		else
		{
			strContent += '          <td class="quote_img" style="color:#615944">Delivery Address Zip Code <input type="text" style="padding-left:5px" name="postcode" id ="postcode" size="15" value=""></td>' + strEndLine;
		}
		strContent += '        </tr>' + strEndLine;	
		strContent += '        <tr>' + strEndLine;
		strContent += '			 <td class="quote" style="color:#615944"><input style=="padding-left:5px" type="checkbox" name="insideDelivery" value="1" id="insideDelivery" /> Please check this box if you require ' + strEndLine;	
		strContent += '			 Inside Delivery* service for an additional cost.</td>' + strEndLine;
		strContent += '		   </tr>' + strEndLine;	
		if (simTO) {
			strContent += '<tr>' + strEndLine;
			strContent += '			 <td class="quote" style="color:#615944"><input style=="padding-left:5px" type="checkbox" name="simTO" value="1" id="simTO" /> Simulate Timeout? ' + strEndLine;	
			strContent += '			 </td>' + strEndLine;
			strContent += '		   </tr>' + strEndLine;	
		}
		strContent += '        <tr>' + strEndLine;
		strContent += '			 <td style="color:#615944"><br /></td>' + strEndLine;
		strContent += '		   </tr>' + strEndLine;
		strContent += '        <tr>' + strEndLine;
		strContent += '			 <td id="CalculatingShippingCost" style="padding-bottom: 10px"><input style="height: 25px; border: 0px;" type="image" src="/V2-images/calculate_button.gif" name="btnQuote" value="Calculate" id="btnQuote" onclick="onEstimateShippingQuote();"></td>' + strEndLine;
		strContent += '		   </tr>' + strEndLine;	
		strContent += '		 </table>' + strEndLine;
		strContent += '    </td>' + strEndLine;
		strContent += '	   <td width="7"></td>' + strEndLine;
		strContent += '  </tr>' + strEndLine;
		strContent += '  <tr>' + strEndLine;
		strContent += '	   <td width="7"></td>' + strEndLine;
		strContent += '	   <td>' + strEndLine;
		strContent += '      <table>' + strEndLine;
	  	strContent += '	       <tr>' + strEndLine;
		strContent += '	         <td id="CalculatingShippingCostResults" class="quote"></td>' + strEndLine;
		strContent += '	       </tr>' + strEndLine;
		strContent += '	     </table>' + strEndLine;
		strContent += '    </td>' + strEndLine;
		strContent += '	   <td width="7"></td>' + strEndLine;
		strContent += '  </tr>' + strEndLine;
		strContent += '  <tr>' + strEndLine;
		strContent += '	   <td width="7"></td>' + strEndLine;
		strContent += '	   <td>' + strEndLine;
		strContent += '      <table>' + strEndLine;
		strContent += '	       <tr>' + strEndLine;
		strContent += '	         <td  class="quote" style="color:#615944">*Inside delivery means that the freight driver will unload' + strEndLine;	
		strContent += '              your shipment and bring inside the first doors of your ' + strEndLine;
		strContent += '              facility. The driver may still need assistance if the ' + strEndLine;
		strContent += '              products are extremely large or heavy.<br />&nbsp;' + strEndLine;
		strContent += '		     </td>' + strEndLine;
		strContent += '	       </tr>' + strEndLine;
		strContent += '	     </table>' + strEndLine;
		strContent += '    </td>' + strEndLine;
		strContent += '	   <td width="7"></td>' + strEndLine;
		strContent += '  </tr>' + strEndLine;
		strContent += '</table>' + strEndLine;
		strContent += '</form>' + strEndLine;
	  	return strContent;
		
	}
	function Get_Cookie(name)
	{	
		var start = document.cookie.indexOf( name + "=" );
		var len = start + name.length + 1;
		if ((!start) && (name != document.cookie.substring(0, name.length)))
		{
			return null;
		}
		if (start == -1) return null;
		var end = document.cookie.indexOf( ";", len );
		if (end == -1) 
		{
			end = document.cookie.length;
		}
		return unescape(document.cookie.substring(len, end));
	}
	

function hidetheDiv()
	{	
		var shippingestimate = document.getElementById("shippingcosts");
		shippingestimate.style.visibility= 'hidden';
	}
function showtheDiv()
	{	
		var shippingestimate = document.getElementById("shippingcosts");
		shippingestimate.style.visibility= 'visible';
		frmShippingQuote.productqty.focus(); //set focus to Quantity textbox

	}

