All pastes #776188 Raw Edit

Untitled

public javascript v1 · immutable
·published 2007-11-15 22:32 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>ID Builder &raquo; Start - NovaVision</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><script src="/ui/js/mootools.v1.11.js" type="text/javascript"></script>window.onload = init;function init() {//$('photo_preview').style.width = '200px';//$('photo_preview').style.display = 'inline';$('shipping_same').addEvent('click', billingIsShipping);}function billingIsShipping(evt) {	var clickEvent = new Event(evt);	if(clickEvent.target.getProperty('checked') != 'checked') {		$$('#billing_info input').each(function(field) {			var fieldId = field.getProperty('id');//.substr(8);			$('shipping_'+fieldId).value = $(fieldId).value;		});	} else {		$$('#billing_info input').each(function(field) {			var fieldId = field.getProperty('id');//.substr(8);			$('shipping_'+fieldId).value = '';		});	}}  <table width="650" border="0" align="center">    <tr>      <td colspan="2" align="left" valign="top"><h3>Is this ID Card Order a Reprint or Reorder? </h3>      <p>          <label>          <input type="radio" name="reorder" value="1" id="reorder_1" />          Yes, I am ordering a replacement with no changes to the information on the card.</label>          <br />          <label>          <input type="radio" name="reorder" value="2" id="reorder_2" />           Yes, but my information on the id card has changed since my last order.</label>          <br />          <label>          <input type="radio" name="reorder" value="0" id="reorder_0" />           No, I have never placed an order for this exact id card in the past.</label><br />        </p></td>      </tr>    <tr>      <td width="295" align="left" valign="top"><h3>Billing Address</h3>        <div id="billing_info">          <p>            <label>Full Name:              <input name="name" type="text" id="name" tabindex="1" value="" />              </label>          </p>          <p>            <label>Address:              <input name="address" type="text" id="address" tabindex="2" value="" />              </label>          </p>          <p>            <label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;              <input name="address2" type="text" id="address2" tabindex="3" value="" />              </label>          </p>          <p>            <label>City:              <input name="city" type="text" id="city" tabindex="4" value="" />              </label>          </p>          <p>            <label>State:              <input name="state" type="text" id="state" tabindex="5" value="" size="4" maxlength="2" />              </label><label>Zip:                <input name="zip" type="text" id="zip" tabindex="6" value="" size="10" maxlength="5" />                </label>          </p>          <p>            <label>Phone:              <input type="text" name="phone" id="phone" tabindex="7" value="" />              </label>          </p>        </div>        <p>          <label>            <input type="checkbox" name="shipping_same" id="shipping_same" value="1" tabindex="8" />            Shipping address is the same as the billing address</label>          </p>        <p>&nbsp; </p></td>      <td width="295" align="left" valign="top"><h3>Shipping Address</h3>        <div id="shipping_info">          <p>            <label>Full Name:              <input name="shipping_name" type="text" id="shipping_name" tabindex="9" value="" />              </label>          </p>          <p>            <label>Address:              <input name="shipping_address" type="text" id="shipping_address" tabindex="10" value="" />              </label>          </p>          <p>            <label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;              <input name="shipping_address2" type="text" id="shipping_address2" tabindex="11" value="" />              </label>          </p>          <p>            <label>City:              <input name="shipping_city" type="text" id="shipping_city" tabindex="12" value="" />              </label>          </p>          <p>            <label>State:              <input name="shipping_state" type="text" id="shipping_state" tabindex="13" value="" size="4" maxlength="2" />              </label><label>Zip:                <input name="shipping_zip" type="text" id="shipping_zip" tabindex="14" value="" size="10" maxlength="5" />                </label>          </p>          <p>            <label>Phone:              <input type="text" name="shipping_phone" tabindex="15" value="" />              </label>          </p>        </div>        <p>Note: If the shipping address differs from the billing, you will need          to enter this in again when entering your credit card details on the          payment site.  </p></td>    </tr>  </table></html></body>