// JavaScript Document


function textWindow(myID) {
  var myURL = "open_window.cfm?textid=" + myID.toString();
  child = window.open(myURL, 'a', "toolbar=yes,scrollbars=yes,resizable=yes,width=600,height=600, alwaysLowered =0, alwaysRaised=1");
  child.focus();
}
function cartoonWindow(myID) {
  var myURL = "open_window.cfm?cartoonid=" + myID.toString();
  child = window.open(myURL, 'b', "toolbar=yes,scrollbars=yes,resizable=yes,width=600,height=600, alwaysRaised=yes");
  child.focus();
}
function figureWindow(myID) {
  var myURL = "open_window.cfm?figureid=" + myID.toString();
  child = window.open(myURL, 'c', "toolbar=yes,scrollbars=yes,resizable=yes,width=600,height=600, alwaysLowered =0, alwaysRaised=1");
  child.focus();
}

function showWorksheet(myID) {
  var myURL = "open_worksheets.cfm?sheetid=" + myID.toString();
  child = window.open(myURL, 'd', "scrollbars=1,menubar=1,toolbar=1,location=1,status=1,resizable=1");
  child.focus();
}
function showExampleSheet(myID,type,loc) {
  var myURL = "open_worksheets.cfm?type=" + type.toString() + "&sheetid=" + myID.toString() +"#" + loc.toString();
  child = window.open(myURL, 'd', "scrollbars=1,menubar=1,toolbar=1,location=1,status=1,resizable=1");
  child.focus();
}
function popupWindow(myID) {
  var myURL = "open_window2.cfm?textid=" + myID.toString();
  child = window.open(myURL, 'd', "toolbar=yes,scrollbars=yes,target=_blank,resizable=yes,width=600,height=600, alwaysLowered =0, alwaysRaised=1");
  child.focus();
}
function showModel(myID) {
  var myURL = "open_model.cfm?modelid=" + myID.toString();
  child = window.open(myURL, 'e', "scrollbars=1,menubar=0,toolbar=0,location=0,status=0,resizable=1");
  child.focus();
}


function WhatsNew(){
  var myURL = "open_window.cfm?whatsnew=true";
  child = window.open(myURL, 'f', "toolbar=yes,scrollbars=yes,resizable=yes,width=600,height=600, alwaysLowered =0, alwaysRaised=1");
  child.focus();
}

function showIllustrativeGlossary(){
  var myURL = "open_window.cfm?glossary=true";
  child = window.open(myURL, 'g', "toolbar=yes,scrollbars=yes,resizable=yes,width=600,height=600, alwaysLowered =0, alwaysRaised=1");
  child.focus();
}