// Content-side included javascript for bp_cis_2003 style

// Pop-up window function for Profile
var pWin = null;
function openProfile (url) {
  if (!pWin || pWin.closed) {
    pWin = window.open(url, 'Profile', 
                      'width=600,height=625,' +
                      'toolbar=no,location=no,resizable=yes,scrollbars=yes');
  } else {
    //pWin.location = url;	// don't reload since it's a form
    pWin.focus();
  }
}

// Example pop-up window function for volume page links
var xWin = null;
function openPopup (url, w, h) {
  if (!xWin || xWin.closed) {
    xWin = window.open(url, 'popup', 
                      'width=' + w + ',height=' + h + 
                      ',toolbar=no,location=no,resizable=yes,scrollbars=yes');
  } else {
    xWin.location = url;
    xWin.focus();
  }
}

// Example pop-up window function for volume page links
var bWin = null;
function openBG () {
  var url = 'http://www.google.com';
  if (!bWin || bWin.closed) {
    bWin = window.open(url, 'BGwin', 
                      'width=800,height=600,' + 
                      'toolbar=yes,location=yes,resizable=yes,scrollbars=yes');
  } else {
    bWin.location = url;
    bWin.focus();
  }
}


