﻿// JScript File

function print(divId)
{
//open new window set the height and width =0,set windows position at bottom
/*var a = window.open ('','','left =' + screen.width + ',top=' + screen.height + ',width=0,height=0,toolbar=0,scrollbars=0,status=0');*/


var a = window.open ('','_new','menubar=yes,scrollbars=yes,resizable=yes');


//write gridview data into newly open window
a.document.write("<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">");
a.document.write(document.getElementById(divId).innerHTML);
a.document.close();
a.focus();
//call print
a.print();
////a.close();
return false;
}

