﻿
var opt = "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=830,height=";

function submitURL(TYPE) {

// ZEROのみ横幅900
if( TYPE=='zerodemo' || TYPE=='zero') {
	opt = "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=900,height=";
}

var OpenURL;

var domain = document.domain;

if ( TYPE=='ecotre-fx') {
	OpenURL="https://ecotre.himawari-group.co.jp/ecotradefx.html";
	opt = "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + screen.availWidth + ",height=";
}

if ( TYPE=='ssfx') {
	OpenURL="https://" + domain + "/entry/ssfx/rgst.do";
}
if( TYPE=='oafx') {
        OpenURL="https://" + domain + "/entry/oafx/RegistrationFxAccount.do";
}
if( TYPE=='oasec') {
        OpenURL="https://" + domain + "/entry/oasec/rgst.do";
}
if( TYPE=='sssec') {
        OpenURL="https://" + domain + "/entry/sssec/BeginPersonal.do";
}
if( TYPE=='oacfd') {
        OpenURL="https://" + domain + "/entry/oacfd/account.do";
}
if( TYPE=='cfdd') {
        OpenURL="https://mobile.himawari-group.co.jp/entry/cfdd/InitAction.do";
}
if( TYPE=='cfdl') {
        OpenURL="https://" + domain + "/entry/cfdl/InitAction.do";
}
if( TYPE=='stcon') {
        OpenURL="https://" + domain + "/entry/stcon/index.do";
}
if( TYPE=='stcon2') {
        OpenURL="https://" + domain + "/entry/stcon/index2.do";
}
if( TYPE=='exsec') {
        OpenURL="https://" + domain + "/entry/exsec/account.do";
}
if( TYPE=='exsecidentity') {
        OpenURL="https://" + domain + "/entry/exsecidentity/rgst.do";
}
if( TYPE=='dfx') {
        OpenURL="https://" + domain + "/entry/dfx/account.do";
}
if( TYPE=='dfxdemo') {
        OpenURL="https://dfx.himawari-group.co.jp/entry/dfxdemo/rgst.do";
}
if( TYPE=='zero') {
        OpenURL="https://fxzero.himawari-group.co.jp/entry/account/account.do";
}
if( TYPE=='zerodemo') {
        OpenURL="https://fxzero.himawari-group.co.jp/entry/virtual/rgst.do";
}
if( TYPE=='advisor') {
        OpenURL="https://" + domain + "/entry/advisor/advance.do";
}
if( TYPE=='advisorad') {
        OpenURL="https://" + domain + "/entry/advisorad/advance.do";
}
if( TYPE=='sts') {
        OpenURL="https://" + domain + "/entry/sts/rgst1.do";
}
if( TYPE=='stsex') {
        OpenURL="https://" + domain + "/entry/stsex/rgst1.do";
}
if( TYPE=='tech') {
        OpenURL="https://" + domain + "/entry/tech/stipulation.do";
}
if( TYPE=='member') {
        OpenURL="https://" + domain + "/entry/member/Registration.JoinMember1.do";
}
if( TYPE=='mchange') {
        OpenURL="https://" + domain + "/entry/mchange/Registration.ChangeMember1.do";
}
if( TYPE=='forget') {
        OpenURL="https://" + domain + "/entry/forget/forget_01.html";
}
if( TYPE=='mininote') {
        OpenURL="https://" + domain + "/entry/mininote/rgst.do";
}

/*
【FX10周年川柳プレゼント当選者住所取得フォーム】
https://sec.himawari-group.co.jp/entry/present/rgst.do?presentKindNo=31
*/

/*
【FX10周年特製福袋フォーム用URL】
https://sec.himawari-group.co.jp/entry/present/rgst.do?presentKindNo=29
*/

if( TYPE=='presentid30') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=30";
}
if( TYPE=='presentid28') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=28";
}

if( TYPE=='presentid27') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=27";
}
if( TYPE=='presentid26') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=26";
}
if( TYPE=='presentid25') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=25";
}
if( TYPE=='presentid24') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=24";
}
if( TYPE=='presentid23') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=23";
}
if( TYPE=='presentid21') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=21";
}
if( TYPE=='presentid18') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=18";
}
if( TYPE=='presentid17') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=17";
}
if( TYPE=='presentid16') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=16";
}
if( TYPE=='presentid15') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=15";
}
if( TYPE=='presentid14') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=14";
}
if( TYPE=='presentid13') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=13";
}
if( TYPE=='presentid12') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=12";
}
if( TYPE=='presentid11') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=11";
}
if( TYPE=='presentid10') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=10";
}
if( TYPE=='presentid9') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=9";
}
if( TYPE=='presentid8') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=8";
}
if( TYPE=='presentid7') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=7";
}
if( TYPE=='presentid6') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=6";
}
if( TYPE=='presentid5') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=5";
}

//【Dynamic ARMS FX 30日間無料お試し版申込フォーム用URL】
// http://sec.himawari-group.co.jp/systemtrade/outline/system/dynamicarms/
if( TYPE=='presentid34') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=34";
}

//【絶対客観式トレンド計測インディケータ最大2週間無料トライアル申込フォーム用URL】
// http://sec.himawari-group.co.jp/systemtrade/outline/indicator/tsushima/
if( TYPE=='presentid35') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=35";
}

//【ドル円もん無料お試し版　申込み用URL】
// http://sec.himawari-group.co.jp/campaign/fx/dollyan-mon.html
if( TYPE=='presentid36') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=36";
}

if( TYPE=='oafxsheep') {
        OpenURL="https://" + domain + "/entry/oafx/RegistrationFxAccount.do?id=7";
}

if( TYPE=='introduction_kabu') {
		var acc = document.getElementById('ACC').value;
		var hstr = document.getElementById('HSTR').value;
        OpenURL="https://" + domain + "/campaign/kabu/campaign_08_003.html";
        OpenURL = OpenURL + '?acc=' + acc + '&hstr=' + hstr;
}

if( TYPE=='introduction_fx') {
		var acc = document.getElementById('ACC').value;
		var hstr = document.getElementById('HSTR').value;
        OpenURL="https://" + domain + "/campaign/fx/fxcamp_08_004.html";
        OpenURL = OpenURL + '?acc=' + acc + '&hstr=' + hstr;
}

//【ST売買システム無料お試しパック申込フォーム用URL】
// http://sec.himawari-group.co.jp/systemtrade/welcome/
if( TYPE=='presentid37') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=37";
}


//【マット今井×矢口新シストレマル秘講座 ご来場者限定お楽しみプレゼント用URL】
// http://sec.himawari-group.co.jp/ad/sec/2010-0701-2940.html
if( TYPE=='presentid38') {
        OpenURL="https://" + domain + "/entry/present/rgst.do?presentKindNo=38";
}


//【期間報告書の取得方法　期間報告書送付フォーム用URL】
// http://sec.himawari-group.co.jp/fx/procedure/application/periodReport/
if( TYPE=='tax') {
        OpenURL="https://" + domain + "/entry/tax/Begin.do";
}

//緊急開催！FXスペシャルセミナー～新しいトレードスタイルはここにあり～
//http://sec.himawari-group.co.jp/ad/fx/ad_1009seminar.html
if( TYPE=='seminar_3372') {
	OpenURL="https://sec.himawari-group.co.jp/entry/seminar/Begin.do?selected=3372";
}

if ( TYPE=='ecotre-fx') {
	h = screen.availHeight;
} else {
	screen.availHeight > 700 ? h = 650 : h = 450;
}
	window.open( OpenURL , 'entryform',opt + h);

}



