function mailDomail(sAddr) {
	var i =  window.confirm("All personal information is collected, held and used in strict compliance with the \n Data Protection Act 1998 and the Privacy and Electronic Communications (EC \n Directive) Regulations 2003. Such information will be used for the purpose of \n dealing with any enquiry you may raise about the website or the Quality \n Improvement Agency, being kept informed about QIA services and being given \n the opportunity to get involved in evaluation/improvement of the Excellence \n Gateway. Your details will not be passed on to any other persons or \n organisations outside of the Agency and its contractors. \n\n\n I have read and understood this statement.");
	if(i) { window.open('mailto:'+sAddr); }
}

function mailDomail2(sAddr,bAlert) {
	var i = 1;
	if (bAlert) {
		i = window.confirm("All personal information is collected, held and used in strict compliance with the \n Data Protection Act 1998 and the Privacy and Electronic Communications (EC \n Directive) Regulations 2003. Such information will be used for the purpose of \n dealing with any enquiry you may raise about the website or the Quality \n Improvement Agency, being kept informed about QIA services and being given \n the opportunity to get involved in evaluation/improvement of the Excellence \n Gateway. Your details will not be passed on to any other persons or \n organisations outside of the Agency and its contractors. \n\n\n I have read and understood this statement.");
	}
	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>");
}