    NS4 = (document.layers) ? 1 : 0;
    IE4 = (document.all) ? 1 : 0;
    ver4 = (NS4 || IE4) ? 1 : 0;
	
	var iPath = '/images/';
	var iExt = 'gif';
	var suffix = new Array('over', 'up');

	
//preload function to preload all images.  assumes 'on' is on state and nothing is off state
function preLoad()
{

  if(document.images)
  {
  
    var argLen = arguments.length;
    for(var i = 0; i < argLen; i++)
	
    {
      var arg = arguments[i];
      var sufLen = suffix.length;
      for(j = 0; j < sufLen; j++)
      {
        var suf = suffix[j]
		if( suf != '' ) suf = '_' + suf;
        self[arg + suf] = new Image();
        self[arg + suf].src = iPath + arg + suf + '.' + iExt;
		
      }
    }
  }
}

//basic rollover function.  Pass in the extra parameter that will make it read as on.  in this case '_on'	
function rollOver(iName, iState)
{
iState = "_" + iState;
  if(document.images && self[iName + iState])
  {
  
      document.images[iName].src = self[iName + iState].src;
  }
}

	

function openWin( windowURL, windowName, windowFeatures ) {
	return window.open( windowURL, windowName, windowFeatures ) ; 
} 
	
function windowRefresh() {
    document.window.refresh();
}

function onSubmit() {
  document.forms[0].submit();
  return false;
}
	
function submitLogin( action ) {
  document.forms[0].action = action;
  onSubmit();
}

