/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


var newWin = null;
function popUp(strURL, strType, strHeight, strWidth) {
 if (newWin != null && !newWin.closed)
   newWin.close();
 var strOptions="";
 if (strType=="console")
   strOptions="resizable,height="+
     strHeight+",width="+strWidth;
 if (strType=="fixed")
   strOptions="status,height="+
     strHeight+",width="+strWidth;
 if (strType=="scroll")
   strOptions="scrollbars,"+
     "resizable,location,height="+
     strHeight+",width="+strWidth;
 if (strType=="elastic")
   strOptions="toolbar,menubar,scrollbars,"+
     "resizable,location,height="+
     strHeight+",width="+strWidth;
 newWin = window.open(strURL, 'newWin', strOptions);
 newWin.moveTo(50, 50);
 newWin.focus();
}

function imgChange1( img )
{ document.lamp1.src = img; }

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}

function setDefault(el, df) {
  if (el.value.length == 0) el.value = df
}

