﻿function sendContent(){
	//var contentDiv = document.getElementById('content');
  okienko=window.open("","","width=320,height=120,scrollbars=no");
  okienko.creator = self;
  okienko.document.write("<HTML><HEAD><meta http-equiv='Content-Type' content='text/html; charset=utf-8'><TITLE><%=server_name%> , Agro-Expo, Bau-Expo</TITLE>");
  okienko.document.write('<LINK href="/css/styleprint.css" type="text/css" rel="stylesheet" title="default">');
  okienko.document.write('<script src=\"/js/sendcontent.js\"></script>');
  okienko.document.write('</HEAD>');
  okienko.document.write("<BODY align=center valign=center style='margin:20px'>");
   okienko.document.write("<p class=stop align=center>Podaj e-mail odbiorcy:<br><br><table border=0 align=center><tr><td>");
  okienko.document.write("<form id=\"sendform\" action=\"dosend.asp?\" onsubmit=\"return doSendContent();\" method=\"POST\">");
  okienko.document.write("<input type=\"text\" name=\"sendto\" id=\"sendto\" value=\"\" />");
  okienko.document.write("<input type=\"hidden\" name=\"sendval\" id=\"sendval\" value=\"\" />");
  okienko.document.write("<input type=\"submit\" id=\"dosend\" value=\"wyślij\" />");
  okienko.document.write("</form>");
  okienko.document.write("</td></tr></table></BODY></HTML>") 
  okienko.document.close();
  okienko.focus();
	
}
function doSendContent() {
	str = window.opener.document.getElementById('content').innerHTML;
	document.getElementById("sendval").value = str;
	return true;
}


