function showPic (whichpic, photonumber, photodescription, photodate) {
	if (document.getElementById) {
  		document.getElementById('portimagecontainer').style.backgroundImage = 'url(' + whichpic.href + ')';	
  		if (whichpic.title) {
   			document.getElementById('phototitle').childNodes[0].nodeValue = whichpic.title;
			document.getElementById('photodescription').childNodes[0].nodeValue = photodescription;
			document.getElementById('photonumber').childNodes[0].nodeValue = photonumber;
			document.getElementById('photodate').childNodes[0].nodeValue = photodate;
  		}
  		return false;
 		} else {
  		return true;
 	}
}

function showPicsearch (whichpic, photonumber, photodescription, photodate, photocatname) {
	if (document.getElementById) {
  		document.getElementById('portimagecontainer').style.backgroundImage = 'url(' + whichpic.href + ')';	
  		if (whichpic.title) {
   			document.getElementById('phototitle').childNodes[0].nodeValue = whichpic.title;
			document.getElementById('photodescription').childNodes[0].nodeValue = photodescription;
			document.getElementById('photonumber').childNodes[0].nodeValue = photonumber;
			document.getElementById('photodate').childNodes[0].nodeValue = photodate;
			document.getElementById('photocatname').childNodes[0].nodeValue = photocatname.toUpperCase();
  		}
  		return false;
 		} else {
  		return true;
 	}
}