/**********************************************************************************/
/*                                                                                */
/*  Function Name:  toggle_expanderrow()                                          */
/*  Description:                                                                  */
/*  Parameters                                                                    */
/*  Input:                                                                        */
/*  Output:         FALSE                                                         */
/*                                                                                */
/*  Author:         Raymond Chow                                                  */
/*  Date:           09 January 2010                                               */
/*                                                                                */
/**********************************************************************************/


function toggle_expanderrow() {

  var arg = toggle_expanderrow.arguments;
	
  var thisrow 	  = arg[0];
  var contentid   = arg[1];
  var ajaxurl     = arg[2];

  var css_active    = "on";
  var css_inactive  = "off";
  
  if	(thisrow.className == css_active)	{
    thisrow.className = css_inactive;
  }
  else {

    if  ((document.getElementById(contentid)) && (ajaxurl.length > 0))  {
      ajax_fetch_url(ajaxurl,contentid);
    }

    thisrow.className = css_active; 
  }

  return false;

}



