var newWin = null;
function popUp(strURL, strType, strHeight, strWidth) {
	if (newWin != null && !newWin.closed)
		newWin.close();
	var strOptions="";
	if (strType=="console")
		strOptions="resizable,scrollbars,height="+strHeight+",width="+strWidth;
	if (strType=="fixed")
		strOptions="status,height="+strHeight+",width="+strWidth;
	if (strType=="elastic")
		strOptions="toolbar,menubar,scrollbars=yes,"+"resizable,location,height="+strHeight+",width="+strWidth;
	newWin = window.open(strURL, 'newWin', strOptions);
	newWin.focus();
}

// Image displayer

function showPic (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('desc').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}

function showPic2 (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder2').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('desc2').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc2').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}

function showPic3 (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder3').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('desc3').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc3').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}
