function IsItInt(objMainChecked) {
	// Example using IsItInt(document.formname.objname) in html tage
	//<form name=frm>
	//<input name=txt onchange="if (!(IsPos(document.frm.txt))) alert("ENTER pos only")">
	//</form>
	var i;
	var blnInteger;
	blnInteger = true;
	var SCP;	//intStartedCheckingPosition
	if (objMainChecked.value != "") {
		if (isNaN(parseInt(objMainChecked.value))) {
			blnInteger = false;
		}
		else {
			for (i = 0; i < objMainChecked.value.length; i++) {
				if (!(isNaN(parseInt(objMainChecked.value.substring(i, i + 1)))))	{
					SCP = i + 1 ;
					break;
				}
			}

			for (i = (SCP - 1); i < objMainChecked.value.length; i++) {
				if (isNaN(parseInt(objMainChecked.value.substring(i, i + 1))))	{
					blnInteger = false;			
				}
			}		
		}
	}
	else {
		blnInteger = false;		
	}
	//if (blnInteger) alert("INTEGER"); else alert("NO INTEGER");
	return blnInteger;
}

function IsItPosInt(objMainChecked) {
	var blnPositive;
	blnPositive = false;
	if (IsItInt(objMainChecked)) {
		if (parseInt(objMainChecked.value) > 0) {
			blnPositive = true;
		}
	}
	//if (blnPositive) alert("POSITIVE"); else alert("NO POSITIVE");
	return blnPositive;
}

function IsItNegInt(objMainChecked) {
	var blnNegative;
	blnNegative = false;
	if (IsItInt(objMainChecked)) {
		if (parseInt(objMainChecked.value) < 0) {
			blnNegative = true;
		}
	}
	//if (blnNegative) alert("NEGATIVE"); else alert("NO NEGATIVE");
	return blnNegative;
}
