function openwindow(mypage) {
var w = (screen.width * .8);
var h = (screen.height * .6);
var winl = (screen.width - (screen.width * .8)) / 2;
var wint = (screen.height * .1);
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',toolbar=yes,location=yes,status=yes,menubar=yes,copyhistory=yes,scrollbars=yes,resizable';
win = window.open(mypage, 'win1', winprops);
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function openpicwin(actualurl, name, w, h) {
  var winl = (screen.width - w) / 2;
    if (winl <= 0) {winl = 0;}
  var wint = (screen.height - h) / 2;
    if (wint <= 0) {wint = 0;}
  var winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable';
  var framewin = window.open("",name , winprops);
  with (framewin.document) {
    write("<HTML><HEAD>");
    write("<TITLE>Climbing Older - Climbing & Mountaineering</TITLE>");
    write("</HEAD><BODY>");
    write("<script language='JavaScript'>");
    write("var message='To obtain a copy of this image, please contact me at - Stacy.Bender@worldnet.att.net';");
    write("function click(e) {");
    write("if (document.all) {");
    write("if (event.button == 2) {");
    write("alert(message);");
    write("return false;");
    write("}}");
    write("if (document.layers) {");
    write("if (e.which == 3) {");
    write("alert(message);");
    write("return false;");
    write("}}}");
    write("if (document.layers) {");
    write("document.captureEvents(Event.MOUSEDOWN);");
    write("}");
    write("document.onmousedown=click;");
    write("</script>");
    write("<P><IMG SRC='" + actualurl + "'></P>");
    write("</BODY></HTML>");
    }
  if (parseInt(navigator.appVersion) >= 4) { framewin.window.focus(); }
}

function setmsg(msg) {
  window.status = msg;
  return true;
}

// ============ DESCRIPTION ================== //

function setupDescriptions() {
var x = navigator.appVersion;
y = x.substring(0,4);
if (y>=4) setVariables();
}
var x,y,a,b;
function setVariables(){
if (navigator.appName == "Netscape") {
h=".left=";
v=".top=";
dS="document.";
sD="";
}
else 
{
h=".pixelLeft=";
v=".pixelTop=";
dS="";
sD=".style";
   }
}
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function popLayer(a){

desc = "<table cellpadding=3 border=1 bgcolor=F7F7F7><td>";
desc += a;
desc += "</td></table>";

if(isNav) {
document.object1.document.write(desc);
document.object1.document.close();
document.object1.left=x+25;
document.object1.top=y;
}
else {
object1.innerHTML=desc;
eval(dS+"object1"+sD+h+(x+25));
eval(dS+"object1"+sD+v+y);
   }
}
function hideLayer(a){
if(isNav) {
eval(document.object1.top=a);
}
else object1.innerHTML="";
}
function handlerMM(e){
x = (isNav) ? e.pageX : event.clientX;
y = (isNav) ? e.pageY : event.clientY;
}
if (isNav){
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;

// ============ Change the size of an image  ================== //

function moveover(img, w, h)
{
  document.getElementById(img).width=(w*1.2)
  document.getElementById(img).height=(h*1.2)
}
function moveback(img, w, h)
{
  document.getElementById(img).width=(w/1.2)
  document.getElementById(img).height=(h/1.2)
}

// =========== Drop Down Menu Auto submit Script =========== //

  function changeLocation(menuObj)
  { var i = menuObj.selectedIndex;
    if(i > 1){
      window.location = menuObj.options[i].value;
    }
  }
