jQuery.jPrintArea=function(el){
	var val = new Array();
	val["name"] = $(el).find("[name=name]").attr("value");
	val["addr"] = $(el).find("[name=addr]").attr("value");
	val["mail"] = $(el).find("[name=mail]").attr("value");
	val["year"] = $(el).find("[name=year]").attr("value");
	val["month"] = $(el).find("[name=month]").attr("value");
	val["nengo"] = $(el).find("[name=nengo]").val();
	val["check"] = $(el).find("[type=checkbox]").attr("checked");
var iframe=document.createElement('IFRAME');
var id = "id_" + Math.floor(Math.random() * 100000);
var doc=null;
$(iframe).attr({'style':'position:absolute;width:0px;height:0px;left:-500px;top:-500px;',"id":id});
document.body.appendChild(iframe);
doc=iframe.contentWindow.document;
var links=window.document.getElementsByTagName('link');
doc.write('<html>');
doc.write('<head>');
for(var i=0;i<links.length;i++){
	if(links[i].rel.toLowerCase()=='stylesheet'){
		doc.write('<link type="text/css" rel="stylesheet" href="'+links[i].href+'"></link>');
	}
}
doc.write('</head>');
doc.write('<body id="Restaurant">');
doc.write('<dl class="'+$(el).attr("class")+'">'+$(el).html()+'</dl>');
doc.write('</body>');
doc.write('</html>');
doc.close();
$("#" + id).contents().find("body").find(".name").html("：" + val["name"]);
$("#" + id).contents().find("body").find(".addr").html("：" + val["addr"]);
$("#" + id).contents().find("body").find(".mail").html(val["mail"]);
$("#" + id).contents().find("body").find(".year").html(val["year"]);
$("#" + id).contents().find("body").find(".month").html(val["month"]);
$("#" + id).contents().find("body").find(".nengo").html(val["nengo"]);
$("#" + id).contents().find("body").find("[type=checkbox]").attr("checked",val["check"]);

iframe.contentWindow.focus();
iframe.contentWindow.print();
var title = $(el).find("dt").eq(0).text();
//alert(title + 'の印刷を開始します');
//document.body.removeChild(iframe);
}
