<table cellspacing="0" cellpadding="0" width="100%">
  <tr>
	<td>
	  <table border="0" cellspacing="0" cellpadding="4" width="100%">
		<tr class="titletab_small">
		  <td colspan=4 class="titletab_small">
		  	<b>&nbsp;[L]Billing Address[/L]</b> -

<script>
	function check_bill_elements (el) {
		var f;
		var disit = [if value mv_same_billing]true[else]false[/else][/if];
		if(el != undefined) {
			if(el.checked == true && el.value == 0) 
				disit = false;
			if(el.checked == false && el.value == 0) 
				disit = true;
			if(el.checked == true && el.value == 1) 
				disit = true;
			if(el.checked == false && el.value == 1) 
				disit = false;
			f = el.form;

		}
		else {
			f = document.checkout;
		}
		f.b_fname.disabled=disit;
		f.b_lname.disabled=disit;
		f.b_company.disabled=disit;
		f.b_address1.disabled=disit;
		f.b_address2.disabled=disit;
		f.b_city.disabled=disit;
		f.b_state.disabled=disit;
		f.b_zip.disabled=disit;
		f.b_country.disabled=disit;
			
	}
</script>
			[if value mv_same_billing eq '']
				[value name=mv_same_billing set=1 hide=1]
			[/if]
			<input
				type="radio"
				name="mv_same_billing"
				value="0"
				onClick="check_bill_elements(this)"
				[checked mv_same_billing 0]>
						Different than shipping
			<input
				type="radio"
				name="mv_same_billing"
				value="1"
				onClick="check_bill_elements(this)"
				 [checked mv_same_billing 1]>
						Same as shipping			
		  </td>
		</tr>
		<tr>
		  <td align="right" class="contentbar1">
		  <br>		
			<b>[L]First Name[/L]</b>
		  </td>
		  <td align="left" class="contentbar1">
		  <br>
			<input type="text" name="b_fname" value="[evalue b_fname]" size="20" maxlength="20">
		  </td>
		  <td align="right" class="contentbar1">
		  <br>
			<b>[L]Last Name[/L]</b>
		  </td>
		  <td align="left" class="contentbar1">
		  <br>
			<input type="text" name="b_lname" value="[evalue b_lname]" size="20">
		  </td>
		</tr>
		<tr>
		  <td align="right" class="contentbar1">
			<b>[L]Company[/L]</b>
		  </td>
		  <td align="left" class="contentbar1" colspan="3">
			<input type="text" name="b_company" value="[evalue b_company]" size="20" maxlength="44">
		  </td>
		</tr>
		<tr>
		  <td align="right" class="contentbar1">
			<b>[L]Address[/L]</b>
		  </td>
		  <td align="left" colspan="3" class="contentbar1">
			<input type="text" name="b_address1" value="[evalue b_address1]" size=40 maxlength="64">
		  </td>
		</tr>
		<tr>
		  <td class="contentbar1">&nbsp;</td>
		  <td align="left" colspan="3" class="contentbar1">
			<input type="text" name="b_address2" value="[evalue b_address2]" size=40 maxlength="64">
		  </td>
		</tr>
		<tr>
		  <td align="right" class="contentbar1">
			<b>[L]City[/L]</b>
		  </td>
		  <td class="contentbar1">
			<input type="text" name="b_city" value="[evalue b_city]" size="20">
		  </td>
		  <td align="right" class="contentbar1"><b>[L]State/Province[/L]</b></td>
		  <td class="contentbar1">
			[display name=b_state type=state_select value="[evalue b_state]"]
		  </td>
		</tr>
		<tr>
		  <td align="right" class="contentbar1">
			<b>[L]Zip/Postal Code[/L]</b>
		  </td>
		  <td class="contentbar1" colspan="3">
			<input type="text" name="b_zip" value="[evalue b_zip]" size="10" maxlength="10">
		  </td>
		</tr>
		<tr>
		  <td align="right" class="contentbar1">
			<b>[L]Country[/L]</b>
		  </td>
		  <td class="contentbar1" colspan="3">
			[display name=b_country type=country_select value="[evalue b_country]"]
		  </td>
		</tr>
		<tr>
		  <td class="contentbar1" colspan="4">&nbsp;</td>
		</tr>
	  </table>
	</td>
  </tr>
</table>                                          
<script>
	check_bill_elements();
</script>
