﻿
var opt = "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=830,height=";

function submitURL(TYPE) {

var OpenURL;

var domain = document.domain;

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=='dfx') {
        OpenURL="https://" + domain + "/entry/dfx/account.do";
}

if( TYPE=='dfxdemo') {
        OpenURL="https://dfx.himawari-group.co.jp/entry/dfxdemo/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";
}

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;
}

/*
【期間報告書の取得方法　期間報告書送付フォーム用URL】
http://sec.himawari-group.co.jp/fx/procedure/application/periodReport/
*/
if( TYPE=='tax') {
        OpenURL="https://" + domain + "/entry/tax/Begin.do";
}

/*
【ひまわりシストレフェスタ2009　フォーム用URL】
http://sec.himawari-group.co.jp/ad/fx/ad_09_003.html
*/
if( TYPE=='ad_09_003_form') {
        OpenURL="https://" + domain + "/entry/seminar/Begin.do?selected=2937";
}

/*
【日経225mini ポップアップ画面　計測タグ追加URL】
http://sec.himawari-group.co.jp/ad/kabu/225_popup.html
*/
if( TYPE=='oasec_ck_048') {
        OpenURL="https://" + domain + "/entry/oasec/rgst.do?link_id=ck_048";
}
if( TYPE=='oasec_ck_049') {
        OpenURL="https://" + domain + "/entry/oasec/rgst.do?link_id=ck_049";
}


	screen.availHeight > 700 ? h = 650 : h = 450;
	window.open( OpenURL , 'entryform',opt + h);
}