
  function popUpVWindow(url, windowName, width, height, video) {
    var winprops = '';
	var rSize = 'no';
	
	var sBars = 'yes';	
	
	if (video) {sBars='no'}	
	
    if (screen.height < height - 10) {
	  height = screen.height -10;
	  rSize = 'yes'
	  sBars = 'yes';
    }
	
	
    if (screen.width < width - 10) {
	  width = screen.width - 10;
	  rSize = 'yes'
	  sBars = 'yes';
    }
	  
    var wLeft = (screen.width - width) / 2;
    var wTop = (screen.height - height) / 2;
	
	winprops = 'width=' + width +
	           ',height=' + height +  
	           ',left=' + wLeft +  
	           ',top=' + wTop +   
	           ',scrollbars=' + sBars + 
	           ',toolbars=no' + 
	           ',resizable=' + rSize + 
	           ',location=no' + 
	           ',menubars=no';
  
    window.open(url,windowName,winprops);
  
  }