////////////////////////////////////////////////////////////////////////////////////////////////////////////
function openWindow (windowType, windowURL) {
	var jsString;
	var thisLeft, thisTop, thisWidth, thisHeight, thisOther, thisOtherFeatures, thisName;

	switch (windowType) {
	case "link":
		thisLeft=30;
		thisTop=30;
		thisWidth=620;
		thisHeight=500;
		thisOtherFeatures="scrollbars=auto,resizable=yes";
		thisName = "Link";
		break;
	case "newsletter":
		thisLeft=30;
		thisTop=30;
		thisWidth=366;
		thisHeight=550;
		thisOtherFeatures="scrollbars=yes, resizable=no";
		thisName = "Newsletter";
		break;
	case "upload":
		thisLeft=30;
		thisTop=30;
		thisWidth=350;
		thisHeight=360;
		thisOtherFeatures="status,scrollbars=no,resizable=no";
		thisName = "Upload";
		break;
	case "mailsent":
		thisLeft=30;
		thisTop=30;
		thisWidth=350;
		thisHeight=500;
		thisOtherFeatures="scrollbars=yes,resizable=yes";
		thisName = "Notification";
		break;
	default:
		thisLeft=0;
		thisTop=0;
		thisWidth=800;
		thisHeight=600;
		thisOtherFeatures="scrollbars=auto,resizable=yes";
		thisName = "www.ebbtide.co.uk";
	}
	thisFeatures = "left=" + thisLeft;
	thisFeatures += ",top=" + thisTop;
	thisFeatures += ",width=" + thisWidth;
	thisFeatures += ",height=" + thisHeight;
	thisFeatures += "," + thisOtherFeatures;

	jsString = "window.open('" + windowURL + "', '" + thisName + "', '" + thisFeatures + "');";
	//alert("URL: " + windowURL + "\nName: " + thisName + "\nFeatures: " + thisFeatures);
	//alert(jsString);
	eval(jsString);
	void(0);
}

