
function alternate( $pTableID )
{
   if ( ( document.getElementById ) && ( document.getElementsByTagName ) )
   {
	   var $theTable = document.getElementById( $pTableID );
	   var $theRows = $theTable.getElementsByTagName( "tr" );
	
		var $storeRowArray = new Array();
	   for( $i = 0; $i < $theRows.length; $i++ )
	   {
	   		$rowClassName = $theRows[ $i ].className;
			if ( ( "stateRow" != $rowClassName ) && ( "theader" != $rowClassName ) )
		    { $storeRowArray.push( $theRows[ $i ] ); }
	   }
	  
	  for( $i = 0; $i < $storeRowArray.length; $i++ )
	   {
			if( $i % 2 == 0 )
			{ $storeRowArray[ $i ].className = "even_alternate_color"; }
			else
			{ $storeRowArray[ $i ].className = "odd_alternate_color"; }
	   }
	}
}








function popWindow( $pFileName, $pWindowName, $pWidth, $pHeight )
{
	$theWidth = $pWidth;
	if ( '' == $theWidth )
	{ $theWidth = 400; }
	
	$theHeight = $pHeight;
    if ( '' == $theHeight )
	{ $theHeight = 400; }
	
	$paramStr = "width=" + $pWidth + ", height=" + $pHeight + '"';
    $theWindow = window.open( $pFileName, $pWindowName, $paramStr );
	
	$theWindow.resizeTo( $theWidth, $theHeight );
	$theWindow.focus();
	
	return false;
}
