// subwindow open
function Win_Open(url,name,x,y) {
	if( navigator.appVersion.indexOf("Mac",0)!= -1)
	{
		if(document.all)
		{
			x = eval(x) + 10;
			subWin = window.open(url,name,'width=' + x + ',height=' + y + ',toolbar=0,location=0,directories=0,status=0,resizable=1,scrollbars=1');
		}
		else if(document.layers)
		{
			x = eval(x) + 22;
			subWin = window.open(url,name,'width=' + x + ',height=' + y + ',toolbar=0,location=0,directories=0,status=0,resizable=1,scrollbars=1');
			subWin.focus();
		}
		else
		{
			x = eval(x) + 15;
			subWin = window.open(url,name,'width=' + x + ',height=' + y + ',toolbar=0,location=0,directories=0,status=0,resizable=1,scrollbars=1');
			subWin.focus();
		}
	}
	else
	{
		if(document.all)
		{
			x = eval(x) + 22;
			y = eval(y) + 10;
			subWin = window.open(url,name,'width=' + x + ',height=' + y + ',toolbar=0,location=0,directories=0,status=0,resizable=1,scrollbars=1');
		}
		else if(document.layers)
		{
			x = eval(x) + 15;
			y = eval(y) + 10;
			subWin = window.open(url,name,'width=' + x + ',height=' + y + ',toolbar=0,location=0,directories=0,status=0,resizable=1,scrollbars=1');
			subWin.focus();
		}
		else
		{
			x = eval(x) + 20;
			subWin = window.open(url,name,'width=' + x + ',height=' + y + ',toolbar=0,location=0,directories=0,status=0,resizable=1,scrollbars=1');
			subWin.focus();
		}
	}
}

