function fadeOut(obj) {
	obj.className = "tr3";
}

function fadeIn(obj) {
	obj.className = obj.attributes.oclass.nodeValue;
}

function openCenter(id) {
	window.location.href="index.php?action=center&location=" + id;
}

function openBrWindow(theURL,winName,features) { 
	var street = document.getElementById("street").value;
	var places = document.getElementById("places").value;
	var from = street + "," + places;
	var address = document.getElementById("ad").value;
	var place = document.getElementById("pl").value;
	var to = address + "," + place;
	
  	window.open(theURL + "?from=" + from + "&to=" + to,winName,features);
}
function openBox(field) {
	if(document.getElementById(field).style.display == "none") {
		document.getElementById(field).style.display = "block";	
	} else {
		document.getElementById(field).style.display = "none";	
	}
}
function closeBox(id) {
	document.getElementById(id).style.display = "none";
}
