﻿
var PlayerWindow;
var p_win;
var p_win2;
function launchPOP(url,w,h,reg){
	if(reg == '' || reg == null){ reg = false; }
	if(p_win&& !p_win.closed){
		p_win.close();
		p_win= null;
	}

	if(navigator.appName.indexOf('Netscape') != -1){
		w += 0;
		h += 0;
	}

	l = 200;
	t = 200;
	properties  = 'width=' + w;
	properties += ',height=' + h;
	properties += ',scrollbars=0,toolbar=0,location=0';
	properties += ',directories=0,status=1,menubar=0';
	properties += ',resizable=1';
	properties += ',top=' + t;
	properties += ',left=' + l;

	p_win= window.open(url,"pop",properties);

	if(navigator.appName.indexOf('Netscape') != -1){
		p_win.resizeTo(w,h);
	} else {
		p_win.resizeTo(w+12,h+30);
	}
	
}

