alertMessage = "Please close the other open window first."

function openNewWindow(newURL) 
{	
	width = 600
	height = 475
	newWindow = window.open(newURL,'', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+'\'')
	return false
}
function openNewWindow1(newURL) 
{	
	width = 420
	height = 360
	newWindow = window.open(newURL,'', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+'\'')
	return false
}
function openNewProspectWindow(newURL) 
{	
	width = 450
	height = 275
	newWindow = window.open(newURL,'', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+width+',height='+height+'\'')
}

function openNewWindow(newURL, width, height) 
{	
	newWindow = window.open(newURL,'', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+'\'')
	return false
}


function openNewEmailListWindow(newURL, emailListType) 
{	
	width = 675
	height = 475
	newURL = newURL + "?emailListType=" + emailListType
	newWindow = window.open(newURL,'', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+'\'')
	return false
}


function launchCenter(url, name, height, width) {
  var str = "scrollbars=yes,resizable=yes,copyhistory=no, height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  return window.open(url, name, str);
}
		
function checkOpen(e) 
{
	if (!((typeof newWindow == "undefined")||(newWindow.closed))) 
	{
		alert(alertMessage)
		newWindow.focus()
		return false
	}
	else 
	{
		return true
	}
}

if (document.layers) document.captureEvents(Event.MOUSEDOWN)

document.onmousedown=checkOpen
