// last modified 2007.10.26
var win = null;
var WinList = new Array();
function createWindow(url,width,height,target,all){
	features = 'width=' + width + ',height=' + height;
	if(all=="all"){
		features += ",toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,resizable=yes,scrollbars=yes";
	}else if(all=="all2"){
		features = "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,resizable=yes,scrollbars=yes";
	}else if(all == "no"){
	}else{
		features += ",resizable=yes,scrollbars=yes";
	}
	if(typeof(WinList[target]) != "undefined"){
		if(! WinList[target].closed){
			WinList[target].close();
		}
	}

	WinList[target] = window.open(url, target, features);
	WinList[target].focus();
}


function autoMove(){
	setTimeout("moveW()",3000);
}
function moveW(){
	createWindow(wurl,wwidth,wheight,wname);
	this.close();
}
