function openWindow(target,w,h) {
	user_input = target
	
	
	//user_input = document.PlayThis.path.options[document.PlayThis.path.selectedIndex].value
	

	//if (user_input == 'none')
	//{
		// something is wrong
	//	alert('Please select a media format');
	//	return false;
	//}
	
	is_gtv = false;
	
	if (user_input.substring(0,19) == "http://gtv.esri.com")
	{
		is_gtv = true;
	}

	if (user_input.substring(0,5) == 'flash' || is_gtv) {		// support large flashMX presentations
		//popupWin = window.open(target, 'one', 'scrollbars=no,resizable=no,width=820,height=600');
		if (arguments.length == 3 && w >= 0 && h >= 0) 
			if (is_gtv)
			{
				popupWin = window.open(target, 'one', 'scrollbars=yes,resizable=yes,width='+w+',height='+h);
			}
			else
			{
				popupWin = window.open(target, 'one', 'scrollbars=no,resizable=no,width='+w+',height='+h);
			}
	  	else
			popupWin = window.open(target, 'one', 'scrollbars=no,resizable=no,width=640,height=480');
	}
	else	// standard size
		popupWin = window.open(target, 'one', 'scrollbars=no,resizable=no,width=858,height=650');
}
	
function changePopUpSize(theForm) {
		var id = theForm.path.options[theForm.path.selectedIndex].id;

		if ( id != "" ) {
			theForm.FlashWidth.value = eval('theForm.FlashWidth_' + id + '.value');
			theForm.FlashHeight.value = eval('theForm.FlashHeight_' + id + '.value');
		}
}
