var newwindow = '';

function popitup(PID) {
	var url = 'new.php?' + PID;
	if (!newwindow.closed && newwindow.location) {
		newwindow.location.href = url;
	} else {
		newwindow=window.open(url,'newwin','height=550,width=590,scrollbars');
			if (!newwindow.opener) newwindow.opener = self;
	}

	if (window.focus) {newwindow.focus()}
	return false;
}
