//HIGHLIGHT CURRENT PAGE

var CurPage = '';

linkCounter = 0;

var alllinks = '';

	function linkPos(obj){

		CurPage = window.location.href;

		var CounterEnabled = 'Y';

		alllinks = document.links.length;
		
		for (var i = 0; i < document.links.length; i++)
		{

		if (document.links[i].href == CurPage && document.links[i]. childNodes[0].tagName == 'EM')
			{
			document.links[i].childNodes[0].style.backgroundColor = '#CCCCFF';
			document.links[i].childNodes[0].style.color = '#fff';

			CounterEnabled = 'N';
			}else{
				if(CounterEnabled == 'Y')	
				{
				linkCounter = parseInt(linkCounter+1);	
				}
			}

		}

	}

// FIELD HIGHLIGHT

	function brdrON(obj){
		obj.style.borderColor = '#aaa';
		obj.style.background = '#fff';
		}

	function brdrOFF(obj){
		obj.style.borderColor = '#eee';
		obj.style.background = '#eee';
		}

//CHECKBOX LINKS

	function checker(objid){
		if (window.document.getElementById(objid).checked == false)
			{
			checker2(objid)
			}
			else
			{
			window.document.getElementById(objid).checked = false
			}
		}

	function checker2(objid){
		window.document.getElementById(objid).checked = true;
		}



// COMPILE E ADDRESS

	var weburl1 = 'crest';
	var weburl2 = 'software.co.uk';

	function mailmaker(nme){
		document.write("<a href='mailto:" + nme + "@" + weburl1 + weburl2 + "'>" + nme + "@" + weburl1 + weburl2 + "</a>")
		}

	function hrefmaker(nme){
		document.write("<a href='mailto:" + nme + "@" + weburl1 + weburl2 + "'>")
		}

