function clearValue(fid)
{
if (fid.defaultValue==fid.value)
fid.value = "";
}

function defValue(fid)
{
if (fid.value=="")
fid.value = fid.defaultValue;
}

function numericInput(e) {
var unicode=e.charCode? e.charCode : e.keyCode;
if (unicode!=8 && unicode!=46 && unicode!=45){ //if the key isn't the backspace key or "dot" (which we should allow) 
if (unicode<48||unicode>57) return false;//if not a number return false //disable key press 
}
}
