
//*****************************************************************************
// Java Script to add a copyright notice to a page with settable parameters.
// Function: Copyright()
//
// Receives: UseColor - 1 = Use the color field else use default color for page.
// 			 ColorVal - When UseColor = 1 then this is the color to use for text.
//			 bigSize - The number of times to increase the text size.
//			 hrLine - 1 = Display a hr line.
//
// Adding this file to the html document:
// 		   <script language="JavaScript" src="../images/copyright.js">
//  	   </script>
//
// Calling the function:
// 		<script language="JavaScript">
// 		<!-- Hide from old browsers.
// 		// Add copyright notice to page.
//		Copyright(1, "#ff0090", 2, 1);
//		-->
//		<script>
//		<!-- This line is to display the copyright notice on old browsers. -->
//		<!--//--><center><b>Copyright © Microsystem Technologies</b></center>
//		</script>   
//*****************************************************************************

  // Add copyright notice function.
  function Copyright(UseColor, ColorVal, bigSize, hrLine)
  {  
	  curdate = new Date();
	  	  	  
	  // Size the text based on input.
	  for(i = 0; i < bigSize; i++)
	  	   	  document.write("<big>");	  
	  	  
	  // If color is used then add the font color information.
	  if(UseColor) document.write("<b><font color=" + ColorVal + ">");
	  
	  // Add horz line if enabled.
	  if(hrLine)
	  {
	  		if(UseColor) document.write("<hr size='4' width='100%' noshade='noshade' color=" + ColorVal + ">");
			else document.write("<hr size='4' width='100%' noshade='noshade' color=>");
	  }
	  
	  // Add the copyright notice.
  	  document.write("<center>Copyright © ");
  	  document.write(" 1995 - " + curdate.getFullYear());
	  document.write(" Microsystem Technologies");	  
		document.write("<a href='&#109;&#97;&#105;&#108;&#116;&#111;&#58;"+
		"&#105;&#110;&#102;&#111;&#64;&#109;&#115;&#116;"+
		"&#109;&#105;&#99;&#114;&#111;&#46;&#99;&#111;"+
		"&#109;&#32;'> "+
		"&#105;&#110;&#102;&#111;&#64;&#109;&#115;&#116;"+
		"&#109;&#105;&#99;&#114;&#111;&#46;&#99;&#111;"+
		"&#109;&#32; </a>");
	  
	  // Add all ending tags.	  
	  if(UseColor) document.write("</center></font></b>");
	  for(i = 0; i < bigSize; i++)
	  	   	  document.write("</big>");	  
}
  
   
