/* example of usage:
<a href="YourWindow.php" target="artpop" onclick="pop_open(this)">
	&gt; What is this?
</a>
*/

function pop_close() {
	if (window.opener) {	window.opener.focus(); }
	window.close();
}

function pop_print() {
	window.print();
}

function pop_open(aTag) {
	// pass an optional second parameter, popup features
	var url = aTag.getAttribute('href');
	var pop_features = "width=543, height=516, scrollbars=yes";
	if (pop_open.arguments.length > 1) {
		pop_features = pop_open.arguments[1];
	}
	var artpop = window.open(url, "artpop", pop_features)
	artpop.focus();
	return artpop;
}

function targetmain(objA) {
	// get href from THIS
	// change the location of the opener
	// focus ME back to the front
	newLoc = objA.href;
	window.opener.location = newLoc;
	window.focus();
}