/*=============
window open
=============*/
function openWindow(url,w,h){
	window.open(url,'','resizable=yes,scrollbars=yes,left=0,top=0,width='+w+',height='+h+',status=yes');
}

function openmailmaga() {
  var regwin=window.open("http://www.fujitv.co.jp/game/mailmaga/index.html","mailmaga","width=560,height=640,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openFujitvid() {
  var regwin=window.open("https://wwws.fujitv.co.jp/safe/ID/support/form.html","Fujitvid","width=990,height=680,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}


function openToiawase() {
  var regwin=window.open("https://wwws.fujitv.co.jp/safe/ID/support/form.html","Toiawase","width=560,height=680,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openHowto_tomy() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/index_tomy.html","help_tomy","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openHowto_data() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/index_data.html","help_data","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openHowto_new_face() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/index_new_face.html","new_face","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}


function openHowto_search() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/index_search.html","help_search","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openHowto_okini() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/index_okini.html","help_okini","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openHowto_keibitai_boshu() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/spr_keibitai.html","keibitai_boshu","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openHowto_ryokin() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/index_keibitai2.html","ryokin","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}


function open_chara_change() {
  var regwin=window.open("http://odaiba.fujitv.co.jp/cgi-bin/red_mpl/game/gacha/gachaCharaSelectList.cgi","chara_change","width=550,height=520,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function open_okiniiri_list() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/myroom/okiniiri_list.html","okiniiri_list","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openHowto_faq() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/index_faq.html","faq","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openHowto_faq_14() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/index_faq_14.html","faq_14","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openHowto_ranking() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/index_ranking.html","ranking","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openHowto_index() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/index.html","howto_index","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openHowto_rule() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/index_rule.html","howto_rule","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openHowto_pre() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/index_pre.html","howto_pre","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}


function open_attention() {
  var regwin=window.open("/game/gacha/msg/atten.html","attention","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function open_msg_mente() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/msg_mente.html","msg_mente","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function open_msg_point() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/msg_point.html","msg_point","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openbbs() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/bbs/index.html","bbs","width=680,height=560,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openM_gacha() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/pr_mobilegacha.html","M_gacha","width=680,height=550,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openK_spr() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/spr_keibitai.html","K_spr","width=680,height=550,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}

function openyokocho_PR() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/yokocho_point.html","yokocho_PR","width=680,height=550,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}


function openNew_spr() {
  var regwin=window.open("http://www.fujitv.co.jp/game/gacha/howto/spr_shinki.html","New_spr","width=680,height=550,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes");
  regwin.focus();
}


function opentokuten_pwup() {
  var regwin=window.open("/game/tsutaya/tokuten_pwup.html","help_search","width=680,height=550,toolbar=no,status=no,location=no,scrollbars=no,resizable=no");
  regwin.focus();
}

/*=============
swap image
=============*/

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];}
}