//Open New Window, Reuse Window, and Set Focus
var newwindow = '';
var w = '';
var strArgs = '';
function openwin(url,w) {
strArgs='right=0,height=500,width=' + w + ',scrollbars=yes,resizable=yes';
	if (!newwindow.closed && newwindow.location) {
		newwindow.location.href = url;
	}
	else {
		newwindow=window.open(url,'name',strArgs);
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}
