function Degree(Url,Degree)
{
	var
		$http,
		$self = arguments.callee;

  if (window.XMLHttpRequest) {
		$http = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		try {
			$http = new ActiveXObject('Msxml2.XMLHTTP');
		} catch(e) {
			$http = new ActiveXObject('Microsoft.XMLHTTP');
		}
	}

	if ($http) {
		$http.onreadystatechange = function()
		{
			if (/4|^complete$/.test($http.readyState)) {
				document.getElementById('Weather').innerHTML = $http.responseText;
			}
		};
		$http.open('GET', Url + 'tools/weather.php?Deg=' + Degree, true);
		$http.send(null);
	}
}

function Calendar(Url,Year,Month)
{
	var
		$http,
		$self = arguments.callee;

  if (window.XMLHttpRequest) {
		$http = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		try {
			$http = new ActiveXObject('Msxml2.XMLHTTP');
		} catch(e) {
			$http = new ActiveXObject('Microsoft.XMLHTTP');
		}
	}

	if ($http) {
		$http.onreadystatechange = function()
		{
			if (/4|^complete$/.test($http.readyState)) {
				document.getElementById('Calendar').innerHTML = $http.responseText;
			}
		};
		$http.open('GET', Url + 'calendar.php?year=' + Year + '&month=' + Month, true);
		$http.send(null);
	}
}

function addbookmark(bookmarkurl)
{ 
  var bookmarktitle="Prague Stag Weekend"
  if (document.all) 
    window.external.AddFavorite(bookmarkurl,bookmarktitle); 
} 

function openBrWindow(theURL,winName,features)
{ 
  window.open(theURL,winName,features);
}

