﻿//<script language="Javascript" type="text/javascript">
    /*  Kimik Web JAvaScript functions. A collection of generalized javascript functions.
    */
//------------------------------------------------------------------- 
	/*
	Kimik Javascript e-mail inserter:
	This functions purpose is to minimize spam searchers to 
	retreive the e-mail addresse from webpages. It is simple
	and will currently avoid most "spam robots" from fetching
	the mail address.
	
	Code:
	function KI_ePost(indi, dom, booLink, title, image) {
	indi: first part of mail before the at
	dom:  string after at
	booLink (boolean): true: is making the mailto link else (false) no link/just text/image)
	title: if length greater than zero, optional text will be shown
	image: image source will replace mail text and title text (mail text) if char length is greater than 4 chars.
	*/
			
	function KI_ePost(indi, dom, booLink, title, image) {
		var epost = '';
			//		epost = indi +'@' + dom;
		if(booLink)
		{
			epost = '<a href="mailto:' +indi+'@'+ dom +'">';
			if(image.length > 4)
			{
				epost += '<img border=0 alt="e-mail" src="'+ image +'"></a>';
			}
			else
			{
				if(title.length > 0)
  					epost += title +'</a>';
  				else
  					epost += indi+'@'+ dom +'</a>';
  			}
  			//return epost;
		}
		else
		{
    		epost += indi+'@'+ dom;
		}
		return epost;
	}
    /*
    Next function:
    */
//</script>

