// JavaScript Document

function MyOpenWindow(theURL,winName,features) 
{ 
  window.open(theURL,winName,'width=800,height=600');
}


var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'NDWines','height=800,width=600');
	if (window.focus) {newwindow.focus()}
}



  
var popUpWin=0;

function popUpWindow(URLStr, strTitle, left, top, width, height)

{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
	
	var features;

	features = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'';
	popUpWin = open(URLStr,strTitle,features);
}


function OpenLink (URLStr) {
	window.location=URLStr
	
}



