openprint = function() {
	var currquery = location.search.substring(1); 
	window.open(location.href+(currquery?"&":"?") + "p=1");
}
