/*
-------------------------------------------------------------------
E-mail Link Script Version 1.0

 By Terry L. Coffee 

This script may only be used and distributed  with the 
written consent of Terry Coffee
 
The disclaimer must remain intact.

DISCLAIMER: Use this script with caution. 
The author takes no responsibility for data loss
resulting from the use of this script.
-------------------------------------------------------------------

INSTRUCTIONS - Read Before Using Script

Step 1
Configure the variables as indicated by the comments.
 
Step 2:
Add the following code to the <head> section of your login page: 

<script src="../js/email.js"></script> 

Change "email.js" to reflect the correct path to this script
file on your server. 
 
Step 3:
Add this code at the place you want on the web page to show:
 
<SCRIPT LANGUAGE="JavaScript">
	emailmess("<B>This message</B>");
</script>

Step 4:
Upload this script and your html pages to the relevant directories
on your server.   

*/

/*
-----------------------------------------------------------------------------------
            ( Global to this script )

            ernie29@comcast.net   
----------------------------------------------------------------------------------
*/

var user = "ernie29";
var site = "comcast.net";

/*
-----------------------------------------------------------------------------------
     email link
 
<SCRIPT LANGUAGE="JavaScript">
	email();
</script>

----------------------------------------------------------------------------------
*/

function email() {


document.write('<a href=\"mailto:' + user + '@' + site + '\" ');
document.write(user + '@' + site + '<b>e-mail</b></a>');

}

/*
-----------------------------------------------------------------------------------
     email for Text link
 
<SCRIPT LANGUAGE="JavaScript">
	emailmess("This message");
</script>

<SCRIPT LANGUAGE="JavaScript">
	emailmess("<B>This message</B>");
</script>

----------------------------------------------------------------------------------
*/

function emailmess(mess) {

document.write('<a href=\"mailto:' + user + '@' + site + '\"  title=\"To send me e-mail, click here\" Style=\"CURSOR: url(\'../css/pen.cur\');\" ');
document.write('> '+mess+' </a>');

}


/*
-----------------------------------------------------------------------------------
     email for button Graphic

     <SCRIPT LANGUAGE="JavaScript">
		ermal();
	</script>

<img src="../../den/buttons/email.gif" alt="Click here to email" border=0>
</a>
 ----------------------------------------------------------------------------------
*/

function ermal() { 

document.write('<a href=\"mailto:' + user + '@' + site + '\"> ');
}



/*
-----------------------------------------------------------------------------------
     Custom_email

	Syntax: email_other(name,domain,subject, hyperlinktag)

     <SCRIPT LANGUAGE="JavaScript">
		email_other('Bill', 'bloomcounty.com', 'Feedback on changes', 'e-mail me' );
	</script>


'?subject='+subject+'
 ----------------------------------------------------------------------------------
*/

function email_other(name,domain,subject,tag) { 

 document.write('<a href=\"mailto:' + name + '@' + domain +  '?subject='+subject+'\"  title=\"To send me e-mail, click here\" Style=\"CURSOR: url(\'../css/pen.cur\');\" ');
 document.write('> '+tag+' </a>');
}

/*
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
            Form_Post

<SCRIPT LANGUAGE="JavaScript">
	Form_Post();
</script>

<INPUT type=hidden value=tabormagic@hotmail.com name=emailto>
<INPUT type=hidden value=Terrylcoffee@hotmail.com name=emailfrom> 
<INPUT TYPE=hidden NAME=subject VALUE="Magic Convention, Event or Lecture Submission">
<INPUT type=hidden value="Form Submission" name=emailsubject> 
<! INPUT type=hidden value=http://tabotmagic.com/success.html name=emailconfirm>
<INPUT type=hidden value=success.html name=emailconfirm>

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*/
function Form_Post() { 

    	document.write('<FORM id="Contact_Form" name="Contact_Form" ENCTYPE="text/plain" action="mailto:' + user + '@' + site + '?subject=Feedback New Event to list" method=post>');
}


/*
-----------------------------------------------------------------------------------
     Custom_Form_Post

	Syntax: Custom_Form_Post(id,name,subject)

     <SCRIPT LANGUAGE="JavaScript">
		Custom_Form_Post('Contact_Form', 'Contact_Form', 'Feedback New Event to list' );
	</script>

</a>
 ----------------------------------------------------------------------------------
*/

function Custom_Form_Post(id,name,subject) { 

    	document.write('<FORM id="'+id+'" name="'+name+'" ENCTYPE="text/plain" action="mailto:' + user + '@' + site + '?subject='+subject+'&cc=terrylcoffee@hotmail.com" method=post>');
}


