﻿function processurl(url)
{
	if(url.indexOf("#")>=0)url=url.substring(0,url.indexOf("#"));
	if(url.indexOf("?")>=0)url+="&amp;";
	else url+="?";
	return url+"printerfriendly=true";
}

function prindi()
{
	window.open(processurl(location.href),"printerfriendly").focus();
}

function prindi2(url)
{
	window.open(processurl(url),"newwin","width=760,height=550,scrollbars=1").focus();
	return false;
}