﻿function turnOn_new(imageName, onImagePath) {
  if (document.images) {
    document[imageName].src = onImagePath;
  }
}

function turnOff_new(imageName, offImagePath) {
  if (document.images) {
    document[imageName].src = offImagePath;
  }
}

function turnOn(imageName) {
  if (document.images) {
    document[imageName].src =
      eval(imageName + 'on.src');
  }
}

function turnOff(imageName) {
  if (document.images) {
    document[imageName].src =
      eval(imageName + 'off.src');
  }
}

function popUp(URL) {
//day = new Date();
//id = day.getTime();
	newpage = window.open(URL, 'newpage','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=450,height=375,top=200,left=200,copyhistory=1');
	newpage.focus()
	//eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=450,height=275,top=200,left=200');");	
}