function popNamed(gotourl,mywidth,myheight,name) {
	mystring = 'width=' + mywidth + ',height=' + myheight + ',toolbar=0,location=0,menubar=0,resizable=1,titlebar=1,directories=0,status=0,scrollbars=1'
	var popWindow=window.open(gotourl,name,mystring);
	if (!popWindow.opener)
   		popWindow.opener = self;
	popWindow.focus();
	return true;
}

function popWin(gotourl,mywidth,myheight) {
	mystring = 'width=' + mywidth + ',height=' + myheight + ',toolbar=0,location=0,menubar=0,resizable=1,titlebar=1,directories=0,status=0,scrollbars=1'
	launchWindow(gotourl,mystring);
}

function popNavWin(gotourl,mywidth,myheight) {
	mystring = 'width=' + mywidth + ',height=' + myheight + ',toolbar=1,location=0,menubar=0,resizable=1,titlebar=1,directories=0,status=1,scrollbars=1'
	launchWindow(gotourl,mystring);
}

function popFixed(gotourl,mywidth,myheight) {
	mystring = 'width=' + mywidth + ',height=' + myheight + ',toolbar=0,location=0,menubar=0,resizable=0,titlebar=1,directories=0,status=0,scrollbars=0'
	launchWindow(gotourl,mystring);
}

function fullWin(gotourl) {
	var fullWindow = window.open(gotourl,'','resizable=1,titlebar=1,screenX=0,screenY=0,left=0,top=0,height=' + (screen.availHeight - 30) + ',width=' + (screen.availWidth - 10));
	if (!fullWindow.opener)
   		fullWindow.opener = self;
	return;
}

function launchWindow(gotourl,mystring) {
	var popWindow=window.open(gotourl,'',mystring);
	if (!popWindow.opener)
   		popWindow.opener = self;
	popWindow.focus();
	return;
}
