var newwindow = '';

function PopUp(openerstring,windowname,wheight,wwidth,wtop,wleft) {
	if (!newwindow.closed && newwindow.location) {
		newwindow.location.href = openerstring;
	}
	else {
		var windowparam = 'height=' + wheight + ',width=' + wwidth + ',top=' + wtop + ',left=' + wleft;
		newwindow=window.open(openerstring,windowname,windowparam);
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
}

