// JavaScript Document
function OpenBioWin(url)
{
var myBioWin=window.open(url,'myBioWin','scrollbars=1,menubar=0,toolbar=0,location=0,directories=0,status=0,resizable=yes,scrolling=yes,width=600,height=900');
myBioWin.focus();
}

function OpenPhotoWin(url)
{
var myPhotoWin=window.open(url,'myPhotoWin','scrollbars=1,menubar=0,toolbar=0,location=0,directories=0,status=0,resizable=yes,scrolling=yes,width=715,height=580');
myPhotoWin.focus();
}

function OpenSinglePhotoWin(url)
{
var mySinglePhotoWin=window.open(url,'singlephotowin','scrollbars=1,menubar=0,toolbar=0,location=0,directories=0,status=0,resizable=yes,scrolling=yes,width=400,height=400');
mySinglePhotoWin.focus();
}

function OpenStreamWin(url)
{
var myPhotoWin=window.open(url,'myStreamWin','scrollbars=0,menubar=0,toolbar=0,location=0,directories=0,status=0,resizable=yes,scrolling=no,width=250,height=380');
myPhotoWin.focus();
}

function OpenStoreWin(url)
{
var myStoreWin=window.open(url,'myStoreWin','scrollbars=1,menubar=1,toolbar=1,location=0,directories=0,status=0,resizable=yes,scrolling=yes,width=830,height=900');
myStoreWin.focus();
}

function OpenTShirtWin(url)
{
var myTShirtWin=window.open(url,'myTShirtWin','scrollbars=1,menubar=0,toolbar=0,location=0,directories=0,status=0,resizable=yes,scrolling=yes,width=800,height=650');
myTShirtWin.focus();
}

function OpenVideoWin(url)
{
var myVideoWin=window.open(url,'myVideoWin','scrollbars=1,menubar=0,toolbar=0,location=0,directories=0,status=0,resizable=yes,scrolling=yes,width=465,height=540');
myVideoWin.focus();
}

function OpenRadioWin(url)
{
var myRadioWin=window.open(url,'myRadioWin','scrollbars=1,menubar=0,toolbar=0,location=0,directories=0,status=0,resizable=yes,scrolling=no,width=500,height=180');
myRadioWin.focus();
}

function OpenReviewWin(url)
{
var myReviewWin=window.open(url,'myTShirtWin','scrollbars=1,menubar=0,toolbar=0,location=0,directories=0,status=0,resizable=yes,scrolling=yes,width=750,height=900');
myReviewWin.focus();
}

// this is used to open a band page from a store page. It keeps the store page open and opens the band page in the opener window which is usually the ESR website
function ChangeParentDocument(url) 
{
if (opener && !opener.closed)
{
  opener.location = url;
  opener.focus();
}
else
{
var myNewWin=window.open(url,'myNewWin','scrollbars=1,menubar=1,toolbar=1,location=0,directories=0,status=0,resizable=yes,scrolling=yes');
myNewWin.focus();
}
}
