/*function isInteger(i){
	var k, l, m;
	if(!i.length) return false;
	if(!isNaN(Number(i))){
		return true;
	}
	return false;
}
*/

function isInteger(strValue){
	if(typeof(parseInt(strValue))=='number'){
		if(String(Math.round(strValue))==String(strValue))return true;
		else return false;
	}else return false;
}


function integer_onkeypress(){
	switch (String.fromCharCode(window.event.keyCode)) {
		case '0':;case '1':;case '2':;case '3':;case '4':;case '5':; case '6':;case '7':;case '8':;case '9': return true;
		default : event.returnValue = false;
    };
}


