var gAutoPrint = true; // Tells whether to automatically call the print function

function printSpecial()
{
if (document.getElementById != null)
{
var html = '<html>\n<head>\n';

if (document.getElementsByTagName != null)
{
var headTags = document.getElementsByTagName("head");
if (headTags.length > 0)
html += headTags[0].innerHTML;
}

html += '\n</head>\n<body style="width:850px;margin-left: auto;margin-right: auto;padding: 0;">\n';
html += '\n<div style="width:650px;height:59px;"><div style="width:227px;height:59px;float:left;"><a href="http://www.orissa360.com" title="Orissa360"><img alt="Orissa360" src="http://www.orissa360.com/user360/gui/img/logo-orissa-360.png" style="border: 0px;" title="Orissa360" /></a></div>\n';
html += '\n<div style="width:105px;margin-left:15px;margin-top:42px;font-size:12px;color:#FF6633;float:left;">local goes global</div></div><br/> \n';
var printReadyElem = document.getElementById("printReady");
var printReadyElem1 = document.getElementById("printReady1");
var printReadyElem2 = document.getElementById("printReady2");
html += '\n<br/><div style="width:486px;clear:left;">\n';
if (printReadyElem != null)
{
	html += printReadyElem.innerHTML;
}
html += '\n</div>\n';
html += '\n<hr style="width:100%;float:left;color:#C0C0C0;background-color:#C0C0C0;height:1px;border:none;margin-bottom:3px;"/>\n';
if(printReadyElem1 != null)
{
	html += printReadyElem1.innerHTML;
}

if(printReadyElem2 != null)
{
	html += '\n<br/><hr style="width:100%;float:left;color:#C0C0C0;background-color:#C0C0C0;height:1px;border:none;margin-bottom:3px;"/>\n';
	html += printReadyElem2.innerHTML;
	html += '\n<br/><hr style="width:100%;float:left;color:#C0C0C0;background-color:#C0C0C0;height:1px;border:none;margin-bottom:15px;"/>\n';
}

if((printReadyElem == null) && (printReadyElem1 == null) && (printReadyElem2 == null))
{
alert("Could not find the printReady function");
return;
}

html += '\n</body>\n</html>';

var printWin = window.open("","printSpecial");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
if (gAutoPrint)
printWin.print();
}
else
{
alert("The print ready feature is only available if you are using an browser. Please update your browswer.");
}
}