var PlayerWindow;
var p_win;

function start_passwordservice() {

	launchPOP('login_password.asp?USERNAME='+LOGINFORM.USERNAME.value ,500,320);
}

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 += 15;
		h += 15;
	}
	l = 100;
	t = 100;
	properties  = 'width=' + w;
	properties += ',height=' + h;
properties += ',scrollbars=0,toolbar=0,location=0';
	properties += ',directories=0,status=0,menubar=0';
	properties += ',resizable=1';
	properties += ',top=' + t;
	properties += ',left=' + l;

	p_win= window.open(url,"tillplayer",properties);

	if(navigator.appName.indexOf('Netscape') != -1){
		p_win.resizeTo(w,h);
	} else {
		p_win.resizeTo(w+12,h+30);
	}
	p_win.focus();
}



function launchPOP2(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 += 15;
		h += 15;
	}
	l = 100;
	t = 100;
	properties  = 'width=' + w;
	properties += ',height=' + h;
properties += ',scrollbars=0,toolbar=0,location=0';
	properties += ',directories=0,status=0,menubar=0';
	properties += ',resizable=1';
	properties += ',top=' + t;
	properties += ',left=' + l;

	p_win= window.open(url,"tillplayer",properties);

	if(navigator.appName.indexOf('Netscape') != -1){
		p_win.resizeTo(w,h);
	} else {
		p_win.resizeTo(w+12,h+30);
	}
	p_win.focus();
}


function launchNEWSPOP(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 += 15;
		h += 15;
	}
	l = 100;
	t = 100;
	
	l= (screen.availWidth / 2) - (w / 2);
	t= (screen.availHeight / 2) - (h / 2);
	
	properties  = 'width=' + w;
	properties += ',height=' + h;
properties += ',scrollbars=1,toolbar=!,location=1';
	properties += ',directories=1,status=1,menubar=1';
	properties += ',resizable=1';
	properties += ',top=' + t;
	properties += ',left=' + l;

	p_win= window.open(url,"tillplayer",properties);

	if(navigator.appName.indexOf('Netscape') != -1){
		p_win.resizeTo(w,h);
	} else {
		p_win.resizeTo(w+12,h+30);
	}
	
}
