function popupWindow(url,width,height){
	// set the width and height of the playlist popup window to be created
	popupWidth = width;
	popupHeight = height;
	popupURL = url;
	// attempt to determine the width and height of the user's current window - default to 800x600
	windowWidth = 800;
	windowHeight = 600;
	try {
		if (self.innerWidth) {
			windowWidth = self.innerWidth;
			windowHeight = self.innerHeight;
		} else if (parent.document.documentElement && parent.document.documentElement.CLIENTWidth) {
			windowWidth = parent.document.documentElement.CLIENTWidth;
			windowHeight = parent.document.documentElement.CLIENTHeight;
		} else if (document.documentElement && document.documentElement.CLIENTWidth) {
			windowWidth = document.documentElement.CLIENTWidth;
			windowHeight = document.documentElement.CLIENTHeight;
		} else if (parent.document.body) {
			windowWidth = parent.document.body.CLIENTWidth;
			windowHeight = parent.document.body.CLIENTHeight;
		} else if (document.body) {
			windowWidth = document.body.CLIENTWidth;
			windowHeight = document.body.CLIENTHeight;
		}
	} catch(err) {
		windowWidth = 800;
		windowHeight = 600;
	}

	// determine the position of our popup window based on the current window size
	popupLeft = (windowWidth/2)-(popupWidth/2);
	popupTop = (windowHeight/2)-(popupHeight/2);

	myUrl = popupURL;
	myTarget = "refPopupWindow";
	myArgs = 'width='+popupWidth+',height='+popupHeight+',location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0,hotkeys=0,top='+popupTop+',left='+popupLeft;
	refPopupWindow = window.open( myUrl, myTarget, myArgs );
	if (refPopupWindow) {
		refPopupWindow.focus();
	}
	else {
		alert("Please disable your PopUp-Blocker, and try and launch window again.");
	}
	
}

