/* 
	This is used to specify the default button to be clicked when a
	certain textbox has the focus.
	
	Used by the search box/button.
	
	Install by using the plug function: SetDefBtn.
	
	Example:
	
	SetDefBtn(TextBox1, Button1)
	
	Now Button 1 will be pressed if the cursor is in textbox1 and
	the client presses enter!
*/

function clickButton(e, buttonid){ 
      var bt = document.getElementById(buttonid); 
      if (typeof bt == 'object'){ 
            if(navigator.appName.indexOf("Netscape")>(-1)){ 
                  if (e.keyCode == 13){ 
                        bt.click(); 
                        return false; 
                  } 
            } 
            if (navigator.appName.indexOf("Internet Explorer")>(-1)){ 
                  if (event.keyCode == 13){ 
                        bt.click(); 
                        return false; 
                  } 
            } 
      } 
     return true; 
} 





//-- write email link
function writeML( eacct, host, Ltext, sline )
{
//-- if not empty add subjectline
	if ( sline  ) 
	{  sline = "?" + "sub" + "ject=" + sline ;	}

//-- if empty show email address as link text
	if ( !Ltext  ) 
		{  Ltext = eacct + "@" + host; 	}
	
	document.write ('<a href=' + 'mail' + 'to:' + eacct + '@' + host + sline + '>' + Ltext + '</a>' );

}


