// JavaScript Document
function specifyRow()
{
	var x=document.getElementById('myTable');
	var param = getParameter( window.top.location.search.substring(1), 'message' );
	if ( param != null )
	{
			if ( trim(param).length > 0 )
			{
				x.style.display = '';
				x.bgcolor = "#CC6600";
			}
			else 
			{
				x.style.display = 'none'; 
				x.bgcolor = "#FFFFFF";
			}
	}
	else
	{
		x.style.display = 'none';
		x.bgcolor = "#FFFFFF";
	}
}
function getParameter ( queryString, parameterName ) 
{
   // Add "=" to the parameter name (i.e. parameterName=value)
   var parameterName = parameterName + "=";
   if ( queryString.length > 0 ) {
	  // Find the beginning of the string
      begin = queryString.indexOf ( parameterName );
      // If the parameter name is not found, skip it, otherwise return the value
      if ( begin != -1 ) {
         // Add the length (integer) to the beginning
         begin += parameterName.length;
         // Multiple parameters are separated by the "&" sign
         end = queryString.indexOf ( "&" , begin );
      if ( end == -1 ) {
         end = queryString.length
      }
      // Return the string
      return unescape ( queryString.substring ( begin, end ) );
   }
   // Return "null" if no parameter has been found
   return "";
   }
}
// Removes leading whitespaces
function LTrim( value ) {
	
	var re = /\s*((\S+\s*)*)/;
	return value.replace(re, "$1");
	
}

// Removes ending whitespaces
function RTrim( value ) {
	
	var re = /((\s*\S+)*)\s*/;
	return value.replace(re, "$1");
	
}

// Removes leading and ending whitespaces
function trim( value ) {
	
	return LTrim(RTrim(value));
	
}

