Template:2011FR/lp-form-US7amounts: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
|||
Line 2: | Line 2: | ||
<script type="text/javascript" language="javascript"> |
<script type="text/javascript" language="javascript"> |
||
var stateList = [</html>{{2011FR/stateList}}<html>]; |
|||
function validateForm( form ) { |
function validateForm( form ) { |
||
Line 120: | Line 118: | ||
</table> |
</table> |
||
<!-- currency menu --><input name="currency_code" id="input_currency_code" type="hidden" value="USD" /> |
<!-- currency menu --><input name="currency_code" id="input_currency_code" type="hidden" value="USD" /> |
||
</div> |
|||
<div id="card-info-block"> |
|||
Name on card <br /> |
|||
<input style="width: 8em;" type="text" class="input-text" id="card_name_first" value="Given" onfocus="clearThis(this,'Given');" onblur="resetThis(this,'Given');" /> |
|||
<input style="width: 8em;" type="text" class="input-text" id="card_name_last" value="Family" onfocus="clearThis(this,'Family');" onblur="resetThis(this,'Family');" /><br /> |
|||
Billing address <br /> |
|||
<input style="width: 16em;" type="text" class="input-text" id="card_address_street_1" value="Street Address 1" onfocus="clearThis(this,'Street Address 1');" onblur="resetThis(this,'Street Address 1');" /><br /> |
|||
<!-- <input style="width: 16em;" type="text" class="input-text" id="card_address_street_2" value="Street Address 2" onfocus="clearThis(this,'Street Address 2');" onblur="resetThis(this,'Street Address 2');" /><br /> --> |
|||
<input style="width: 7em;" type="text" class="input-text" id="card_address_city" value="City" onfocus="clearThis(this,'City');" onblur="resetThis(this,'City');" /> |
|||
<!-- <input style="width: 5em;" type="text" class="input-text" id="card_address_state" value="State" onfocus="clearThis(this,'State');" onblur="resetThis(this,'State');" /> --> |
|||
<select id="card_address_state" size="1" style="vertical-align: middle; width:5em; font-size:95%;" onclick="recolorThis(this);"> |
|||
<script type="text/javascript"> |
|||
var opt = document.createElement("option"); |
|||
opt.selected = true; |
|||
opt.text = "State"; |
|||
opt.value = "State"; |
|||
document.getElementById("card_address_state").options.add(opt); |
|||
for(i=0; i<stateList.length; i++) |
|||
{ |
|||
opt = document.createElement("option"); |
|||
opt.text = stateList[i]; |
|||
opt.value = stateList[i]; |
|||
document.getElementById("card_address_state").options.add(opt); |
|||
} |
|||
</script> |
|||
</select> |
|||
<input style="width: 4em;" type="text" class="input-text" id="card_address_zip" value="Zip" onfocus="clearThis(this,'Zip');" onblur="resetThis(this,'Zip');" /><br /> |
|||
E-mail receipt to <br /> |
|||
<input style="width: 16em;" type="text" class="input-text" id="card_email" value="Email Address" onfocus="clearThis(this,'Email Address');" onblur="resetThis(this,'Email Address');" /> |
|||
</div> |
</div> |
||
Line 175: | Line 140: | ||
<script type="text/javascript"> |
<script type="text/javascript"> |
||
function clearThis(elem,initialString) |
|||
//This function empties the "Other" Box. |
|||
{ |
|||
elem.style.color = "#000000"; |
|||
if(elem.value == initialString) |
|||
elem.value = ""; |
|||
} |
|||
function resetThis(elem,resetString) |
|||
{ |
|||
if(elem.value == "") |
|||
{ |
|||
elem.style.color = "#666666"; |
|||
elem.value = resetString; |
|||
} |
|||
} |
|||
function recolorThis(elem) |
|||
{ |
|||
elem.style.color = "#000000"; |
|||
} |
|||
function getQuerystring( key ) { |
function getQuerystring( key ) { |
||
key = key.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ); |
key = key.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ); |
Revision as of 23:47, 30 August 2011