<script language="javascript">
function a(){
var a = 0;
if(parseInt(document.all.aa.value)%parseInt(document.all.bb.value) > 0) {
a = parseInt(parseInt(document.all.aa.value)/parseInt(document.all.bb.value)) + 1;
}else{
    a = parseInt(parseInt(document.all.aa.value)/parseInt(document.all.bb.value)) ;}alert(a);}
</script>
<body >
<input type="text" name="aa" value="56">
<input type="text" name="bb" value="12">
<button onclick="a()">
</body>