function SetFocus(webFormsObjId)
{
	var obj = document.getElementById(webFormsObjId);

	if (obj) obj.focus();
}

function checkFinanciallyLocked(financiallyLocked, message) 
{
	var locked = document.getElementById(financiallyLocked);

	if (locked != null)
	{
		if (locked.value == "1") 
		{
			alert(message);
			return false;
		}
	}
	return true;
}

if (ImmoEdit_RequiredCount == null) { var ImmoEdit_RequiredCount = 0; }

if (ImmoEdit_Required == null) { var ImmoEdit_Required = new Array(); }

function ImmoEdit_AddRequired(id, type, mandatory)
{
	var arr = new Array();
	arr[0] = id;
	arr[1] = type;
	arr[2] = mandatory;		
	ImmoEdit_Required[ImmoEdit_RequiredCount] = arr;
	ImmoEdit_RequiredCount++;
}

