function showIFrame() {
    //
    // Check for anchor tag
    //
    var targetDiv = document.getElementById("educationAtlasTargetDiv");
    var a1 = document.getElementById("EducationAnchor1");
    var a2 = document.getElementById("EducationAnchor2");
    var uid = document.getElementById("usrd").innerHTML;    
    var isize = document.getElementById("iscz").innerHTML;
    var color = document.getElementById("color").innerHTML;
    //
    // The domain name of checkUrl MUST be lowercase
    //
    var checkUrl = "http://www.educationatlas.com";
    if(!a1 || (a1.href.substring(0, checkUrl.length) != checkUrl)) {
      targetDiv.innerHTML = "Invalid dictionary configuration.";  
      return false;
    }
    if(!a2 || (a2.href.substring(0, checkUrl.length) != checkUrl)) {
      targetDiv.innerHTML = "Invalid dictionary configuration.";  
      return false;
    }
    targetDiv.innerHTML = "";    
 
    var iframe = document.createElement("iframe");
    iframe.frameBorder = 0;
    iframe.style.margin = "0px";
    iframe.id = "dictiframe";
    iframe.name = "dictiframe";
    iframe.style.border = "0px solid #ffffff";
    iframe.height = '194px';
    iframe.width = '150px';
    iframe.scrolling = "no";
    if (isize=="1") {   //1 is wide 0 is tall
        iframe.src = "http://www.educationatlas.com/dict/dictionary-wide.php?color="+color+"&usrd="+uid;
    } else {
        iframe.src = "http://www.educationatlas.com/dict/dictionary.php?color="+color+"&usrd="+uid;
    }
    targetDiv.appendChild(iframe);
    return false;
}

if(window.addEventListener){ // Mozilla, Netscape, Firefox
    window.addEventListener('load', showIFrame, false);
   
} else { // IE
    window.attachEvent('onload', showIFrame);
    
}

