

/*
 * Email 2 Friend
 *
 * This JavaScript pops-up a window which allows the user to send
 * the currently-viewed page's URL to a friend via email.
 *
 * M Schulman, Nov 2000
 *
 */

function e2f() {

	var newWindow = window.open("", "e2f", "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=300,height=300");
	newWindow.document.open("text/html");
	with (newWindow.document) {
		writeln("<HEAD><TITLE>Email To A Friend</TITLE></HEAD>");
		writeln("<BODY BGCOLOR=White>");
		writeln("<FORM METHOD=POST ACTION=http://www.isoc.org/cgi-bin/e2f.cgi>");
		writeln("<TABLE WIDTH=250>");
		writeln("<TR><TD COLSPAN=3 ALIGN=CENTER BGCOLOR=Gray>Send URL To A Friend</TD></TR>");
		writeln("<TR><TD COLSPAN=3>Enter one or more destination addresses in the 'To:' field, followed by your return address in the 'From:' field.  Hit 'Send' when ready or 'Cancel' to quit.<HR></TD></TR>");
		writeln("<TR><TD ALIGN=RIGHT><B>To:</B></TD>");
		writeln("<TD COLSPAN=2><INPUT NAME=dst_email SIZE=35></TD></TR>");
		writeln("<TR><TD ALIGN=RIGHT><B>From:</B></TD>");
		writeln("<TD COLSPAN=2><INPUT NAME=src_email SIZE=35></TD></TR>");
		writeln("<TR><TD ALIGN=RIGHT><B>Subj:</B></TD>");
		writeln("<TD COLSPAN=2>", this.document.title);
		writeln("</TD></TR>");
		write("<INPUT TYPE=HIDDEN NAME=subj VALUE=\"");
		writeln(this.document.title, "\">");
		writeln("<TR><TD ALIGN=RIGHT VALIGN=TOP><B>Body:</B></TD>");
		writeln("<TD COLSPAN=2 ALIGN=LEFT>Hi -");
		writeln("Thought you might be interested in this article from");
		writeln("the Internet Society's <I>e-OnTheInternet</I>:<P>");
		writeln("<CENTER>",this.document.location);
		write("<INPUT TYPE=HIDDEN NAME=url VALUE=\"");
		writeln(this.document.location, "\">");
		writeln("</CENTER></TD></TR>");
		writeln("<TR><TD></TD>");
		writeln("<TD ALIGN=CENTER>");
		writeln("<INPUT TYPE=SUBMIT NAME=SEND VALUE=Send></TD>");
		writeln("<TD ALIGN=CENTER>");
		writeln("<INPUT TYPE=BUTTON NAME=CANCEL VALUE=Cancel onClick=\"window.close();\">");
		writeln("</TD></TR></TABLE>");
		writeln("</FORM></BODY></HTML>");
		close();
	};
}


