﻿function MM_openBrWindow(theURL,winName,features) { //v2.0mod
  newwindow=window.open(theURL,winName,features);
  if (!newwindow.opener) newwindow.opener = self;
}


function popWindow(url, width, height)
{
	var h=height;
	var w=width;
	
	if (h==null) h=300;
	if (w==null) w=500;
	
	var l = Math.ceil( (window.screen.width  - w) / 2 );
	var t = Math.ceil( (window.screen.height - h) / 2 );
	
	var val= window.open(url, "_blank", "top="+t+", left="+l+", width="+w+", height="+h+", status=no, toolbar=no, titlebar=no, menubar=no, location=no, resizable=yes, border=0, scrollbars=yes");

}


function openWindow(url, height, width, resize, sbars)
{
	var h=height;
	var w=width;
	
	if (h==null) h=300;
	if (w==null) w=500;
	
	if (resize!=null){
		var r = (resize==true) ? "yes" : "no"}
	else{
		r = "yes";
	}

	if (sbars!=null){
		if (sbars=="yes") {
                                var s = "yes"
                                } else if (sbars=="no") {
                                var s = "no"
                                }
	}else{
		s = "no";
	}
	var l = Math.ceil( (window.screen.width  - w) / 2 );
	var t = Math.ceil( (window.screen.height - h) / 2 );
	
	var val= window.open(url, "_blank", "top="+t+", left="+l+", width="+w+", height="+h+", status=no, toolbar=no, titlebar=no, menubar=no, location=no, resizable="+r+", border=0, scrollbars="+s);

}

function openVidStreamWin(vidpathname,w,h) {
window.open (vidpathname, 'newWin', 'scrollbars=no,status=no,width='+w+',height='+h+'')
}

