// utility.js
// some generally usefull things
//--------------------------------------------------------------

// this page should not be part of someone else's frame
if(top.frames.length > 0)
top.location.href=self.location;


// suppress javacript errors
window.onerror = null;


// set the status bar to show nothing
window.defaultStatus = "";


// we need to do nothing rather often ;-)
function doNothing()
{
  return;
}


// getLanguage:
// ------------
// within my websites, the window name is set to 0 (english) or 1 (german)
// allowing me to keep language information during the whole session
// get Language checks the window name for 1 or 0 and returns the equivalent value,
// otherwise the default value of 1 (german) is assumed
function getLanguage()
{
  if ((top.window.name == "0") || (top.window.name == "1"))
     return(parseInt(top.window.name));

  top.window.name = 1;

  return 1;
}

