
var subopen
function openMap(url,lang)
{
	subopen=window.open(url,"win"+lang,"width=790,height=580,left=0,top=0,toolbar=1,location=1,directories=0,scrollbars=1,resizable=1,status=1");
	subopen.focus();
}

function imgexp(url,w,h,n){
	var name=n?n:'expimg';
	var width=Number(w)+36;
	var height=Number(h)+185;
	var str='width='+width;
	str+=',height='+height;
	str+=',left=0,top=0,toolbar=1,location=1,directories=0,scrollbars=1,resizable=1,status=1';
	subopen=window.open(url,name,str);
	subopen.focus();
}

function openWin0(url,w,h,n){
	var name=n?n:'win0';
	var width=Number(w);
	var height=Number(h);
	var str='width='+width;
	str+=',height='+height;
	str+=',left=0,top=0,toolbar=1,location=1,directories=0,scrollbars=1,resizable=1,status=1';
	subopen=window.open(url,name,str);
	subopen.focus();
}

function openWin1(url)
{
	subopen=window.open(url,"win1","width=640,height=520,left=0,top=0,toolbar=1,location=1,directories=0,scrollbars=1,resizable=1,status=1");
	subopen.focus();
}

function openWin2(url)
{
	subopen=window.open(url,"win2","width=640,height=500,left=0,top=0,toolbar=0,location=1,directories=0,scrollbars=1,resizable=1,status=1");
	subopen.focus();
}

function openWin3(url)
{
	subopen=window.open(url,"win2","width=600,height=413,left=0,top=0,toolbar=0,location=1,directories=0,scrollbars=0,resizable=0,status=1");
	subopen.focus();
}

function openWin4(url)
{
	subopen=window.open(url,"win2","width=600,height=450,left=0,top=0,toolbar=0,location=1,directories=0,scrollbars=0,resizable=0,status=1");
	subopen.focus();
}

function openWin5(url)
{
	subopen=window.open(url,"win3","width=300,height=420,left=0,top=0,toolbar=0,location=1,directories=0,scrollbars=1,resizable=0,status=0");
	subopen.focus();
}

function openWin6(url)
{
	subopen=window.open(url,"win3","width=400,height=350,left=0,top=0,toolbar=0,location=1,directories=0,scrollbars=1,resizable=0,status=0");
	subopen.focus();
}

function openWin7(url)
{
	subopen=window.open(url,"win2","width=600,height=415,left=0,top=0,toolbar=0,location=1,directories=0,scrollbars=1,resizable=1,status=1");
}

function openWin8(url)
{
	subopen=window.open(url,"win8","width=800,height=600,left=0,top=0,toolbar=0,location=1,directories=0,scrollbars=1,resizable=1,status=1");
}

function openWin9(url,w,h,n){
	var name=n?n:'win9';
	var width=Number(w);
	var height=Number(h);
	var str='width='+width;
	str+=',height='+height;
	str+=',left=0,top=0,toolbar=1,location=1,directories=0,scrollbars=1,resizable=1,status=1';
	subopen=window.open(url,name,str);
	subopen.focus();
}

function openWin10(url)
{
	subopen=window.open(url,"win10","width=1020,height=800,left=0,top=0,toolbar=0,location=1,directories=0,scrollbars=1,resizable=1,status=1");
}

function openWin11(url)
{
	subopen=window.open(url,"win11","width=875,height=600,left=0,top=0,toolbar=0,location=1,directories=0,scrollbars=1,resizable=1,status=1");
}

function openWini01(url)
{
	subopen=window.open(url,"wini01","width=640,height=300,left=0,top=0,toolbar=0,location=1,directories=0,scrollbars=1,resizable=1,status=1");
}
function openWini02(url)
{
	subopen=window.open(url,"wini02","width=640,height=450,left=0,top=0,toolbar=0,location=1,directories=0,scrollbars=1,resizable=1,status=1");
}

function openWinM01(url)
{
	subopen=window.open(url,"winM01","width=850,height=640,left=0,top=0,toolbar=0,location=1,directories=0,scrollbars=1,resizable=1,status=1");
}

function openWinM02(url)
{
	subopen=window.open(url,"winM02","width=850,height=640,left=0,top=0,toolbar=0,location=1,directories=0,scrollbars=1,resizable=1,status=1");
}

function parentOpen(url) {
	if((opener)&&(!opener.closed)){
		opener.location.href=url;
		opener.focus();
	}else{
		window.open(url,'','toolbar=1,location=1,directories=1,scrollbars=1,resizable=1,status=1');
	}
}