function jemail(user, domain, suffix, subj, text){
var sSubj;
var sEmail;
var sText;

	sEmail = user + '@' + domain + '.' + suffix;
    
	// Use the subject paramerter if supplied 
	if (subj == '')  {
		sSubj = '';
		}
	else  {
		sSubj = '?Subject=' + subj;
		}
		
	// Use the text paramerter in the <a>text</a> tag if supplied otherwise just use the email address
	if (text == '')  {
		sText = sEmail;
		}
	else  {
		sText = text;
		}
	
	document.write('<a href="' + 'mailto:' + sEmail + sSubj + '">' + sText + '</a>');
}

function showResource(pFileName) {
	//alert('helloJS');
	// specify window parameters
	tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width=750,height=500,top=10,left=10";
	resourceWin = window.open(pFileName, 'newWin', tools);
	resourceWin.focus(); 
	
	// If we are on NetScape, we can bring the window to the front
	if (navigator.appName.substring(0,8) == "Netscape") resourceWin.focus();

}
