Bilis Padala
The most trustworthy shipping company in the world that originates in the Philippines.
Please provide the sender's information:
Name:
Address:
Contact Number:
Please provide the recipient's information:
Name:
Address:
Contact Number:
Please choose a country:
Please choose description:
Please input weight of package in kilograms:
kg
function compute()
{
var count=document.getElementById("country");
var desc=document.getElementById("desc");
var wt=document.getElementById("wt");
var amt;
var sname=document.getElementById("sname");
var sadd=document.getElementById("sadd");
var scon=document.getElementById("scon");
var rname=document.getElementById("rname");
var radd=document.getElementById("radd");
var rcon=document.getElementById("rcon");
if(sname.value=='')
{
alert("Sender's name must be included");
}
if(sadd.value=='')
{
alert("Sender's address must be included");
}
if(scon.value=='')
{
alert("Sender's contact number must be included");
}
if(rname.value=='')
{
alert("Recievers name must be included");
}
if(radd.value=='')
{
alert("Recievers address must be included");
}
if(rcon.value=='')
{
alert("Recievers contact number must be included");
}
if(wt.value=='')
{
alert("Please input The weight");
}
switch(desc.selectedIndex)
{
case 0:
amt=100;break;
case 1:
amt=200;break;
case 2:
amt=150;break;
default:
amt=50;break;
}
switch(count.selectedIndex)
{
case 0:
amt=parseFloat(wt.value)*5+amt;
break;
case 1:
amt=parseFloat(wt.value)*10+amt;
break;
default:
amt=parseFloat(wt.value)*12+amt;
break;
}
alert("Shipment charge is " +amt);
}
function summary()
{
var sname=document.getElementById("sname");
var sadd=document.getElementById("sadd");
var scon=document.getElementById("scon");
var rname=document.getElementById("rname");
var radd=document.getElementById("radd");
var rcon=document.getElementById("rcon");
var wt=document.getElementById("wt");
if(sname.value=='')
{
alert("Sender's name must be included");
}
if(sadd.value=='')
{
alert("Sender's address must be included");
}
if(scon.value=='')
{
alert("Sender's contact number must be included");
}
if(rname.value=='')
{
alert("Receivers name must be included");
}
if(radd.value=='')
{
alert("Receivers address must be included");
}
if(rcon.value=='')
{
alert("Receivers contact number must be included");
}
if(wt.value=='')
{
alert("Please input The weight");
}
document.write("");
document.write("Bilis Padala
");
document.write("Sender's Name:"+sname.value+'
');
document.write("Sender's Address:");
document.write(sadd.value+'
');
document.write("Sender's Contact Number:");
document.write(scon.value+'
');
document.write("Receiver's Name:");
document.write(rname.value+'
');
document.write("Receiver's Address:");
document.write(radd.value+'
');
document.write("Receiver's Contact Number:");
document.write(rcon.value+'
');
}
Tuesday, March 16, 2010
Webprog RICHARD ANTHONY MARX BAUTISTA
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment