﻿// Common site fuctions

function CheckInteger(textFieldName)
{
	var texBox = document.getElementById(textFieldName);

	if(texBox.value.length != 0 && texBox.value != "0" && !parseInt(texBox.value))
	{
		alert("Введёное значение должно быть числовым.");

		texBox.focus();
		texBox.select();

		return false;
	}

	return true;
}

