
// Copyright (c) 2000 internet.com Corp. 
// http://www.webreference.com/js/
// License is granted if and only if this entire
// copyright notice is included. By Tomer Shiran.

function launch(newURL, newName, newFeatures, orgName) {
  var remote = open(newURL, newName, newFeatures);
  if (remote.opener == null)
    remote.opener = window;
  remote.opener.name = orgName;
  return remote;
}

function launchRemote() {
	if (getCookie("musicopen") != "1") {
		var MSIE=navigator.userAgent.indexOf("MSIE");
		var NETS=navigator.userAgent.indexOf("Netscape");
		var OPER=navigator.userAgent.indexOf("Opera");
			myRemote = window.open("/music.htm",
			                  "musicwindow",
			                  "top=10,screenx=10,left=320,screeny=320,width=100,height=100,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no",
			                  "myWindow");
			setCookie("musicopen","1",null,null,null,null);
	}
}

function playMusic() {
		var MSIE=navigator.userAgent.indexOf("MSIE");
		var NETS=navigator.userAgent.indexOf("Netscape");
		var OPER=navigator.userAgent.indexOf("Opera");
			myRemote = window.open("/music.htm",
			                  "musicwindow",
			                  "top=10,screenx=10,left=320,screeny=320,width=100,height=100,buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no",
			                  "myWindow");
			setCookie("musicopen","1",null,null,null,null);
}
  