<div class="bis">
	<style type="text/css">
	.bis h1 { margin-top:1em; margin-bottom:.5em; text-align:center; color: #ED1C24;}
	.bis h2 { margin-top:1em; margin-bottom:.5em; text-align:center;  color: #005A9C;}

	.bis table.requestorblock { width:550px; margin-left:1em; margin-bottom:1em; }
	.bis table.requestor { width:370px;}
	.bis table.requestor td.l { width:110px; }
	.bis table.requestor td.rf { width:260px; }
	.bis table.requestor td.rf input { width:250px; }
	.bis table.requestor td.lc { margin-left:1em;  }
	.bis table.requestor td.rfc { margin-left:2em; color: #ED1C24; font-weight:bold; }
	
	.bis table.donationrequest { height:110px; margin-right:1px; width:170px; }
	.bis table.donationrequest  thead td { font-weight:bold;  width:170px; height: 20px; vertical-align:middle; text-align:center;  border-top:1px solid; border-right:1px solid; border-left:1px solid; border-botton:0px;  }
	.bis table.donationrequest  tbody td { width:170px; vertical-align:middle; text-align:center; border-width:1px; border-style:solid; }
	.bis table.donationrequest  tbody td.l textarea { margin:5px 5px; height:100px; width:160px; }
		
	.bis table.shippingblock { width:550px; margin-left:1em; margin-bottom:1em; }
	.bis table.shipping { width:380px;}
	.bis table.shipping td.l { width:160px; }
	.bis table.shipping td.rf { width:210px;}
	.bis table.shipping td.rf input { width:200px; }
	
	.bis table.specshipinstructions {  height:140px; margin-right:5px; width:160px; }
	.bis table.specshipinstructions  thead td { font-weight:bold;  width:160px; height: 20px; vertical-align:middle; text-align:center;  border-top:1px solid; border-right:1px solid; border-left:1px solid; border-botton:0px;  }
	.bis table.specshipinstructions  tbody td { width:160px; vertical-align:middle; text-align:center; border-width:1px; border-style:solid; }
	.bis table.specshipinstructions  tbody td.l textarea { margin:5px 5px; height:130px; width:150px; }

	.bis table.order { width:550px; margin-left:1em; margin-bottom:1em; }

	.bis table.display-info { margin-right:5px; width:320px; float:left; clear:left; }
	.bis table.display-info thead td div { font-weight:bold; }
	.bis table.display-info thead td { font-weight:bold;  width:80px; vertical-align:middle; text-align:center; height: 50px; border-top:1px solid; border-right:1px solid; border-left:1px solid; border-botton:0px;  }
	.bis table.display-info tbody td { height: 35px; width:80px; vertical-align:middle; text-align:center; border-width:1px; border-style:solid; }
	.bis table.display-info tbody td.l input { margin:0px 5px; width:75px; }

 	.bis table.specinstructions { margin-right:5px; width:170px; float:left; clear:left; }
	.bis table.specinstructions thead td div { font-weight:bold; }
	.bis table.specinstructions thead td { font-weight:bold;  width:170px; vertical-align:middle; text-align:center; height: 50px; border-top:1px solid; border-right:1px solid; border-left:1px solid; border-botton:0px;  }
	.bis table.specinstructions tbody td { height: 350px; width:170px; vertical-align:middle; text-align:center; border-width:1px; border-style:solid; }
	.bis table.specinstructions tbody td.l textarea { margin:0px 5px; width:150px; height:330px; } 
	
	.bis table.footer-info { width:550px; margin-left:1em; margin-bottom:1em; }
	.bis table.footer-info td.t { 	vertical-align:text-top; }


	.bis table.footer-cscomments {  height:120px; margin-right:5px; width:300px; }
	.bis table.footer-cscomments thead td { font-weight:bold;  width:300px; height: 20px; vertical-align:middle; text-align:center;  border-top:1px solid; border-right:1px solid; border-left:1px solid; border-botton:0px;  }
	.bis table.footer-cscomments tbody td { width:300px; vertical-align:middle; text-align:center; border-width:1px; border-style:solid; }
	.bis table.footer-cscomments  tbody td.l textarea { margin:5px 5px; height:120px; width:280px; }

	</style>

	<h1>Consumer Brands Order Form</h1>

	<div style="border-bottom:1px solid black;">
		<h2>Person Requesting Samples</h2>
		<table class="requestorblock">
			<tr>
				<td>
					<table class="requestor">
						<tr>
							<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_requestor_name"/></td>
							<td class="rf"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_requestor_name"/></td>
						</tr>
						<tr>
							<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_requestor_email"/></td>
							<td class="rf"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_requestor_email"/></td>
						</tr>
						<tr>
							<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_requestor_phone"/></td>
							<td class="r"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_requestor_phone"/></td>
						</tr>
						<tr>
							<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_requestor_costcenter"/></td>
							<td class="rf"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_requestor_costcenter"/></td>
						</tr>	
 					<!--- 	<tr>
							<td class="rfc"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_requestor_ssi"/></td>
							<td class="lc"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_requestor_ssi"/></td>
						</tr> --->
						 						<tr>
							<td class="lc" colspan="2"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_requestor_ssi"/><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_requestor_ssi"/></td>
						</tr>

								<tr>
							<td class="rfc" colspan="2">- If this order is being sent to SSI, skip shipping information below.</td>
						</tr>
 					</table>
				</td>
				<td>
					<table class="donationrequest">
						<thead>
							<tr><td>Donation Request</td></tr>
						</thead>
						<tbody>
							<tr><td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_requestor_donation"/></td></tr>
						</tbody>
					</table> 
				</td>
			</tr>
	
		 </table>
	</div>
	<div style="border-bottom:1px solid black;">	
		<h2>Shipping Information</h2>	
				<table class="shippingblock">
					<tr>
						<td>
							<table class="shipping">
								<tr>
									<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_ship_name"/></td>
									<td class="rf"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_ship_name"/></td>
								</tr>
								<tr>
									<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_ship_company_name"/></td>
									<td class="rf" colspan="2"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_ship_company_name"/></td>
								</tr>
								<tr>
									<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_ship_address"/></td>
									<td class="rf"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_ship_address"/></td>
								</tr>
								<tr>
									<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_ship_city"/></td>
									<td class="rf"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_ship_city"/></td>
								</tr>
								<tr>
									<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_ship_state"/></td>
									<td class="rf"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_ship_state"/></td>
								</tr>
								<tr>
									<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_ship_zip"/></td>
									<td class="rf"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_ship_zip"/></td>
								</tr>
								<tr>
									<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_ship_phone"/></td>
									<td class="rf"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_ship_phone"/></td>
								</tr>
								<tr>
									<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_ship_request_del_date"/></td>
									<td class="rf"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_ship_request_del_date"/></td>
								</tr>
							 </table>
						</td>
						<td>
							<table class="specshipinstructions">
								<thead>
<!--- 									<tr><td><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="label" for="ordrsamp_ship_spec_ship_instruct"/></td></tr> --->
									<tr><td>Special Shipping Instructions</td></tr>
								</thead>
								<tbody>
									<tr><td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ORDRSAMP_SHIP_SPEC_SHIP_INSTRUC"/></td></tr>
								</tbody>
							</table> 
						</td>
					</tr>
			 </table>
	</div>

<!--- 	<div style="border-style: none none solid; border-color: black; border-width: 1.5pt; padding-top: 10px; "></div> --->
	<div style="border-bottom:1px solid black;">
		<h2>Order Information</h2>	
		<table class="order">
			<tr>
				<td>
					<table class="display-info">
						<thead>
							<tr>
								<td>Product Code</td>
								<td>Product<div>Description</div></td>
								<td>Case QTY</td>
								<td>QTY of<div>Packages</div><div>(if applies)</div></td>
							</tr>
						</thead>
						<tbody>
							<cfloop index="loopcount" from="1" to="10">
								<tr>
									<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_order_product_code_#loopcount#"/></td>
									<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_order_product_des_#loopcount#"/></td>
									<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_order_case_qty_#loopcount#"/></td>
									<td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_order_pack_qty_#loopcount#"/></td>
								</tr>
							</cfloop>
						</tbody>
					</table>
				</td>
				<td>
					<table class="specinstructions">
						<thead>
							<tr><td>Special Order <div>Instructions:</div></td></tr>
						</thead>
						<tbody>
							<tr><td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ordrsamp_order_spec_instruc"/></td></tr>
						</tbody>
					</table> 
				</td>
			</tr>
		</table>
	</div>
	<div style="margin-top:1em;">
		<table class="footer-info">
			<tr>
				<td class="t"><div>Customer Service Contact Information:</div><div>Email: <a href="mailto:RPC-CBD-Samples@rich.com?subject=Consumer Brands Order Form Information Request">RPC-CBD-Samples@rich.com</a></div><div>Phone Number: (800) 818-9262</div><div>Contacts: Catie Sucharski Ext. 8105</div><div>Chris Domagala Ext. 8652</div></td>
				<td>
					<table class="footer-cscomments">
						<thead>
							<tr><td>Comments for Customer Service</td></tr>
						</thead>
						<tbody>
							<tr><td class="l"><cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="field" fieldName="ORDRSAMP_SHIP_CS_COMMENTS"/></td></tr>
						</tbody>
					</table> 
				</td>
			</tr>
		</table>
	</div>
	
	<div class="buttons">
		<cfmodule template="/mstrcfmod/CDA/cfmod_formXSLHelper.cfm" helper="button" class="submit"/>
	</div>
</div>
<script type="text/javascript">
var fnSSIChanged = function() {

	if (!document.getElementById( "ORDRSAMP_REQUESTOR_SSI_Y" ).checked) 
	{ 
		document.getElementById( "ORDRSAMP_SHIP_NAME" ).value = "";
		document.getElementById( "ORDRSAMP_SHIP_COMPANY_NAME" ).value = "";
		document.getElementById( "ORDRSAMP_SHIP_ADDRESS" ).value = "";
		document.getElementById( "ORDRSAMP_SHIP_CITY" ).value = "";
		document.getElementById( "ORDRSAMP_SHIP_STATE" ).value = "";
		document.getElementById( "ORDRSAMP_SHIP_ZIP" ).value = "";
		document.getElementById( "ORDRSAMP_SHIP_PHONE" ).value = "";
		document.getElementById( "ORDRSAMP_SHIP_REQUEST_DEL_DATE" ).value = "";
	} 
	else 
	{
		document.getElementById( "ORDRSAMP_SHIP_NAME" ).value = document.getElementById( "ORDRSAMP_REQUESTOR_NAME" ).value;
		document.getElementById( "ORDRSAMP_SHIP_COMPANY_NAME" ).value = "RPC Consumer Brands Division";
		document.getElementById( "ORDRSAMP_SHIP_ADDRESS" ).value = "127 McKinnon Airport Rd";
		document.getElementById( "ORDRSAMP_SHIP_CITY" ).value = "St. Simons Island";
		document.getElementById( "ORDRSAMP_SHIP_STATE" ).value = "GA";
		document.getElementById( "ORDRSAMP_SHIP_ZIP" ).value = "31522";
		document.getElementById( "ORDRSAMP_SHIP_PHONE" ).value = "(888) 732-7251";
		
		var d = new Date();
		var month = (d.getMonth() + 1).toString();
		var day = d.getDate().toString();

		if (month.length == 1) { var monthOut = '0' + month } else { var monthOut = month}
		if (day.length == 1) { var dayOut = '0' + day } else { var dayOut = day }

		var fd = monthOut + '/' + dayOut + '/' + d.getFullYear();

		document.getElementById( "ORDRSAMP_SHIP_REQUEST_DEL_DATE" ).value = fd;
	}

};

var bindJavaScriptHandlers = function() {

	var oSsi = document.getElementById( "ORDRSAMP_REQUESTOR_SSI_Y" );
	if( oSsi ) {	
		Fse.EventManager.addEventHandler( oSsi, "click", fnSSIChanged );
	} else {
		alert( "can't find the SSI" );
	}

};

Fse.EventManager.addOnLoadHandler( bindJavaScriptHandlers );
</script>
