function tracking(url)
{
	var track_win = window.open(url, 'tracking', 'width=600,height=600');
}

function loadElement(fragment_url, element_id, pass_data)
{ 
	var xmlhttp;
	var element = document.getElementById(element_id); 

	element.innerHTML = ''; 

	if (window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e) {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	} else
		xmlhttp = false;

	if (xmlhttp) {
		if (pass_data == "")
			xmlhttp.open("GET", fragment_url); 
		else
			xmlhttp.open("POST", fragment_url); 

		xmlhttp.onreadystatechange = function() { 
			if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 
				element.innerHTML = xmlhttp.responseText; 
			} 
		} 

		xmlhttp.send(pass_data); 
	}
	else
		element.innerHTML = 'n/a';
}

function setCookie(name, value, expires, path, domain, secure)
{
	var curCookie = name + "=" + escape(value) +
		((expires) ? "; expires=" + expires.toGMTString() : "") +
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "") +
		((secure) ? "; secure" : "");

	document.cookie = curCookie;
}

function deleteCookie(name, path, domain)
{
	document.cookie = name + "=" +
		 ((path) ? "; path=" + path : "") +
		 ((domain) ? "; domain=" + domain : "") +
		 "; expires = Thu, 01-Jan-70 00:00:01 GMT";
}



