sorry, i had a syntax error, this line:
document.calcform.subtotal.value = ciel(dp(eval(document.calcform.quantity1.value) / (document.calcform.select1.value)))
should be:
document.calcform.subtotal.value = Math.ceil(dp(eval(document.calcform.quantity1.value) / (document.calcform.select1.value)))