/* 
** Script Name: nus_mailer.js
**
** Functions usage:
** mailme(email name, text to be display in browser)
**
** Example 1: If the email is ccexxx@nus.edu.sg and displayed as "Email Me"
** mailme('ccexxx','Email Me');     
**
** Example 2: If the email is ccexxx@nus.edu.sg and display as ccexxx@nus.edu.sg
** mailme('ccexxx','');
**
*/

function mailme(email,text){

	str='<a href="mailto:' + email + '@' + 'nus.edu.sg'
	str+= '">'
	if(text==""){
		str+= email
	}else{
		str+= text
	}

	str+='</a>'


	document.write(str);
};
