﻿function ClickheretoprintGallery()
{ 
  
  if(location.href.indexOf('/') != -1 || location.href.indexOf('/members/') != -1 || location.href.indexOf('/Login/') != -1 || location.href.indexOf('/Product/') != -1 || location.href.indexOf('/product/') != -1 || location.href.indexOf('/login/') != -1)
  {
      
      fun2();
      return false;
  }
}
function fun2()
{

    var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
    disp_setting+="scrollbars=yes,width=800px height=500px top=100,left=50,right=50";  
    var content_value = document.getElementById("PrintArea").innerHTML; 
    var docprint=window.open("","",disp_setting); 
    docprint.document.open();
    docprint.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'); 
    docprint.document.write('<html xmlns="http://www.w3.org/1999/xhtml">'); 
    docprint.document.write('<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Real Property Management </title>'); 
    docprint.document.write('<link rel="stylesheet" href="../Resources/CSS/print.css" type="text/css"  media="print"  />');
    
//     docprint.document.write('<link rel="stylesheet" href="Resources/CSS/print.css" type="text/css"  media="print"  />');
//    docprint.document.write('<link rel="stylesheet" href="../Resources/CSS/frontendprint.css" type="text/css"  />');
    docprint.document.write('<link rel="stylesheet" href="../Resources/CSS/FrontendLayout.css" type="text/css"  />');
    docprint.document.write('<link rel="stylesheet" href="Resources/CSS/frontendprint.css" type="text/css"  />');
    docprint.document.write('</head><body onLoad="self.print()"><left>');
    docprint.document.write('<div><p class="logo"><a><img src="images/logo-bar.png" class="header-logo" border="0" /></a></p><div id="PrintArea" style="float:left; margin:0 20px; text-align:left;">' + content_value + '</div></div></left></body></html>'); 
      docprint.document.close(); 
   docprint.focus(); 
     
 
    
}








