function vidPlaybackPopUp(id,wh,ww,wpx,wpy) {
	//id = video publish id
	//wh = window height
	//ww = window width
	//wpx = window padding width
	//wpy = window padding height
	
	var locationHref = document.location.toString();
	
	var serverHost = "http://www.dartmouth-hitchcock.org";
	
	url = serverHost + "/apps/vidPlayback/vidPlaybackPopUp.cfm?ID="+id+"&rURL="+escape(locationHref);
	
// set the height and width of the window to be opened
	var myHeight = parseInt(wh) + parseInt(wpy);
	var myWidth = parseInt(ww) + parseInt(wpx);	

// puts the screen in the middle of the page
	//x = parseInt(window.screen.width) / 2 - (myWidth / 2);  // exact half of the width of the pop-up
	//y = parseInt(window.screen.height) / 2 - (myHeight / 2);  // exact half of the height of the pop-up
	x = 0; //Place all the way to the left
	y = 0; //Place all the way up top
	var mine = window.open(url,'vidPlayback','width=' + myWidth + ',height=' + myHeight + ',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no,left=' + x + ',top=' + y); 
	
	if(!mine){
		alert('We have detected that you are using popup blocking software.\nPlease disable your popup blocker to view this video.');
	}
}

