
//To check whether the Textbox control is blank or not
function LibIsInputFilled(strControl)
{
	
	if(strControl.value=="")
	{
		return false;
	}
	else
	{
		return true;
	}
	
}

//To check whether the value entered in Textbox control is valid integer or not
function LibIsValidInteger(strControl)
{
	/*if((isNaN(strControl.value))||(strControl.value.indexOf(".")!=-1))
	{
		return false;
	}
	else
	{
		return true;
	}*/
	
	var str = strControl.value
	//[^0-9] will match for strings other than 0 to 9.
	//^ symbol is used for Specifying not condition
	var filter=/[^0-9]/  
	if (filter.test(str)==true)
	{
		return false;
	}
	else
	{
		return true;
	}
}

function LibInputError(strControl,strMessage)
{
	alert(strMessage);
	strControl.focus();
	strControl.select();
}






			





