function WinOpen(height,width,url)
{
 window.open(
  url,
  "RegHelp",
  "toolbar=no,location=no,resizable=yes,scrollbars=yes,status=no,height="+height+",width="+width);
}


// popname: window name
// fullattr: window properties minus height and width.  Remove any trailing commas in function call!

function WinOpenFullAttr(height,width,url,popname,fullattr)
{
 window.open(
  url,
  popname,
  fullattr + "," + "height=" + height + ",width=" + width);
}


// this is the newsletter popup

function newsPopup ()
{
	resultWindow = "http://www.hbo.com/newsletter/processing.html";
	window.open(resultWindow,'popup','width=360,height=400,toolbar=no,location=no,resizable=no,scrollbars=no,status=yes,left=10,top=10,screenX=10,screenY=10');
}

// this is the chat new login popup -- see stephanie 5195

function chatPopup ()
{
	resultWindow = "http://www.hbo.com/corpinfo/processing_login.html";
	window.open(resultWindow,'chat','width=625,height=500,toolbar=no,location=no,resizable=no,scrollbars=yes,status=yes,left=10,top=10,screenX=10,screenY=10');
}

// this is the chat new login popup -- see stephanie 5195

function loginPopup (URL)
{
	window.open(URL,'login','width=625,height=500,toolbar=no,location=no,resizable=no,scrollbars=yes,status=yes,left=10,top=10,screenX=10,screenY=10');
}

// this is the chat new login popup -- see stephanie 5195

function gamePopup (URL)
{
	window.open(URL,'game','width=800,height=570,toolbar=no,location=no,resizable=no,scrollbars=yes,status=yes,left=10,top=10,screenX=10,screenY=10');
}

// this is the boxing event login popup -- same as above, just different window size

function boxingPopup (URL)
{
	window.open(URL,'game','width=600,height=475,toolbar=no,location=no,resizable=no,scrollbars=yes,status=yes,left=10,top=10,screenX=10,screenY=10');
}

// every window on HBO.com should be named MAIN so that the store and login can be redirected back to the parent window...

window.name = "MAIN";
