//Open a New Window with ..
function openWindow(url) {
window.open(url,"",'width=710,height=395,scrollbars=yes,scrolling=yes,resizable=yes,status=yes,toolbar=no,location=no,menubar=yes');
}

//Open Image
function image(url) {
	image_window = window.open(url,"",'width=720,height=520,scrollbars=yes,scrolling=yes,resizable=yes,status=yes,toolbar=no,location=no,menubar=yes');
	image_window.document.write("<html><head>\n<link rel=stylesheet href=hhraStyle.css type=text/css>\n</head>\n");
	image_window.document.write('<body>\n<table align="center" class="formTable" style="background-color:#ffffff;">\n<tr>\n<td align="center">');
	image_window.document.write('<img src="' + url + '">');
	image_window.document.write('</td>\n</tr>\n<tr>\n<td align="center">\n');	
	image_window.document.write('<input type="image" src="images/ButtonClose.gif" value="Close Window" border="0" onclick="window.close();">');
	image_window.document.write('</td>\n</tr>\n</table>');
	image_window.document.write('</body></html>');
}

//Print Body Contents
function pp() {
	var oContent;

	pp_date = new Date();
	pp_window = window.open('','ppwin' + pp_date.getTime(), 'width=700,height=500,scrollbars=yes,scrolling=yes,toolbar=yes,resizable=yes');
	pp_window.document.write("<html><head>\n<title>\n" + document.title + "\n</title>\n<link rel=stylesheet href=hhraStyle.css type=text/css>\n</head>\n");
	pp_window.document.write('<body style="background=color:#ffffff;" onload="window.print();">');
	pp_window.document.write("<p align='right'><input type='button' value='Print' onClick='window.print();'> <input type='button' value='Close' onClick='window.close();' class='inputButtonSearch'></p>");
	oContent = document.getElementById( "content" );
	pp_window.document.write( oContent.innerHTML );	
	pp_window.document.write("</body></html>");
	void(pp_window.document.close());
}