function change(i,color) {
    
    if (document.layers)
        window.document.layers['id' + i].bgColor = color;
    else if (document.all)
        window.document.all['id' + i].style.background = color;
}

function hideEmail(cEmailAddress, cClass, cLinkText){
	var myArray = cEmailAddress.split(",");
	var cNewEmail = "";
	
	//unencode the email address
	for (x=0; x < myArray.length; x++)
		cNewEmail+=String.fromCharCode(myArray[x])
		
	if (cLinkText == "")
		cLinkText = cNewEmail;

	document.write('<a href="mailto:'+cNewEmail+'" class="'+cClass+'">'+cLinkText+'</a>');
}

function NewWindow(mypage, myname, w, h, scroll, menu, iResizable, iStatus) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'menubar='+menu+',height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+iResizable+',status='+iStatus
	win = window.open(mypage, myname, winprops);
	win.focus();
}