function callresource(whereto,width,height,name){ if (! width) {width = 350}; if (! height) {height = 200}; var left = Math.ceil((screen.width/2) - (width/2)); var top = Math.ceil((screen.height/2) - (height/2));  var chrome = "channelmode=no, directories=no, fullscreen=no, location=no, menubar=no, resizable=no, scrollbars=no, status=no, titlebar=no, toolbar=no"; var winprop = "width=" + width + ",height=" + height + ",top=" + top + ",left=" + left + ", " + chrome; var reswin = window.open(whereto, name, winprop);}function launcheGlossary(grade,word){ var w = (grade < 3 || grade == "k") ? 554 : 534; var h = (grade < 3 || grade == "k") ? 374 : 420; var n = (grade < 3 || grade == "k") ? "eGlossaryLower" : "eGlossaryUpper"; var whereto = "/cgi-bin/schtemplate.cgi?template=/kids/mw/eglossary/eg_popup.thtml&grade="+grade; if(word!=null){  whereto += "&word="+escape(word); } callresource(whereto,w,h,n);}