/* Coypright pop-up window
   Call from page with:
   <font face="Arial Narrow,Arial,Helvetica" size="-2"><a href="copyright.htm" onclick="copyright()" TARGET="copyright_home" onMouseOver="window.status='Systek Labs, Inc. - (c) Copyright Statement';return true" onMouseOut="window.status=' ';return true">&copy; &nbsp; Copyright 2002 - 2006 &nbsp; 
   <font face="Copperplate Gothic Light,Arial Narrow,Arial,Helvetica">Systek Labs</font>, Inc.</a>&nbsp;&nbsp;All Rights Reserved.&nbsp;</font>
*/

    function copyright() { window.open("","copyright_home","toolbar,status,menubar,scrollbars,resizable,copyhistory,width=800,height=380") }

/*  External details half-height (800x380) pop-up window
    Call from page with:
    <a href="[details uri]" onclick="details()" TARGET="details_home">[details name]</a>
*/
    
    function details() { window.open("","details_home","toolbar,status,menubar,scrollbars,resizable,copyhistory,width=800,height=380") }
    
/*  External site (800x600) pop-up window
    Call from page with:
    <a href="[external site uri]" onclick="popup()" TARGET="popup_window" onMouseOver="window.status='[external site name]';return true" onMouseOut="window.status=' ';return true"><img border="0" src="org_logos/[external site logo]" width="83" height="56" align="middle" alt="[external site alt text]"></a>
*/

    function popup() { window.open("","popup_window","width=800,height=600,menubar=yes,location=yes,toolbar=yes,resizable=yes,status=yes,scrollbars=yes,titlebar=yes") }

/*-- EMAIL ENCRYPTION v1.0 (Chaz Cone)

 The purpose of this function is to encrypt email addresses so that they
 cannot be harvested by web spiders.  The email addresses may be clickable
 links (mailto:) or not.

 The encrypt_mail parameters are:

     part1 = the left part of the email address (like: chaz)
     part2 = the right part of the email address (like: chazcone.com)
     part3 = optional text in the mailto (like: ?subject=From this page)
     part4 = optional; if omitted, the function displays the email
             address as the link.  If present, part4 becomes the visible link
     part5 = if the 5th parameter is "nolink", the email addy will be
              displayed but will NOT clickable; anything except "nolink"
              makes it a clickable link.

 Examples:
 
 In the body where you want the email address to appear place the call to
   encrypt_mail in one of these formats:

 encrypt_mail ("chaz","chazcone.com","","","nolink")
   This will yield (non-clickable)

 encrypt_mail ("chaz,"chazcone.com","","","")
   This will yield (clickable) 

 encrypt_mail ("chaz,"chazcone.com","?subject:From Page","","")
   This will yield (clickable) with a subject

 encrypt_mail ("chaz,"chazcone.com","?subject:From Page","Chaz","")
   This will yield "Chaz" (clickable) with a subject

*/ 

function encrypt_mail(part1,part2,part3,part4,part5) { 

// Initialize work variables

var prefix="<a href=\"mai" ;
var email="";
var finalassembly="";

prefix+="lto:" ;
email=part1+"@"+part2 ;    	

if (part5=="nolink") {		// if no link required, we're done!
    finalassembly=email
}
else 
    if (part4=="") { 		// If they don't want something displayed other than
					// email address
       finalassembly=prefix+email+part3+"\">"+email+"</a>" ;
  }
   else 
					
       finalassembly=prefix+email+part3+"\">"+part4+"</a>" ;
       document.write(finalassembly);
}

/* 

 Instructions:
 -------------   
 Place all this code in the <head> area
 or call this from the <head> area via
 <script language="JavaScript" src="master.js" ></script>

 Place the following 3-line call to encrypt_mail where you want the email
   address to appear; replace quoted strings with your appropriate content (see
   above).  Be sure to remove the // characters from the beginning of each line.
 
*/

// <script language="JavaScript">
// encrypt_mail("firstpart","secondpart","?subject=","displayname","link");
// </script>

