var IE4=(document.all)? 1:0
var IE5=(IE4 && document.getElementById)? 1:0
var NS4=(document.layers)? 1:0
var NS6=(!IE4 && document.getElementById)? 1:0
var VR4=(IE4 || NS4 || NS6)? 1:0;
bStarted = 0

function openWin(URL,name,width,height,left,top,scroll){
	if(!width) width=400;
	height_opt= height ? ',height='+height : '';
	left_opt= left ? ',left='+left : '';
	top_opt= top ? ',top='+top : '';
	scroll=(scroll=='no' ? 'no' : 'yes');
	open(URL,name,'width='+width+height_opt+left_opt+top_opt+',location=no,menubar=no,titlebar=no,status=no,resizable=yes,scrollbars='+scroll);
}
function setErrMsg(ref,msg){
	ref.focus();
	alert(msg);
	return false;
}
function trim(e){
	while(''+e.value.charAt(0)==' ') e.value=e.value.substr(1);
	while(''+e.value.charAt(e.value.length-1)==' ') e.value=e.value.substr(0,e.value.length-1);
	return e.value;
}
function getObj(){
	if(NS6) return document.getElementById(arguments[arguments.length-1]);
	if(IE4)	return document.all[arguments[arguments.length-1]];
	l = arguments.length;
	r = '';
	for(var i=0;i<l;i++){
		r += "document.layers['"+arguments[i]+"']";
		if(i != l-1) r+='.';
	}
	return eval(r);
}
function getStyle(){
	if(NS6) return document.getElementById(arguments[arguments.length-1]).style;
	if(IE4)	return document.all[arguments[arguments.length-1]].style;
	l = arguments.length;
	r = '';
	for(var i=0;i<l;i++){
		r += "document.layers[\'"+arguments[i]+"\']";
		if(i != l-1) r+='.';
	}
	return eval(r);
}
function moveTo(stl,x,y){
	if(NS4) stl.moveTo(x,y);
	else{
		stl.left = x;
		stl.top = y;
	}
}
function moveBy(stl,x,y){
	if(NS4) stl.moveBy(x,y)
	if(NS6){
		stl.left = parseInt(stl.left) + x;
		stl.top = parseInt(stl.top) + y;
	}
	if(IE4){
		stl.pixelLeft += x;
		stl.pixelTop += y;
	}
}
function hide(stl){ stl.visibility='hidden'; }
function show(stl){ if(bStarted) stl.visibility='visible'; }


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//MENU CODE:
//
// Use Freely as long as following disclaimer is intact ::
//---------------------------------------------------------------
// Cross Browser Multi-Orientation Menu v1.4 1st May 2004
// This script written by Rik Comery. www.ricom.co.uk
// For support, visit the "Resources" section at www.ricom.co.uk           
// All rights reserved.   



//  MENU ITEMS ///////////////////////////////////////////////////////////////
// DUPLICATE THIS ENTIRE SECTION FOR MULTIPLE MENUS.  PLEASE SEE THE INSTRUCTIONS FILE FOR DETAILS ///////////////////////   
var Menu1 = new Array ()                                                                                                //
var subMenu1 = new Array ()                                                                                             //
     
   
    
    Menu1[0] = new Array("<img src=\"img_en/menu_contact.gif\"  name=\"rol1\" border=\"0\">", "kontakt.php?sesja_natura=2","_top", "left")                                       //
     subMenu1[0] = new Array()                                                                                          //
   
       //
     subMenu1[0][0] = new Array ("<img src=\"img_en/d_e.jpg\" name=\"rol5\" border=\"0\" valign=\"left\">", "kontakt.php?sesja_natura=2","_top", "left")           //
                   //
    subMenu1[0][1] = new Array ("<img src=\"img_en/d_h.jpg\" name=\"rol3\" border=\"0\" valign=\"left\">", "export.php?sesja_natura=2","_top", "left")
	
                                                                                          //   
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//  MENU ITEMS ///////////////////////////////////////////////////////////////
// DUPLICATE THIS ENTIRE SECTION FOR MULTIPLE MENUS.  PLEASE SEE THE INSTRUCTIONS FILE FOR DETAILS ///////////////////////   
var Menu2 = new Array ()                                                                                                //
var subMenu2 = new Array ()                                                                                             //
     
   
    
    Menu2[0] = new Array("<img src=\"img_en/menu_products.gif\"  name=\"rol21\" border=\"0\">", "produkty.php?sesja_natura=2","_top", "left")                                       //
     subMenu2[0] = new Array()                                                                                          //
   
       //
     subMenu2[0][0] = new Array ("<img src=\"img_pl/a.gif\" name=\"rol22\" border=\"0\" valign=\"left\">", "produkty_al.php?sesja_natura=2","_top", "left")           //
                   //
    
                                                                                                                        //
                                                                                          //   
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////// FORMAT MENU  ///////////////////////////////////////////////////////////////////
menuStyle = "flat,flat"                               // Menu Style (flat, 3d)
cellPadding = "0,0"                                 // Cell Padding
cellBorder =0                                     // Border width (for no border, enter 0)  THIS VALUE APPLIES TO ALL MENUS
cellBorderx = 0 
verticalOffset = "0,0"                             // Vertical offset of Sub Menu. 
horizontalOffset = "0,0"                          // Horizontal offset of Sub Menu. 
subMenuDelay = 0                                    // Time sub menu stays visible for (in seconds). THIS VALUE APPLIES TO ALL MENUS
subIndicate = 0                                     // Show if a sub menu is present (use 0 for "no")  THIS VALUE APPLIES TO ALL MENUS
indicator = "" // Symbol to show if a sub menu is present (subIndicate must be to set to 1)
                                                    // Use standard HTML <img> tag. You can use a character instead of an image. 
                                                    // e.g.      indicator = ">"
// Main Menu Items
borderColor = "Black,Black"            // Border Colour (flat mode only)
borderHighlight = "#97BBD3,#97BBD3"      // Border Highlight Colour (3d mode only)
borderShadow = "#31556D,#97BBD3"         // Border Shadow Colour (3d mode only)
menuBackground = "white,white"       // Cell Background Colour
menuHoverBackground = "white,white"    // Cell Background Colour on mouse rollover
fontFace = "verdana,verdana"               // Font Face
fontColour = "black,black"          // Font Colour
fontHoverColour = "white,white"     // Font Colour on mouse rollover
fontSize = "x-small,x-small"                    // Font Size
fontDecoration = "none,none"            // Style of the link text (none, underline, overline, line-through)
fontWeight = "normal,normal"              // Font Weight (normal, bold)
HfontWeight = ""

// Sub Menu Items
sborderColor = "white,white"           // Border Colour (flat mode only)

smenuBackground = "white,white"        // Cell Background Colour
smenuHoverBackground = "white,white" // Cell Background Colour on mouse rolloverr

sfontFace = "arial,arial"              // Font Face
sfontColour = "#2b83c4,#97BBD3"          // Font Colour
sfontHoverColour = "#FFFFFF,#97BBD3"     // Font Colour on mouse rollover
sfontSize = "xx-small,xx-small"                   // Font Size
sfontDecoration = "none,none"            // Style of the link text (none, underline, overline, line-through)
sfontWeight = "normal,normal"              // Font Weight (normal, bold)
HsfontWeight = ""

quantity = 2
////// END FORMAT MENU  ///////////////////////////////////////////////////////////////////


////// DO NOT EDIT BELOW THIS LINE  ///////////////////////////////////////////////////////////////////

// Browser Sniffer
var isIE = (document.getElementById && document.all)?true:false;
var isNS4 = (document.layers)?true:false;
var isNS6 = (document.getElementById && !document.all)?true:false;

var timer;
var obj = (isIE)?"document.all":"document.getElementById"


// Menu Styles
function createStyles(quant){
styleBorder=(menuStyle.split(",")[quant-1].toLowerCase() == "flat")?cellBorder:0 
  document.writeln ('<style>');
  document.writeln ('.rcMenuStatic'+quant+' {font-family:'+fontFace.split(",")[quant-1]+';font-size:'+fontSize.split(",")[quant-1]+';color:'+fontColour.split(",")[quant-1]+';font-weight:'+fontWeight.split(",")[quant-1]+';background-color:'+menuBackground.split(",")[quant-1]+'; cursor:hand; text-decoration:'+fontDecoration.split(",")[quant-1]+'}');
  document.writeln ('.rcMenuHover'+quant+'  {font-family:'+fontFace.split(",")[quant-1]+';font-size:'+fontSize.split(",")[quant-1]+';color:'+fontHoverColour.split(",")[quant-1]+';font-weight:'+HfontWeight.split(",")[quant-1]+';background-color:'+menuHoverBackground.split(",")[quant-1]+'; cursor:hand; text-decoration:'+fontDecoration.split(",")[quant-1]+' }');
  document.writeln ('.rcSubMenuStatic'+quant+' {font-family:'+sfontFace.split(",")[quant-1]+';font-size:'+sfontSize.split(",")[quant-1]+';color:'+sfontColour.split(",")[quant-1]+';font-weight:'+sfontWeight.split(",")[quant-1]+';text-decoration:'+sfontDecoration.split(",")[quant-1]+';background-color:'+smenuBackground.split(",")[quant-1]+'; cursor:hand}');
  document.writeln ('.rcSubMenuHover'+quant+'  {font-family:'+sfontFace.split(",")[quant-1]+';font-size:'+sfontSize.split(",")[quant-1]+';color:'+sfontHoverColour.split(",")[quant-1]+';font-weight:'+HsfontWeight.split(",")[quant-1]+';text-decoration:'+sfontDecoration.split(",")[quant-1]+';background-color:'+smenuHoverBackground.split(",")[quant-1]+'; cursor:hand}');

  document.writeln ('</style>');
}

function showMenus(quant,definedOrientation)
{
  createStyles(quant);
  if(definedOrientation!=""){orientation=definedOrientation}
  if (orientation.toLowerCase() == "vertical"){document.writeln ('<table border="0" cellpadding="0" cellspacing="'+styleBorder+'" Background="" width="57" height="21" valign="bottom">')}
  else{document.writeln ('<table border="0" width="57" height="21" cellpadding="0" cellspacing="'+styleBorder+'" bgColor="'+borderColor.split(",")[quant-1]+'"><tr>')}  

//Menu1

  for (x=0; x<eval("Menu"+quant).length; x++)
  {
    
    if (orientation.toLowerCase()=="vertical") document.writeln('<tr>')
    document.writeln ('<td align="right" width="*" onclick="tdMouseClick(\''+quant+'mainLink'+x+'\')" onMouseOver="hoverMenu(); popDown(\''+quant+'\','+x+', \''+quant+'button'+x+'\',\''+orientation+'\'); " onMouseOut="clearMenu('+quant+','+x+')" ')
          
    document.writeln ('><div id="'+quant+'button'+x+'"><table border="0" "width="57"cellpadding="'+cellPadding.split(",")[quant-1]+'" cellspacing="0" width="100%"><tr><td width="57"class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'" nowrap align="right">');
    

 if (quant=="1"){
  
document.writeln ('<a id="'+quant+'mainLink'+x+'" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'" onMouseOver=\"rol1.src=\'img_en/menu_contact_over.gif\'\" onMouseOut=\"rol1.src=\'img_en/menu_contact.gif\'\">'+eval("Menu"+quant)[x][0]+'</a></td>');
    if (subIndicate == 1&&eval("subMenu"+quant)[x].length>=1){
      document.writeln('<td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'a" align="right">');
      
document.writeln ('<a id="'+quant+'mainLink'+x+'a" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'" >'+indicator+'</a></td>');}

    document.writeln ('</tr></table></div></td>');    
    if (orientation.toLowerCase()=="vertical") document.writeln('</tr>')}

 else{
      document.writeln ('<a id="'+quant+'mainLink'+x+'" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'" onMouseOver=\"rol21.src=\'img_en/menu_products_over.gif\'\" onMouseOut=\"rol21.src=\'img_en/menu_products.gif\'\">'+eval("Menu"+quant)[x][0]+'</a></td>');
    if (subIndicate == 1&&eval("subMenu"+quant)[x].length>=1){
      document.writeln('<td class="rcMenuStatic'+quant+'" id="'+quant+'cell'+x+'a" align="right">');
      
document.writeln ('<a id="'+quant+'mainLink'+x+'a" href="'+eval("Menu"+quant)[x][1]+'" target="'+eval("Menu"+quant)[x][2]+'" class="rcMenuStatic'+quant+'" >'+indicator+'</a></td>');}

    document.writeln ('</tr></table></div></td>');    
    if (orientation.toLowerCase()=="vertical") document.writeln('</tr>')}
  }

    
  


 

//koniec menu glownego

  if (orientation.toLowerCase() == "vertical"){document.writeln ('</table>');}
  else{document.writeln ('</tr></table>');}     
  

// Build the sub menu items
  for (x=0; x<eval("Menu"+quant).length; x++)
  { 
    if (eval("subMenu"+quant)[x].length > 0)
    {     
      document.writeln ('<div id="'+quant+'MENU'+x+'" style="visibility:hidden; position:absolute; z-index:5" >');
      document.writeln ('<table  border="0" Background="" bordercolor="red" width="90" cellpadding="2" cellspacing="'+styleBorder+'" >');

if (quant=="1"){

//pierwszy wiersz 
    
             document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')
        
        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][0][1]+'" target="'+eval("subMenu"+quant)[x][0][2]+'" onMouseOver=\"rol5.src=\'img_en/d_e_over.jpg\'\" onMouseOut=\"rol5.src=\'img_en/d_e.jpg\'\">'+eval("subMenu"+quant)[x][0][0]+'</a></td></tr>');
     
//drugi

document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')
        
        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][1][1]+'" target="'+eval("subMenu"+quant)[x][1][2]+'" onMouseOver=\"rol3.src=\'img_en/d_h_over.jpg\'\" onMouseOut=\"rol3.src=\'img_en/d_h.jpg\'\">'+eval("subMenu"+quant)[x][1][0]+'</a></td></tr>');

      document.writeln ('</table></div>');

 }
 else{
 
 //pierwszy wiersz 
    
             document.writeln ('<tr><td height="21" align="left" id="'+quant+'subMenu'+x+'1'+'" class="rcSubMenuStatic'+quant+'" onMouseOver="hoverMenu(); " onMouseOut="clearMenu('+quant+','+x+'); " onclick="tdMouseClick(\''+quant+'subLink'+x+'1'+'\')" nowrap')
        
        document.writeln ('><a id="'+quant+'subLink'+x+'1'+'" href="'+eval("subMenu"+quant)[x][0][1]+'" target="'+eval("subMenu"+quant)[x][0][2]+'" onMouseOver=\"rol22.src=\'img_pl/a_over.gif\'\" onMouseOut=\"rol22.src=\'img_pl/a.gif\'\">'+eval("subMenu"+quant)[x][0][0]+'</a></td></tr>');
     
      document.writeln ('</table></div>');
 }

    }
  }

 


} 

// Change colour or menu and submenu items when the mouse hovers over.  
function highlightMenu(element,mainMenu,dropMenu,state,quant)
{
  hoverMenu();
  state=(state == "hover")?"rcMenuHover"+quant:"rcMenuStatic"+quant
  if (element == "sub")
  {
    for (x=0; x < eval("subMenu"+quant)[mainMenu].length; x++)
     {
      eval(obj+'("'+quant+'subMenu'+mainMenu+x+'").className = "rcSubMenuStatic'+quant+'"')
      eval(obj+'("'+quant+'subLink'+mainMenu+x+'").className = "rcSubMenuStatic'+quant+'"')
    }   
    eval(obj+'("'+quant+'subMenu'+mainMenu+dropMenu+'").className="rcSubMenuHover'+quant+'"')
    eval(obj+'("'+quant+'subLink'+mainMenu+dropMenu+'").className="rcSubMenuHover'+quant+'"')
  }
  else
  {
    eval(obj+'("'+quant+'cell'+mainMenu+'").className = "'+state+'"')
    eval(obj+'("'+quant+'mainLink'+mainMenu+'").className = "'+state+'"')
    if (subIndicate == 1&&eval("subMenu"+quant)[mainMenu].length>=1)
    {
      eval(obj+'("'+quant+'cell'+mainMenu+'a").className = "'+state+'"')
      eval(obj+'("'+quant+'mainLink'+mainMenu+'a").className = "'+state+'"')
    }
  }
}

// Find positioning for sub menus
function getOffset(obj, dim) 
{
  if(dim=="left") 
  {     
    oLeft = obj.offsetLeft;    
    while(obj.offsetParent!=null) 
    {    
      oParent = obj.offsetParent     
      oLeft += oParent.offsetLeft 
      obj = oParent 	
    }
    return oLeft
  }
  else if(dim=="top")
  {
    oTop = obj.offsetTop;
    while(obj.offsetParent!=null) 
    {
      oParent = obj.offsetParent
      oTop += oParent.offsetTop
      obj = oParent 	
    }
    return oTop
  }
  else if(dim=="width")
  {
    oWidth = obj.offsetWidth
    return oWidth
  }  
  else if(dim=="height")
  {
    oHeight = obj.offsetHeight
    return oHeight
  }    
  else
  {
    alert("Error: invalid offset dimension '" + dim + "' in getOffset()")
    return false;
  }
}

// Show sub menus
function popDown(quant, param, id, orientation)
{
  var cellBorderOffset = (isNS6)?cellBorder:eval(cellBorder*2)
  var browserAdjustment = (isNS6)?cellBorder:0
  var menu;
  var button;

  if (id)
  {    
    getOffset(eval(obj+'(id)'),'left');
    getOffset(eval(obj+'(id)'),'top');    
    getOffset(eval(obj+'(id)'),'width');  
    getOffset(eval(obj+'(id)'),'height');
    
    if (eval("Menu"+quant+"["+param+"][3]")=="right" && eval("subMenu"+quant+"["+param+"].length")>0) 
    { 
      oLeft=oLeft  
      oLeft=oLeft+oWidth; 
      getOffset(eval(obj+'("'+quant+'MENU'+param+'")'),'width');
      oLeft=oLeft-oWidth ;
      alignAdjustment = cellBorder*2 + 1
    }
    else 
    {
      alignAdjustment = 0
      oLeft=oLeft
    }    
  }  

  
  n = 0;    
  while (n < eval("Menu"+quant).length)
  {          
    menu = quant+"MENU"+n
    if (param == n)
    {
      theObj = eval(obj+'(menu)');
      if (theObj)
      {
         theObj.style.visibility = "visible"

          if (orientation.toLowerCase()=="vertical"){
            theObj.style.left=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oLeft+oWidth+cellBorder+parseInt(horizontalOffset.split(",")[quant-1]):oLeft+oWidth+cellBorderOffset+parseInt(horizontalOffset.split(",")[quant-1]);
            theObj.style.top=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oTop-cellBorder+parseInt(verticalOffset.split(",")[quant-1]):oTop+parseInt(verticalOffset.split(",")[quant-1])-browserAdjustment}
          else{
            theObj.style.left=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oLeft-cellBorder+parseInt(horizontalOffset.split(",")[quant-1])+alignAdjustment:oLeft+parseInt(horizontalOffset.split(",")[quant-1])-browserAdjustment+alignAdjustment;
            theObj.style.top=(menuStyle.split(",")[quant-1].toLowerCase()=="flat")?oTop+oHeight+cellBorder+parseInt(verticalOffset.split(",")[quant-1]):oTop+oHeight+cellBorderOffset+parseInt(verticalOffset.split(",")[quant-1]);}
        }
      
       highlightMenu('main',n,'','hover',quant)
       if (eval("subMenu"+quant)[param].length > 0)
       {
         for (x=0; x<eval("subMenu"+quant)[param].length; x++)
         {
           eval (obj+'("'+quant+'subMenu'+param+x+'").className = "rcSubMenuStatic'+quant+'"')
           eval (obj+'("'+quant+'subLink'+param+x+'").className = "rcSubMenuStatic'+quant+'"')         
         }
       }
    }
    else 
    {  
      for (x=1; x<quantity+1; x++)
      {       
        menu = x+"MENU"+n   
        //alert(menu)     
        if (eval(obj+'(menu)'))
        {
          eval(obj+'(menu).style.visibility = "hidden"')            
        }
        highlightMenu ('main',n,'','static',quant)
      }
    }
    n++
  }  
}

// Re-set timer for sub menus
function hoverMenu()
{
  if(timer)
  clearTimeout(timer)
}

// Set timer for sub menus
function clearMenu(quant,menu)
{
  setDelay = subMenuDelay*1000
  delay = (eval("subMenu"+quant)[menu].length > 0)?setDelay:1
  
  timer = setTimeout("popDown("+quant+","+(eval("Menu"+quant).length + 1)+")",delay)
}

// when you click the box, perform the same function as if the user had clicked the hyperlink
function tdMouseClick(theElement)
{
  eval(obj+'(theElement).click()')
}
