function MakeObfuscatedLink(address) {
	address += "&#64;";
	address += "&#99;&#104;&#97;&#114;&#108;&#101;&#115;&#45;&#99;&#104;&#97;&#110;&#100;&#108;&#101;&#114;";
	address += ".";
	address += "&#111;&#114;&#103;";
	var url = "&#109;&#97;&#105;&#108;&#116;&#111;&#58;" + address;
	document.write("\<a href=" + url + "\>" + address + "\<\/a\>");
}


function GetCookie(isName) {
	var cookieStr = document.cookie;
	var startSlice = cookieStr.indexOf(isName + '=');
	if (startSlice == -1) { return false }
	var endSlice = cookieStr.indexOf(';', startSlice + 1)
	if (endSlice == -1) { endSlice = cookieStr.length }
	var isData = cookieStr.substring(startSlice, endSlice)
	var isValue = isData.substring(isData.indexOf('=') + 1, isData.length);
	return isValue;
}


function WindowOpen(url, theWidth, theHeight) {
	/*
	status      The status bar at the bottom of the window.
	toolbar     The standard browser toolbar, with buttons such as Back and Forward.
	location    The Location entry field where you enter the URL.
	menubar     The menu bar of the window
	directories The standard browser directory buttons, such as What's New and What's Cool
	resizable   Allow/Disallow the user to resize the window.
	scrollbars  Enable the scrollbars if the document is bigger than the window
	height      Specifies the height of the window in pixels. (example: height='350')
	width       Specifies the width of the window in pixels.
	*/

	var left = (GetCookie('QDL_windowWidth') / 2) - (theWidth / 2);
	var top = (GetCookie('QDL_windowHeight') / 2) - (theHeight / 2);
	var options = 
		'left='   + left      + ',' +
		'top='    + top       + ',' +
		'width='  + theWidth  + ',' +
		'height=' + theHeight + ',' +
		'status=no,'      +
		'resizable=yes,'  +
		'toolbar=no,'     +
		'location=no,'    +
		'menubar=no,'     +
		'directories=no,' +
		'scrollbars=yes';

	var windowName = 'w' + new Date().getTime();
	var childWindow = window.open(url, windowName, options);
	return childWindow;
}

