// open a window and starts the print dialog
function doPrintPopup()
{
	if (window.location.search.length) {
		newurl = window.location.href+'&print=1';
	}
   else {
		newurl = window.location.href+'?print=1';
	}

	window.open(newurl,'print','width=700,height=900,toolbar=0,location=0,scrollbars=yes,resizable=yes');
}


// open a popup-window
function popup(theURL,features) 
{ 
  pop = window.open(theURL,'pop',features,'menubar=no,scrollbars=no,resizable=no,top=50,left=50');
}
