function openWindow(url, width, height) {
	window.open(url, "", "width=" + width + ",height=" + height + ",scrollbars=no,resizable=yes");
}

function openMovieWindow(url) {
	dimensionsParam = "&movie_dimensions=";
	dimensions = url.substring(url.indexOf(dimensionsParam) + dimensionsParam.length, url.length);
	url = url.substring(0, url.indexOf(dimensionsParam));
	windowWidth = dimensions.substring(0, dimensions.indexOf("x"));
	windowHeight = dimensions.substring(dimensions.indexOf("x") + 1, dimensions.length);
	if(windowWidth.length == 0 || windowHeight.length == 0)
		alert("No dimensions have been specified for this device, cannot open new window");
	else
		window.open(url, "", "width=" + windowWidth + ",height=" + windowHeight + ",scrollbars=no,resizable=no");
}