﻿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 dopaypal(sVal)
{
	var tbox;
	tbox = document.getElementById('item_name');

	if (tbox)
	{
		tbox.value = sVal;
		tbox.form.action='https://www.paypal.com/cgi-bin/webscr';
		tbox.form.submit();
	}
}

function emailharryimage()
{
    jemail("baldharry", "juno", "com", "", "<img src='/images/home_05.jpg' width='282' height='327' alt='' border='0'>");
}

function emailharry()
{
    jemail("baldharry", "juno", "com", "", "");
}