var app = navigator.appName.charAt(0);
var ver = navigator.appVersion.charAt(0);
function newwin(url){
	tgt = "mark";
	wx = 320;
	wy = 480;
	x = (screen.width  - wx) / 2;
	y = (screen.height - wy) / 2;
	if ( (app == "N" && ver > 2) || (app == "M" && ver > 3) ) {
	nw = window.open(url,tgt,"width="+wx+",height="+wy+",directories=no,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,"+"left="+x+",top="+y);
	nw.focus();
	return false;
	} else {
	return true;
	}
}


function subwin(url,tgt,wx,wy){
	x = (screen.width  - wx) / 2;
	y = (screen.height - wy) / 2;
	if ( (app == "N" && ver > 2) || (app == "M" && ver > 3) ) {
	nw = window.open(url,tgt,"width="+wx+",height="+wy+",directories=no,location=no,menubar=no,toolbar=no,scrollbars=no,resizable=no,"+"left="+x+",top="+y);
	nw.focus();
	return false;
	} else {
	return true;
	}
}


function gdswin(url){
	tgt = "goods";
	wx = 480;
	wy = 420;
	x = (screen.width  - wx) / 2;
	y = (screen.height - wy) / 2;
	if ( (app == "N" && ver > 2) || (app == "M" && ver > 3) ) {
	nw = window.open(url,tgt,"width="+wx+",height="+wy+",directories=no,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,"+"left="+x+",top="+y);
	nw.focus();
	return false;
	} else {
	return true;
	}
}

function cotywin(url){
	tgt = "coty";
	wx = 480;
	wy = 420;
	x = (screen.width  - wx) / 2;
	y = (screen.height - wy) / 2;
	if ( (app == "N" && ver > 2) || (app == "M" && ver > 3) ) {
	nw = window.open(url,tgt,"width="+wx+",height="+wy+",directories=no,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,"+"left="+x+",top="+y);
	nw.focus();
	return false;
	} else {
	return true;
	}
}

function videowin(url){
	tgt = "video";
	wx = 500;
	wy = 460;
	x = (screen.width  - wx) / 2;
	y = (screen.height - wy) / 2;
	if ( (app == "N" && ver > 2) || (app == "M" && ver > 3) ) {
	nw = window.open(url,tgt,"width="+wx+",height="+wy+",directories=no,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,"+"left="+x+",top="+y);
	nw.focus();
	return false;
	} else {
	return true;
	}
}

function sypwin(url,tgt,wx,wy){
	x = (screen.width  - wx) / 2;
	y = (screen.height - wy) / 2;
	if ( (app == "N" && ver > 2) || (app == "M" && ver > 3) ) {
	nw = window.open(url,tgt,"width="+wx+",height="+wy+",directories=no,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,"+"left="+x+",top="+y);
	nw.focus();
	return false;
	} else {
	return true;
	}
}

