function getElement(obj){
	return document.getElementById(obj);
}

function setDisplay(obj, property) {
	return document.getElementById(obj).style.display = property;
}

function setAreasHeight(){
	body_height = document.body.clientHeight;
	header_height = getObjectHeight("header");
	footer_height = getObjectHeight("footer");
	minus_sum = header_height + footer_height + 1
	areas_height = body_height - minus_sum;
	getElement("areas").style.height = eval(areas_height) + "px";
}

function changeFormAction() {
	getElement("topservices_form").action = getElement("topservices_select").options[getElement("topservices_select").selectedIndex].value;
}

function DocumentInit(){
	setAreasHeight();
}

if (window.addEventListener) {
	window.addEventListener("load",DocumentInit,false);
	window.addEventListener("resize",DocumentInit,false);
}
else if (window.attachEvent) {
	window.attachEvent("onload",DocumentInit);
	window.attachEvent("onresize",DocumentInit);
}
