function isInteger(value) 
{
	return (parseInt(value) == value);
}
function isNumeric(val)
{
return(parseFloat(val,10)==(val*1));
}
/* Check for integer */
function checkInt(obj)
{
	var input = obj;
	if(input.value.length >= 1 && (!isInteger(input.value))) {			
		input.value="";
	}
}
/* Check for float*/
function checkFloat(obj)
{
	var input = obj;
	if(input.value.length >= 1 && (!isNumeric(input.value))) {			
		input.value="";
	}
}
