function reload(form) {
var val=form.region.options[form.region.options.selectedIndex].value;
self.location='search.php?search=1&region=' + val ;
}

function showPic (whichpic) {
  if (document.getElementById) {
    document.getElementById('display').src = whichpic.href;
    if (whichpic.title) {
      document.getElementById('caption').childNodes[0].nodeValue = whichpic.title;
    }
    else {
/*		  document.getElementById('caption').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;*/
      document.getElementById('caption').childNodes[0].nodeValue = "caption";
    }
    return false;
  }
  else {
	 return true;
  }
}

function ImageLoadFailed() {
  window.event.srcElement.src = "./images/noimage.gif";
}

function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 } 
} 
window.onload = externalLinks;

