function NewWindow_(mypage, myname, w, h) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+', toolbar=0, status=1, resizable=1, scrollbars=1';
  win = window.open(mypage, myname, winprops);
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus();}
}

function NewWindow_Full(mypage, myname, scroll) {
  winprops = 'height='+(screen.height-60)+',width='+(screen.width-20)+',top=0'+',left=0'+',scrollbars='+scroll+',resizable';
  win = window.open(mypage, myname, winprops)
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); };
}

function jmpProd(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function chg_img1 (obj, lnk_photo, nfoto){
  var el1 = document.getElementById("pimgi");
  el1.src = nfoto;
  el1.alt = "";
  var el2 = document.getElementById("pimga");
  el2.href = lnk_photo;

  var rowEl, cellEl;
  var el = document.getElementById("galt");
  rowEl = el.childNodes[0];
  for (j = 0; j < rowEl.childNodes.length; j++) {
      cellEl = rowEl.childNodes[j];
      cellEl.style.borderColor = "#CCCCCC";
  }
  obj.style.borderColor = "#008000";
}

var SPEED = 3;
function ScrollLeft(ELEM){
    if(typeof ELEM == 'string')
        ELEM = document.getElementById(ELEM);
    if(ELEM)
        ELEM.scrolling = setInterval(function(){ELEM.scrollLeft-=SPEED;}, 20);
}
function ScrollRight(ELEM){
    if(typeof ELEM == 'string')
        ELEM = document.getElementById(ELEM);
    if(ELEM)
        ELEM.scrolling = setInterval(function(){ELEM.scrollLeft+=SPEED;}, 20);
}
function StopScroll(ELEM){
    if(typeof ELEM == 'string')
        ELEM = document.getElementById(ELEM);
    if(ELEM)
        clearInterval(ELEM.scrolling);
}

