
//	*************************************
//	*** Maria Gershman
//	*************************************











//  *************************************




var INCLUDE_SHOW_WARNING_BOTTOM_BEGIN = 0;




//  *************************************

var isErrorHappenedVariable = true;

var isErrorsCollectionVariable = true;

var isShowErrorAvailable = true;

var finalText = "";

var errorLinkText = "";

var errorTableFontColor = "#000000";

var errorLinkFontColor = "#FF0000";

var errorCountText = "an error";

var errorsCollectionLength;

var errorTableName = "errorsTable";

var errorTableStyle = "";

var	errorMessageText = "The content of this page was not displayed properly due to ";

var errorTableHeader = "textErrorTableHeader";

var errorTableContents = "textErrorTableContents";














if(typeof(errorHappened) == "undefined")
{
	
	isErrorHappenedVariable = false;
		
}

if(typeof(errorsCollection) == "undefined")
{

	isErrorsCollectionVariable = false;
			
}
else if(errorsCollection.length == 0)
{

	isErrorsCollectionVariable = false;

}

if(typeof(display) == "undefined")
{
	
	isShowErrorAvailable = false;
		
}

if(typeof(hide) == "undefined")
{

	isShowErrorAvailable = false;
			
}

if(typeof(showHide) == "undefined")
{
	
	isShowErrorAvailable = false;
		
}














if(isErrorHappenedVariable)
{
		
	if(errorHappened)
	{

		if(isErrorsCollectionVariable)
		{
					
			errorsCollectionLength = errorsCollection.length;
			
			if(errorsCollectionLength > 1)
			{
			
				errorCountText = "errors";
			
			}
				
			errorCountText += "&nbsp;";
		
			errorCountText += "(" + errorsCollectionLength + ")";
			
			errorLinkText = "<font color=\"" + errorLinkFontColor + "\">" + errorCountText +"</font></a>";
			
			if(isShowErrorAvailable)
			{

				// USED FOR FLOATING TABLE			
				//errorLinkText = "<a href=\"javascript:void(0)\" onMouseOut=\"hide('" + errorTableName + "'); return true;\" onMouseOver=\"display('" + errorTableName + "', event); return true;\">" + "<font color=\"" + errorLinkFontColor + "\">" + errorCountText +"</font></a>";
		
				errorLinkText = "<a href=\"javascript:void(0)\" onclick=\"showHide('" + errorTableName + "');\">" + "<font color=\"" + errorLinkFontColor + "\">" + errorCountText +"</font></a>";
		
				errorTableStyle = "display:none;";
		
				showHide("WarningTopNav");
		
			}
			
			finalText += "<TABLE id=\"WarningBottomNav\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\" align=\"center\" border=\"0\">";
			
			finalText += "<TBODY>";
			
			finalText += "<TR>";
			
			finalText += "<TD width=\"100%\" height=\"38\" bgcolor=\"#FFFFFF\" class=\"textWarningBottom\">";
			
			finalText += "<DIV id=\"WarningMessageBottom\">";
			
			finalText += errorMessageText + errorLinkText + ".";
			
			finalText += "</div>";
			
			finalText += "</TD>";
			
			finalText += "</TR>";
			
			finalText += "</TBODY>";
			
			finalText += "</TABLE>";

			// USED FOR FLOATING TABLE					
			//finalText += "<table width=\"500\" border=\"1\" bgcolor=\"#FFFFFF\" id=\"" + errorTableName + "\" style=\"z-index: 5; visibility: hidden; border-width: thin; border-color: black; border-style: solid; position: absolute; left: 0; top: 0;\">";
		
			finalText += "<table width=\"100%\" border=\"1\" bgcolor=\"#FFFFFF\" id=\"" + errorTableName + "\" style=\"" + errorTableStyle + "\">";
		
			finalText += "<tbody>";
		
			finalText += "<tr id=\"ErrorTableHeader\">";
			
			finalText += "<td class=\"" + errorTableHeader + "\">";
			
			finalText += "ERROR NUMBER";
		
			finalText += "</td>";
			
			finalText += "<td width=\"100%\" class=\"" + errorTableHeader + "\">";
					
			finalText += "ERROR DESCRIPTION";
		
			finalText += "</td>";
		
			finalText += "<td width=\"100%\" class=\"" + errorTableHeader + "\">";
						
			finalText += "ERROR SOURCE FILE";
			
			finalText += "</td>";
		
			finalText += "</tr>";
		
			for(var i=0; i < errorsCollectionLength; i++)
			{
			
				if (typeof(showStatusMessage) != "undefined")
				{

					showStatusMessage("Processing error item " + (i+1) + " of " + errorsCollectionLength + " ...", "True");
				
				}	
		
				finalText += "<tr>";
		
				finalText += "<td class=\"" + errorTableContents + "\">";
						
				finalText += (i + 1) + ".";
				
				finalText += "</td>";
		
				finalText += "<td class=\"" + errorTableContents + "\">";
				
				finalText += errorsCollection[i].warningInfo;
				
				finalText += "</td>";
		
				finalText += "<td class=\"" + errorTableContents + "\">";
						
				finalText += errorsCollection[i].sourceInfo;
				
				finalText += "</td>";
		
				finalText += "</tr>";
		
			}
			
			finalText += "</tbody>";
						
			finalText += "</table>";
		
			finalText += "<br>";
				
			finalText += "<br>";
			
			finalText += "<br>";
		
		}		
		
	}

}





document.write(finalText);













function display(ident, eventObject)
{
	var element;
	var mousePositionX;
	var mousePositionY;




	if (typeof(ident) != "undefined")
	{
	
		if (typeof(eventObject) != "undefined")
		{
		
				
			element = document.getElementById(ident);

			if (typeof(element) != "undefined")
			{
			
				mousePositionX = eventObject.clientX;
			
				mousePositionY = eventObject.clientY;
				
				element.style.left = (mousePositionX - 400);
			
				element.style.top = (mousePositionY + 30);
			
				element.style.visibility = "visible";

			}

		}

	}

}


	
function hide(ident) 
{
	var element;


	


	if (typeof(ident) != "undefined")
	{
	
		element = document.getElementById(ident);
	
	
		if (typeof(element) != "undefined")
		{
	
			element.style.visibility = "hidden";
		
		}

	}
	
}
	
	



function showHide(inID) 
{


	if (typeof(inID) != "undefined")
	{
	
		element = document.getElementById(inID);
		
		if (typeof(element) != "undefined")
		{
		
			if (element.style.display == "none") 
			{
			
				// "inline"
				element.style.display = "block";
			
			}
			else 
			{
			
				element.style.display = "none";
			
			}
		
		}

	}

}



//  *************************************



var INCLUDE_SHOW_WARNING_BOTTOM_END = 0;




//  *************************************


