var newwindow;
function openwindow(myurl,winname){
	if(!newwindow||newwindow.closed){
		newwindow=window.open(myurl,winname,"scrollbars,resizable");
		if(!newwindow.opener){
			newwindow.opener=window;
		}
		newwindow.moveTo(-3,-3);
		newwindow.resizeTo(screen.width+8,screen.height-25);
	}else{
		newwindow.location=myurl;
		newwindow.focus();
	}
}

function openwindow1(myurl){
	openwindow(myurl,"window001");
}

function openwindow2(myurl){
	openwindow(myurl,"window002");
}

function openwindow3(myurl){
	openwindow(myurl,"window003");
}

var smallwindow;
function openwindowsmall(myurl){
	if(!smallwindow||smallwindow.closed){
		var xwidth=260,xheight=210;
		smallwindow=window.open(myurl,"winlogin","width="+xwidth+",height="+xheight);
		smallwindow.moveTo(screen.width/2-xwidth/2,screen.height/2-xheight/2);
		if(!smallwindow.opener){
			smallwindow.opener=window;
		}
	}else{
		smallwindow.location=myurl;
		smallwindow.focus();
	}
}

var mapwindow;
function openwindowmap(myurl){
	if(!mapwindow||mapwindow.closed){
		mapwindow=window.open(myurl,"winmap","scrollbars,resizable");
		if(!mapwindow.opener){
			mapwindow.opener=window;
		}
		mapwindow.moveTo(-3,-3);
		mapwindow.resizeTo(screen.width+8,screen.height-25);
	}else{
		mapwindow.location=myurl;
		mapwindow.focus();
	}
	//mapwindow.Oselect=window.document.form1.selectright;
}