if (window.focus) 
{
self.focus();
}

if (self.parent.frames.length != 0) {
self.parent.location="http://antoine.frostburg.edu/chem/senese/101/index.shtml";}

function define(thing)
{
url = "/cgi-bin/senese/searchglossary.cgi?query=" + thing + "&nohead=yes&nofoot=yes#" + thing;
glossary = window.open(url,'Glossary','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=640,height=80'); 
glossary.focus();
}

function definition(thing,dir)
{
url = "/cgi-bin/senese/searchglossary.cgi?query=" + thing + "&nohead=yes&nofoot=yes#" + thing;
glossary = window.open(url,'Glossary','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=640,height=80'); 
glossary.focus();
}

function periodic_table()
{
ptable = window.open('/chem/senese/javascript/popup-periodic-table.html','Periodic_Table',
'toolbar=0,location=0,directories=0,status=1,menubar=0,resize=1,scrollbars=1,width=600,height=300');
ptable.focus();
}

function popup(url,width,height)
{
opts = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=" + width + ",height=" + height;
popupwin = window.open(url,'General_Chemistry_Online',opts);
popupwin.focus();
}

function popupmessage(message,width,height)
{
opts = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=" + width + ",height=" + height;
popupwin = window.open('','General_Chemistry_Online',opts);
popupwin.document.write('<html><head><title>General Chemistry Online</title></head><body bgcolor="#ffffff" text="#000000"><font face="geneva,helvetica,arial,sans-serif" size="2">' + message + '</font></body></html>');
popupwin.focus();
}

function show_molecule(thing, dir, model)
{
molurl = "/chem/senese/101/" + dir + "/" + thing + ".mol";
molwindow = window.open('/chem/senese/blank.html',thing,'toolbar=0,location=0,directories=0,status=1,menubar=0,resize=1,scrollbars=1,width=300,height=300');
molwindow.document.write("<HTML><HEAD><TITLE>" + thing + "</TITLE></HEAD>");
molwindow.document.write("<BODY BGCOLOR=BLACK><EMBED SRC='" + molurl + "' TYPE='chemical/x-mdl-molfile' WIDTH='300' HEIGHT='300' DISPLAY3D='" + model + "' options3d='specular' frank='no'>");
molwindow.focus();
}

function targetlinks(where)
{
thetarget = (where) ? "_blank" : "_top";
for (var i=0; i<=(document.links.length-1); i++)
   {
   document.links[i].target = thetarget; 
   }
}
