	function isnum(value, num, event) {
		
		var evt = event || window.event;
		if(evt.keyCode==16){
			alert('Shift is not a integer !');
		}
		if(evt.keyCode==39|evt.keyCode==37|evt.keyCode==9|evt.keyCode==8){
			return true;
		}
		if((evt.keyCode>=96&&evt.keyCode<=105)|(evt.keyCode>=48&&evt.keyCode<=57)|evt.keyCode==46|evt.keyCode==110|evt.keyCode==190){
			
			if(num==0){
				if(evt.keyCode==110|evt.keyCode==190){
					return false;
				}else{
					return true;
				}
			}
			else{
				if(value.indexOf('.')!=-1){
					if(evt.keyCode==110|evt.keyCode==190){
						return false;
					}
					value=value.substring(value.indexOf('.')+1);
					if(num==1){
						if(value.length<4){
							return true;
						}else{
							return false;
						}
					}
					if(num==2){
						if(value.length<2){
							return true;
						}else{
							return false;
						}
					}
				}else{
					return true;
				}
			}
		}
		return false;
	}
