function noAlpha(obj){
   var reg = /[^0-9.]/g;
   obj.value =  obj.value.replace(reg,"");
}

function intOnly(obj){
   var reg = /[^0-9]/g;
   obj.value =  obj.value.replace(reg,"");
}

function currencyFormat(obj){

   noAlpha(obj);
   
   var num = 1*obj.value;
   obj.value = num.toFixed(2);

   refigureTotal();
}

function maxlength(obj,mlength){
if (obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}
