//function to open new window with contents
function Clickheretoprint()
{ 
  var disp_setting="toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=no,width=940, height=700, left=100, top=10"; 
  var content_vlue = document.getElementById("print_content").innerHTML; 
  //var head_val=document.getElementById("heading").innerHTML;
  var docprint=window.open("","",disp_setting); 
  //alert(docprint);
  docprint.document.open(); 
  docprint.document.write('<html><head><title>Diet by Andrea</title><link href="style/style.css" rel="stylesheet" type="text/css">'); 
  //docprint.document.write('<link href="styles/mama.css" rel="stylesheet" type="text/css">');
  docprint.document.write('</head><body onLoad="javascript:js();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">'); 
  docprint.document.write('<table width="778" border="0"  cellpadding="0" cellspacing="0"><tr><td width="100%" height="46" align="center"><table width="778" border="0" align="left" cellpadding="0" cellspacing="1"><tr><td width="728" height="118"><img src="images/logo.jpg" width="302" height="129" /></td><td width="513">&nbsp;</td></tr></table></td> ');
  docprint.document.write('<tr ><td height="1" align="left"></td></tr>');     
  
  docprint.document.write('<tr><td align="right" valign="bottom" width="678"><a href="javascript:self.print()" style="font-weight: bold;font-color: blue;font-size: 14;text-decoration: none;color: #00451a;"><img src="images/print.png" width="21" height="17"  border="0" title="Print" class="newmenufocus"/>&nbsp;Print</a>');
  docprint.document.write('&nbsp;&nbsp;|&nbsp;');    
  docprint.document.write('<a href="javascript:window.close()" style="font-weight: bold;font-color: blue;font-size: 14;text-decoration: none;color: #00451a;"><img src="images/w_close.gif" width="21" height="17" border="0" title="Close class="newmenufocus"/>&nbsp;Close</a>');            
  // docprint.document.write('<font color="#000000" size="3">' + content_vlue + content_vlue1 + '</font>');
  docprint.document.write('</td></tr></table >');
 // docprint.document.write('<table ><tr><td align="left">' + head_val + '</td> </tr></table>');
  docprint.document.write('<table border="0" width="940" align=center><tr><td width="5">&nbsp;</td><td align="left" width=600 style="font-size: 10px;" >' + content_vlue + '</td> <td width="5">&nbsp;</td></tr><table>');
	 
  //docprint.document.write('<table align="center" width="60%" ><tr><td ></td> <td align="right">');       
  docprint.document.write('<tr><td align="right" valign="bottom" width="678"><a href="javascript:self.print()" style="font-weight: bold;font-color: blue;font-size: 14;text-decoration: none;color: #00451a;"><img src="images/print.png" width="21" height="17"  border="0" title="Print" class="newmenufocus"/>&nbsp;Print</a>');
  docprint.document.write('&nbsp;&nbsp;|&nbsp;');    
  docprint.document.write('<a href="javascript:window.close()" style="font-weight: bold;font-color: blue;font-size: 14;text-decoration: none;color: #00451a;"><img src="images/w_close.gif" width="21" height="17" border="0" title="Close class="newmenufocus"/>&nbsp;Close</a>');            
  docprint.document.write('</td></tr></table >')
    docprint.document.write('<script> function js() { document.getElementById("innermenu").style.display = "none"; }');
  docprint.document.write(' </script>');
 // docprint.document.getElementById("innermenu").style.display = "none";
  docprint.document.close(); 
  docprint.focus(); 

}


