///////////////////////////////////////////////////////////////////////
// Common Script
///////////////////////////////////////////////////////////////////////
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function Op_BrWin(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function Op_haisou1() {
	var w = window.open('/images/help/haisou1.html','attention','width=600,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_haisou2() {
	var w = window.open('/images/help/haisou2.html','attention','width=600,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_haisou3() {
	var w = window.open('/images/help/haisou3.html','attention','width=600,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_haisou4() {
	var w = window.open('/images/help/haisou4.html','attention','width=600,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}
function Op_nedan1() {
	var w = window.open('/images/help/nedan1.html','attention','width=600,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_nedan2() {
	//var w = window.open('/images/help/nedan2.html','attention','width=600,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	var w = window.open('/other/price01.html','attention','width=800,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_nedan3() {
	var w = window.open('/images/help/h001_04_std.html','attention','width=600,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_nedan4() {
	var w = window.open('/images/help/nedan4.html','attention','width=600,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}


function Op_nedan5() {
	var w = window.open('/images/org/help/calculation.html','attention','width=700,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_calculation() {
	var w = window.open('/images/help/calculation.html','attention','width=600,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_preview() {
	var w = window.open('13.html','op_prev','width=600,height=580,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_registP(register) {
	var w = window.open(register,'regist','width=800,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}
function Op_registC(CorporationRegister) {
	var w = window.open(CorporationRegister,'regist','width=800,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}
function Op_login(LoginUrl) {
	var w = window.open(LoginUrl,'loginwin','width=800,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_shoplist() {
	var w = window.open('/store/top.html','window','width=820,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_first() {
	var w = window.open('/images/help/first.html','help','width=600,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_nenga_standard() {
	var w = window.open('/nenga/standard.html','attention','width=800,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_nenga_photo() {
	var w = window.open('/nenga/photo.html','attention','width=800,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_nenga_honkaku() {
	var w = window.open('/nenga/honkaku.html','attention','width=800,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_nenga_nengachart() {
	var w = window.open('/nenga/nengachart.html','attention','width=800,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_nenga_nengachart2() {
	var w = window.open('/nenga/nengachart2.html','attention','width=800,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_nenga_newyear() {
	var w = window.open('/news/newyear.html','attention','width=800,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_nenga_last() {
	var w = window.open('/nenga/nenga_last.html','attention','width=800,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_option(option) {
	var w = window.open(option,'option','width=570,height=610,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_24hour() {
	var w = window.open('/news/online_help.html','window','width=700,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_nenga_online() {
	var w = window.open('/nenga/nenga_online.html','attention','width=800,height=600,menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

function Op_input() {
	var w = window.open('/news/image/online_font.pdf','attention','menubar=no,toolbar=0,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes');
	w.focus();
}

