

function newsmail(Received, tempLANG)
{

//	var host = "server2.iranvajahan.net";
	Received = "cgi-bin/news_" + tempLANG + ".pl?" + Received;
	var link = "http://server2.iranvajahan.net/cgi-bin/sendarticle.pl?" + Received;
	var language = "";

	switch (tempLANG)
	{
			case 'en':
			{
					language = "english";
					break;
			}	
			case 'ge':
			{
					language = "german";
					break;
			}
			case 'fr':
			{
					language = "french";
					break;
			}
			case 'fa':
			{
					language = "farsi";
					break;
			}
	}


	var w = window.open('', '','width=600, height=380, resizable=yes, menubar=no, location=no, status=no, toolbar=no, scrollbars');

	w.document.writeln("<html><head><meta http-equiv=\"Content-Language\" content=\"en-us\"><title>Mail This Article</title>");
	w.document.writeln("</head><body onLoad=\"window.focus();\" bgproperties=\"fixed\"><center><table BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\"><tr><td>");

	w.document.write("<form action=\"" + link + "\" method=\"POST\" name=\"Mail News\"><br><input type=\"hidden\" name=\"language\" value=\"" + language + "\">");

	w.document.writeln("<table border=\"0\">", "<tr><td colspan=\"3\" height=\"10\"></td></tr>", "<tr><td></td><td colspan=\"2\" nowrap><p align=\"left\"><font size=\"1\" face=\"arial\"><FONT COLOR=\"#ff0000\" size=\"2\">*</FONT> = required field</font></p></td></tr>", "<tr><td width=\"20\"></td><td nowrap><p align=\"left\"><font size=\"1\" face=\"arial\">Name: <FONT COLOR=\"#ff0000\" size=\"2\">*</FONT></font></p></td><td nowrap><div style=\"font-size:13px\"><input type=\"text\" size=\"50\" name=\"name\" style=\"font-size: 8pt; font-family: Arial\" tabindex=\"1\"><div></td></tr>", "<tr><td></td><td nowrap><p align=\"left\"><font size=\"1\" face=\"arial\">Your E-Mail Address: <FONT COLOR=\"#ff0000\" size=\"2\">*</FONT></font></p></td><td nowrap><div style=\"font-size:13px\"><input type=\"text\" size=\"50\" name=\"suggest_from\" style=\"font-size: 8pt; font-family: Arial\" tabindex=\"2\"></div></td></tr>", "<tr><td></td><td nowrap><p align=\"left\"><font size=\"1\" face=\"arial\">Your Friend's E-Mail: <FONT COLOR=\"#ff0000\" size=\"2\">*</FONT></font></p></td><td nowrap><div style=\"font-size:13px\"><input type=\"text\" size=\"50\" name=\"suggest_to\" style=\"font-size: 8pt; font-family: Arial\" tabindex=\"3\"></div></td></tr>", "<tr><td></td><td nowrap><p align=\"left\"><font size=\"1\" face=\"arial\">Subject:</font></p></td><td><div style=\"font-size:13px\"><input type=\"text\" size=\"50\" name=\"subject\" style=\"font-size: 8pt; font-family: Arial\" tabindex=\"5\"></div></td></tr>", "<tr><td></td><td nowrap><p align=\"left\"><font size=\"1\" face=\"arial\">Link:</font></p></td><td><div style=\"font-size:13px\"><input type=\"text\" size=\"68\" name=\"link\" tabindex=\"6\" style=\"font-size: 8pt; font-family: Arial\" disabled  value=\"");

	w.document.writeln(link);

	w.document.writeln("\"></div></td></tr>", "<tr><td></td><td nowrap valign=\"top\"><p align=\"left\"><font size=\"1\" face=\"arial\">Personal Message:</font></p></td><td><div style=\"font-size:13px\"><textarea name=\"message\" rows=\"7\" cols=\"70\" style=\"font-size: 8pt; font-family: Arial\" tabindex=\"7\"></textarea></div></td></tr></table>", "<center><p><input type=\"submit\" name=\"send\" value=\"    send    \"></center></form>", "</td></tr></table></center>", "</body></html>");

}
