Form:
<script language="JavaScript">
<!-- Begin
function fCompanyData(formular) {
with (formular) {
var udaje = new Array(o_name,o_company,o_phone,o_email);
for (var i=0; i<udaje.length; i++) {
if (udaje[i].value == "") {
alert("Please, fill up all required data: Name, Company, Phone, e-mail!");
udaje[i].select();
udaje[i].focus();
return false;
}
}
}
return true;
}
function recount() {
var price = 0;
var priceupd = 0;
var pricelic = 0;
if(document.order.cocon.checked) {
var coconprice = 200;
if(Number(document.order.cocon_numlic.value) >= 14)
coconprice = 62;
else if(Number(document.order.cocon_numlic.value) >= 6)
coconprice = 122;
else if(Number(document.order.cocon_numlic.value) >= 2)
coconprice = 154;
price=Number(document.order.cocon_numlic.value)*coconprice;
document.order.cocon_totprice.value=price;
document.order.cocon_totdisc.value=Number(document.order.cocon_numlic.value)*200-price
}
else {
document.order.cocon_totprice.value=0;
document.order.cocon_totdisc.value=0;
}
if(document.order.cocup.checked) {
var cocupprice = 300
var coclicprice = 900
if(Number(document.order.cocup_numlic.value) >= 14)
cocupprice = 93;
else if(Number(document.order.cocup_numlic.value) >= 6)
cocupprice = 183;
else if(Number(document.order.cocup_numlic.value) >= 2)
cocupprice = 231;
if(Number(document.order.cocup_numlic.value) >= 14)
coclicprice = 279;
else if(Number(document.order.cocup_numlic.value) >= 6)
coclicprice = 549;
else if(Number(document.order.cocup_numlic.value) >= 2)
coclicprice = 693;
priceupd=Number(document.order.cocup_numlic.value)*cocupprice;
pricelic=Number(document.order.cocup_numlic.value)*coclicprice;
document.order.cocup_totprice.value=priceupd;
document.order.cocup_totlicprice.value=pricelic;
document.order.cocup_totdisc.value=Number(document.order.cocup_numlic.value)*300-priceupd+Number(document.order.cocup_numlic.value)*900-pricelic;
}
else {
document.order.cocup_totprice.value=0;
document.order.cocup_totlicprice.value=0;
document.order.cocup_totdisc.value=0;
}
if(document.order.sfg.checked) {
var sfgprice = 390;
if(Number(document.order.sfg_numlic.value) >= 14)
sfgprice = 120;
else if(Number(document.order.sfg_numlic.value) >= 6)
sfgprice = 237;
else if(Number(document.order.sfg_numlic.value) >= 2)
sfgprice = 300;
price=Number(document.order.sfg_numlic.value)*sfgprice;
document.order.sfg_totprice.value=price;
document.order.sfg_totdisc.value=Number(document.order.sfg_numlic.value)*390-price;
}
else {
document.order.sfg_totprice.value=0;
document.order.sfg_totdisc.value=0;
}
document.order.totalsubsum.value = Number(document.order.cocon_totprice.value) +
Number(document.order.cocup_totprice.value);
document.order.totallicsum.value = Number(document.order.cocup_totlicprice.value) +
Number(document.order.sfg_totprice.value);
document.order.totaldisc.value = Number(document.order.cocon_totdisc.value) +
Number(document.order.cocup_totdisc.value) +
Number(document.order.sfg_totdisc.value);
}
// End -->
</script>
<form action="http://server.apis.sk/regist/objedn_product.php" method="post" name="order" onsubmit="return fCompanyData(this)">
<table width="730" class="mainfont">
<tr>
<td height="25" width="20" bgcolor="#CCCCCC"> </td>
<td width="120" bgcolor="#CCCCCC"><b>Product</b></td>
<td width="60" bgcolor="#CCCCCC"><b>Number of licences</b></td>
<td width="120" bgcolor="#CCCCCC"><b>Price per licence (once)</b></td>
<td width="60" bgcolor="#CCCCCC"><b>Price per subscription (yearly)</b></td>
<td width="40" bgcolor="#CCCCCC"><b>Sum licence</b></td>
<td width="40" bgcolor="#CCCCCC"><b>Sum subscription</b></td>
<td width="60" bgcolor="#CCCCCC"><b>Quantity discount</b></td>
</tr>
<tr bgcolor="#FFF4E1">
<td><input name="cocup" type="checkbox" class="inputtext" onClick="recount();"></td>
<td>The Catalogue of Currencies Standard (intranet) + Monthly update</td>
<td><input name="cocup_numlic" type="text" size="1" class="inputtext" onChange="recount();"></td>
<td>1 ............................... € 900 2-5 ............................ € 693 6-13 .......................... € 549 14-35 ...................... € 279</td>
<td>1 ................. € 300 2-5 .............. € 231 6-13 ............ € 183 14-35 ............ € 93</td>
<td><input name="cocup_totlicprice" type="text" size="1" class="inputtext" onfocus="this.blur();"></td>
<td><input name="cocup_totprice" type="text" size="1" class="inputtext" onfocus="this.blur();"></td>
<td><input name="cocup_totdisc" type="text" size="1" class="inputtext" onfocus="this.blur();"></td>
</tr>
<tr>
<td><input name="cocon" type="checkbox" class="inputtext" onClick="recount();"></td>
<td>The Catalogue of Currencies Standard Online (internet) </td>
<td><input name="cocon_numlic" type="text" size="1" class="inputtext" onChange="recount();"></td>
<td></td>
<td>1 ..................... € 200 2-5 .............. € 154 6-13 ............ € 122 14-35 ............ € 62</td>
<td></td>
<td><input name="cocon_totprice" type="text" size="1" class="inputtext" onfocus="this.blur();"></td>
<td><input name="cocon_totdisc" type="text" size="1" class="inputtext" onfocus="this.blur();"></td>
</tr>
<tr bgcolor="#FFF4E1">
<td><input name="sfg" type="checkbox" class="inputtext" onClick="recount();"></td>
<td>The Security Features Guide</td>
<td><input name="sfg_numlic" type="text" size="1" class="inputtext" onChange="recount();"></td>
<td>1 ............................... € 390 2-5 ............................ € 300 6-13 .......................... € 237 14-35 .................. € 120</td>
<td></td>
<td><input name="sfg_totprice" type="text" size="1" class="inputtext" onfocus="this.blur();"></td>
<td></td>
<td><input name="sfg_totdisc" type="text" size="1" class="inputtext" onfocus="this.blur();"></td>
</tr>
<tr>
<td colspan="5" align="right"><b>Total</b></td>
<td><input name="totallicsum" type="text" size="1" onfocus="this.blur();"></td>
<td><input name="totalsubsum" type="text" size="1" onfocus="this.blur();"></td>
<td><input name="totaldisc" type="text" size="1" onfocus="this.blur();"></td>
</tr>
</table>
<para>All prices are excluding V.A.T. and freight. Payment upon receipt of our invoice, which will be issued in Euro.</para>
<blockquote>
<table width="374" class="mainfont">
<tr>
<td> </td>
<td></td>
</tr>
<tr>
<td colspan="2"><font color="#ff0000">* - required</font></td>
</tr>
<tr>
<td width="30%"><font color="#ff0000">*</font>Your Name:</td>
<td width="70%"><input name="o_name" class="inputtext" size="40" maxlength="40"></td>
</tr>
<tr>
<td><font color="#ff0000">*</font>Institution/Company:</td>
<td><input name="o_company" class="inputtext" size="40" maxlength="40"></td>
</tr>
<tr>
<td>Address:</td>
<td> <input name="o_address" class="inputtext" size="40" maxlength="40">
</td>
</tr>
<tr>
<td height="20">City:</td>
<td> <input name="o_city" class="inputtext" size="40" maxlength="40">
</td>
</tr>
<tr>
<td class="mainfont">Country:</td>
<td> <input name="o_state" class="inputtext" size="40" maxlength="40">
</td>
</tr>
<tr>
<td>ZIP:</td>
<td> <input name="o_zip" class="inputtext" size="15" maxlength="40">
</td>
</tr>
<tr>
<td width="30%"><font color="#ff0000">*</font>Phone:</td>
<td> <input name="o_phone" class="inputtext" size="40" maxlength="40"> </td>
</tr>
<tr>
<td>Fax:</td>
<td> <input name="o_fax" class="inputtext" size="40" maxlength="40"> </td>
</tr>
<tr>
<td><font color="#FF0000">*</font>E - mail:</td>
<td> <input name="o_email" class="inputtext" size="40" maxlength="40"> </td>
</tr>
<tr>
<td height="23" colspan="2" align="right"> <p>
<input name="order" type="hidden" id="service" value="cocstandard">
<input name="redirect_to" type="hidden" value="http://www.catalogueofcurrencies.com/order_standard_ok.html">
<input name="send" type="submit" class="inputbutton" value="Submit">
</p></td>
</tr>
</table>
</blockquote>
</form>
|