function mailDomail2(sAddr,bAlert) {
	var i = 1;
	if (bAlert) {
		i = window.confirm("Data Protection:  Any personal information which you send to the National\nInstitute for Health and Clinical Excellence, including medical information, will be\nheld on the Institute's files in accordance with the Data Protection Act\n1998.  Such information will only be used for the purpose of dealing with\nyour enquiry and consideration of the issues raised in your correspondence,\nand will not be passed on to any other persons or organisations outside of\nthe Institute.\n\nI have read and understood this statement.\n");
	}
	if(i) { window.open('mailto:'+sAddr); }
}


function mailUnencode(cAddr) {
	var sAddr="";
	var c;
	
	for(var i=0; i<cAddr.length; i++) {
		c=cAddr.charCodeAt(i);
		c = c - 1;
		sAddr = sAddr + String.fromCharCode(c);
	}
	return sAddr;
}

function mailWrite(cAddr,cLink) {
	var sAddr = mailUnencode(cAddr);
	var sLink = mailUnencode(cLink);
	
	document.write("<a href=\"javascript:mailDomail('"+sAddr+"');\">"+sLink+"</a>");
}

function mailWriteNoMsg(cAddr,cLink) {
	var sAddr = mailUnencode(cAddr);
	var sLink = mailUnencode(cLink);
	
	document.write("<a href=\"javascript:mailDomail2('"+sAddr+"',0);\">"+sLink+"</a>");
}


