function Total() {
        
var q, i, ordertotal;
        
ordertotal = 5;
        
nitems = 3
        
for (i=1; i<nitems+1; i++) {
                
eval("document.orderform.ID" + i + "Total.value = '';");
                
eval("q = document.orderform.ID" + i + "Qty.value;");
                
if (q) {
                        
eval("total=document.orderform.ID" + i + "Fee.value * document.orderform.ID" + i + "Qty.value;");


eval("document.orderform.ID" + i + "Total.value=Currency(total)");
                        

eval("ordertotal = ordertotal + total;");
                
}
        

}
        

document.orderform.OrderTotal.value = Currency(ordertotal);


}



function Currency(anynum) {
        
//returns number as string in $xxx,xxx.xx format.
        
anynum = "" + eval(anynum)  
//evaluate (in case an expression sent)
        
        
return "$"+anynum
}






function checkform ( orderform ){

 
if (orderform.name.value == "") {
    
alert( "Please enter your name." );
    
orderform.name.focus();
    
return false ;
  }



if (orderform.address.value == "") {
    
alert( "Please enter your address." );
   
orderform.address.focus();
    
return false ;
  }

 
 
if (orderform.email.value == "") {
    
alert( "Please enter your email address." );
    
orderform.email.focus();
    
return false ;
  
}

  

return true ;

}