function xhtml() {
  var thispage = "http://validator.w3.org/check?uri=" + window.location.href;
  var validXHTML = window.open(thispage,'newwin','width=500,height=500,scrollbars,top=25,left=25');
  validXHTML.focus();
  return false;
  }

function css() {
  var thispage = "http://jigsaw.w3.org/css-validator/validator?uri=" + window.location.href;
  var validCSS =  window.open(thispage,'newwin','width=500,height=500,scrollbars,top=25,left=25');
  validCSS.focus();
  return false;
  }
  
function newWindow() {
    alert(className);
    var page = this.links;
  var openWindow = window.open(page,'newwin','width=500,height=500,scrollbars,top=25,left=25');
  openWindow.focus();
  return false;
  }
  
window.onload = initLinks;

function initLinks() {
  for (var i=0; i<document.links.length; i++) {
    if(document.links[i].className == "imageWindow") {
      document.links[i].onclick = galleryWindow;
      }
    if(document.links[i].className == "show") {
      document.links[i].onclick = showTip;
      }
    }
  }

function galleryWindow() {
  var winOpen =  window.open(this.href,'newwin','width=540,height=500,scrollbars,top=25,left=25');
  winOpen.focus();
  return false;
      }

function showTip() {
alert("hello");
  document.getElementbyID.className.display = "block";
//     this.className.style.position = "absolute";
//  this.className.style.background = "#f00";
   }
   
function Popup(thisPage) {
  var openWindow = window.open(thisPage,'newwin','width=500,height=500,scrollbars,top=25,left=25');
  openWindow.focus();
  return false;
   }
  