Advertisement
Advertisement
| 07.04.2008 at 09:10AM PDT, ID: 23539687 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: |
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Form Validation Test</title>
</head>
<body>
<form action="http://www.example.com/form-index.html" method="post" id="choosecalculator" name="choosecalculator">
<input type="hidden" name="submit" value="1" />
<input type="hidden" name="referId" value="" />
<div id="ed-postcodebox">
<table class="ed-postcodetable" cellpadding="0" cellspacing="0">
<tr>
<td><div class="stepformlabel">Step 1.</div></td>
<td align="right"><div class="ed-postcodeformlabel"><label for="ed-postcode">Postcode</label></div></td>
<td align="left">
<input id="ed-postcode" name="p" type="text" value="" maxlength="9" />
</td>
</tr></table>
<script type="text/javascript">
document.getElementById('ed-postcode').focus();
</script>
<!-- #ed-postcodebox--></div>
<div class="REboxgreyLight" id="ed-formstep2box">
<span class="rgreyLline1"></span>
<span class="rgreyLline2"></span>
<span class="rgreyLline3"></span>
<span class="rgreyLline4"></span>
<div class="REboxgreyLightContent">
<!-- FCE-->
<div id="ed-step2box">
<table class="ed-step2table" cellpadding="0" cellspacing="0">
<tr>
<td>
<div id="ed-step2" class="stepformlabel">Step 2.</div>
</td>
<td style="width:100%;">
<!-- Compare Quote Type Prices Table -->
<table class="ed-step2quotetypetable" cellpadding="0" cellspacing="0">
<tr>
<td>
<div class="ed-compareformlabel"><label for="ed-fueltype">Compare</label></div>
</td>
<td>
<select id="ed-fueltype" onchange="showContainers(this.value);" name="db"><option value="dual" >Gas & Electricity</option><option value="electric" >Electricity only</option><option value="gas" >Gas only</option></select>
</td>
<td>
<div class="ed-pricesformlabel"><label for="ed-fueltype">Prices</label></div>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
function DualTypeControl(state) {
if (state == "enable") {
document.getElementById("single").disabled = false;
document.getElementById("single").checked = true;
document.getElementById("separate").disabled = false;
} else {
document.getElementById("single").disabled = true;
document.getElementById("single").checked = true;
document.getElementById("separate").disabled = true;
}
}
//-->
</script>
<script type="text/javascript">
function showContainers(fuel) {
switch (fuel) {
case 'dual': document.getElementById('ed-electricrow').style.display='block'; document.getElementById('ed-gasrow').style.display='block'; break;
case 'electric': document.getElementById('ed-electricrow').style.display='block'; document.getElementById('ed-gasrow').style.display='none'; break;
case 'gas': document.getElementById('ed-electricrow').style.display='none'; document.getElementById('ed-gasrow').style.display='block'; break;
default: document.getElementById('ed-electricrow').style.display='none'; document.getElementById('ed-gasrow').style.display='none'; break;
}
}
setTimeout("showContainers(document.getElementById('ed-fueltype').value);",100);
</script>
<!-- # Compare Quote Type Prices Table [END] -->
</td>
</tr>
<tr>
<td><!-- # --></td>
<td>
<div class="ed-step2lightbox">
<div id="ed-gasrow">
<div class="ed-billquestionlabel">
<label for="gasbillvalue">What is your annual gas bill to the nearest pound?</label>
</div>
<table class="ed-step2priceinputtable" cellpadding="0" cellspacing="0">
<tr>
<td><div class="ed-poundsign"><label for="gasbillvalue">£</label></div></td>
<td><input id="gasbillvalue" name="values[gasBill]" value="" size="5" maxlength="4" /></td>
<td><div class="ed-energyicon"><center><label for="gasbillvalue"><img src="/fileadmin/img/icons/gas-fire.gif" alt="Gas" title="Based on how much you spend each year on gas, we will find the best tariff and supplier." /></label></center></div></td>
</tr>
</table>
<!-- #ed-gasrow --></div>
<div id="ed-electricrow">
<div class="ed-billquestionlabel">
<label for="electricitybillvalue">What is your annual electricity bill to the nearest pound?</label>
</div>
<table class="ed-step2priceinputtable" cellpadding="0" cellspacing="0">
<tr>
<td><div class="ed-poundsign"><label for="electricitybillvalue">£</label></div></td>
<td><input id="electricitybillvalue" name="values[elecBill]" value="" size="5" maxlength="4" /></td>
<td><div class="ed-energyicon"><center><label for="electricitybillvalue"><img src="/fileadmin/img/icons/lightbulb-on.gif" alt="Electricity" title="Based on how much you spend each year on electricity, we will find the best tariff and supplier." /></label></center></div></td>
</tr>
</table>
<!-- #ed-electricrow --></div>
<!-- .ed-step2lightbox --></div>
</td>
</tr>
</table>
<!-- #ed-step2box --></div>
<!-- FCE-->
</div>
<span class="rgreyLline4"></span>
<span class="rgreyLline3"></span>
<span class="rgreyLline2"></span>
<span class="rgreyLline1"></span>
</div>
<div id="ed-step3box">
<table class="ed-step3table" cellpadding="0" cellspacing="0">
<tr>
<td>
<div class="stepformlabel">Step 3.</div>
</td>
<td style="width:100%;">
<!-- email form table -->
<table class="ed-step3emailformtable" cellpadding="0" cellspacing="0"><tr><td>
<div class="ed-emailformlabel"><label for="ed-email">Email</label></div></td><td>
<input id="ed-email" class="ed-email" type="text" />
</td></tr></table>
<!-- email form table [end] -->
</td>
<td>
<input value="annualBill_gas annualBill_electricity postCode" name="argList" type="hidden">
<input value="jump:WelcomePage:QuickQuote2" name="cmd" type="hidden">
<input id="getyourquote" name="image" value="search" src="/fileadmin/img/button/compare-now.gif" alt="Compare Prices" title="Click Here To Get Your Savings Quote >>" type="image">
</td>
</tr>
</table>
<!-- #ed-step3box --></div>
<div id="ed-emailinfotipcontainer">
<ul class="itip">
<li>
Email address is optional and only used to send you a quote, ..or you can easily
register for price updates if you decide not to proceed today.
</li>
</ul>
</div>
</form>
</body>
</html>
|