function padzeros(xvalue, xlength) 
{
	//xlength, the total length of the item
	//xvalue, the string entered by the user
	if (!isNaN(xvalue))
	{
		var xvalue_length = xvalue.length;
		if (xvalue_length < xlength)
		{
		for (var i=xvalue_length; i<xlength; i++) 
			{
			xvalue = "0" + xvalue;
			}
		}	
	}
	return xvalue;
}