var popwin = null;
var popwinEx = null;
var popwinFlash = null;

function openpopwinEx(url,wname,extra) 
{
	if (wname=='') wname='nyt';
	

	if ((popwinEx == null) || (popwinEx.closed)) {
		popwinEx=window.open(url,wname,extra);
	}
	else {
		popwinEx.focus();
		popwinEx.document.location = url;
	}

}



function openpopwin(url,w,h) {

	if ((popwin == null) || (popwin.closed)) {
		popwin=window.open(url,'ny','toolbar=no,copyhistory=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + w + ',height=' + h);
	}
	else {
		popwin.focus();
		popwin.document.location = url;
	}
}

function flashopenpopwin(url,winName,w,h) {
if (winName=='') winName='Flash';
if ((popwinFlash == null) || (popwinFlash.closed)){
	popwinFlash=window.open(url,''+winName,'toolbar=no,copyhistory=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h);
		}
	else {
		popwinFlash.focus();
		popwinFlash.document.location = url;
	}
}
