
//this function pops up a window for definitions

function popup_window (title, definition){

	info_window=window.open('','displayWindow','height=310,width=300,resizable=yes,scrollbars=yes');

	info_window.document.write('<html><head><title>Online Help</title>');
	info_window.document.write('<style type=text/css><!--.bodydef {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: normal; list-style-type: disc}--></style>');
	info_window.document.write('</head>');
	info_window.document.write('<body><div align=left class=bodydef><b>' + title + '</b><hr>');
	info_window.document.write(definition + '</div></body></html>');

	info_window.document.close();

// if the method is defined we can safely use it

        if (info_window.focus) { info_window.focus(); }
}

//this function pops up a window with a given url

function popup_url (url){

   url_window=window.open(url,'displayWindow','height=400,width=500,resizable=yes,scrollbars=yes,menubar=yes');
   url_window.document.close();

// if the method is defined we can safely use it

   if (url_window.focus) { url_window.focus(); }
}

// This function shows in the status bar what the user will be shown in the popup

function show_status (string) {
        window.status = string;
        return true;
}

// This function clears the window for the next definition

function clear_status () {
        window.status="";
        return true;
}

function putFocus (formName, elementName) {
  if ((document.forms[formName])
   && (document.forms[formName].elements[elementName])) {
      document.forms[formName].elements[elementName].focus();
   }
}

