/*
	This file is globally included, and used to store global miscellaneous functions
*/
var mywindow

function emailPage()
{
//alert(escape(location.href));
	window.open('/EmailPage.aspx?ReferenceURL='+escape(location.href), '_new', 'height=475, width=600');
}

function openprintwindow() 
{

	var myChar = (location.href.indexOf('?') != -1) ? '&' : '?'
	mywindow = window.open(location.href + myChar + 'print=true', 'printwindow', 'menubar=yes, location=yes, scrollbars=yes, width=800, height=600 onload=window.print()');	
	if(navigator.userAgent.indexOf('Firefox') != -1) {
		self.setTimeout('mywindow.print()', 1000);
	}
	else {
		mywindow.print();
	}
}
