function Block(pBlockNode)
{
	this.fromHour = parseInt(pBlockNode.attributes.getNamedItem("FROMHR").value);
	this.toHour = parseInt(pBlockNode.attributes.getNamedItem("TOHR").value);
	if (pBlockNode.attributes.getNamedItem("SPAN") != null)
	{
		this.span = parseInt(pBlockNode.attributes.getNamedItem("SPAN").value);
	}
	else
	{
		this.span = 1;
	}
	if (pBlockNode.attributes.getNamedItem("DESCRIPTION") != null)
	{
		this.description = pBlockNode.attributes.getNamedItem("DESCRIPTION").value;
	}
	else
	{
		this.description = "";
	}
	this.allow = pBlockNode.attributes.getNamedItem("ALLOW").value;
	this.status = pBlockNode.attributes.getNamedItem("STATUS").value;
	if (this.status == 0) //Red
	{
		this.Cross = "";
		this.BGColor = statusColors[COLOR_RED];
		this.OnClick = "toggle(event)";
		this.OnMouseOver = "";
		this.span = 1;
	}
	else if (this.status == 1) //Red Cross
	{
		this.Cross = "X";
		this.BGColor = statusColors[COLOR_RED];
		this.OnClick = "";
		if (this.description.length > 0)
		{
			this.OnMouseOver = "showDescription(event, '" + this.description + "')";
		}
		else
		{
			this.OnMouseOver = "";
		}
	}
	else if (this.status == 2) //Green
	{
		this.Cross = "";
		this.BGColor = statusColors[COLOR_GREEN];
		this.OnClick = "toggle(event)";
		this.OnMouseOver = "";
		this.span = 1;
	}
	else if (this.status == 3) //Green Cross
	{
		this.Cross = "X";
		this.BGColor = statusColors[COLOR_GREEN];
		this.OnClick = "toggle(event)";
		this.OnMouseOver = "";
		this.span = 1;
	}
}
