// This function opens links in an external window in a standards compliant way.
// To use it, code the link like this:
// 		<a href="document.html" onclick="setTargetBlank(this);">external link</a>
function setTargetBlank(thelink) {
	thelink.target = "_blank";
}

function popThisBitch(id, type, group1, group2) {
	window.open('/viewimage.php?id='+id+'&type='+type+'&group1='+group1+'&group2='+group2, 'popupwindow', 'toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,copyhistory=no,width=400,height=400');
}
