function openprintwindow() 
{
	var str = location.href;
	var myChar = ''
	if (str.indexOf('?') != -1) 
	{
		myChar = '&';
	}
	else
	{
		myChar = '?';
	}	
	var mywindow = window.open(str + myChar + 'print=true', 'printwindow', 'menubar=yes, location=no, scrollbars=yes, width=740, height=550');	
	mywindow.print();	
}

function emailPage()
{
	window.open('/EmailPage.aspx?ReferenceURL='+location.href + "&PageName=abc" + window.name,"_new","width=435,height=475,status=0,location=0,scrollbars=0");
}

function KeyPress(myfield, e, destination)
{
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return true;

	if (keycode == 13)
	{
	    location.href=destination+myfield.value;
		return false;
	}
	else
		return true;
}
function goSearch()
{
	location.href = "/SiteSearch.aspx?qu=" + document.getElementById('txtSearchCriteria').value;
}

function do_PostBack()
{

    document.forms[0].submit();
    return false;
    
}
