function newiCommerceWindow() {
	var resize = ',resizable';
	var titlebar = '';
	var wvalue = screen.width - 7;
	var hvalue = screen.height - 142;
	var theURL = "https://cms.gtp-icommerce.com.au/whichCMS.php";
	
	if (navigator.appName == 'Netscape') {	
		if (screen.height >= 600) {
			wvalue = screen.width - 10;
			hvalue = screen.height - 117;
		} else {
			wvalue = screen.width - 17;
			hvalue = screen.height - 127;
		}		
		titlebar = ',titlebar=1'; 
	} else {
		resize = ',resizable';
	}
	newWindow = window.open(theURL,'iCommerce', 'top=0,left=0,scrollbars=yes,status=yes,width=' + wvalue + ',height=' + hvalue + resize + titlebar + ',hotkeys=0,toolbar=yes');

	if (!newWindow) {
		self.location.href=theURL;
	} else {
		newWindow.focus();
	}
 return true;
}


function getStats() {
	var OK = true;
	var theLink = window.prompt('Please enter the address of your website...');
	theLink = theLink.toLowerCase();
	theLink = theLink.replace(/\"/gi,"");
	theLink = theLink.replace(/'/gi,"");
	theLink = theLink.replace(/ /gi,"");
	if (theLink.indexOf("http://") != -1) theLink = theLink.substring(theLink.indexOf("http://")+7);
	if (theLink.indexOf("https://") != -1) theLink = theLink.substring(theLink.indexOf("https://")+8);
	theLink = theLink.replace(/\//gi,"");
	if (theLink.indexOf(".") == -1) OK = false;

	if (OK==false) {
		alert("Sorry, \""+theLink+"\" does not appear to be a valid address. Please try again.");
	} else {
		self.location.href = "http://hosting.gtp.com.au/cgi-bin/awstats.pl?config="+theLink;
	}
}