
function checkMailDiv(){var htmlStr='';this.pc_domain=null;this.mobile_domain=null;var btdata=new Array();if(CONFIG_PARAM['mobile_bt']){btdata=CONFIG_PARAM['mobile_bt'].split('|');}
if(document.getElementById('sendmail')){var maildiv=document.getElementById('sendmail');var atagname=maildiv.getElementsByTagName('a');var mform=document.createElement('form');mform.id="mform";mform.name="mform";mform.action="/c/cmsmail_input";mform.method="post";mform.target=atagname[0].target;if(mform.target==''||typeof(mform.target)=='undefined'){mform.target='_blank';}
atagname[0].target="";htmlStr+='<input type="hidden" name="kind" value="pc">';if(CONFIG_PARAM['formtype']&&CONFIG_PARAM['formtype']!=''){htmlStr+='<input type="hidden" name="formtype" value="'+CONFIG_PARAM['formtype']+'">';}else{htmlStr+='<input type="hidden" name="formtype" value="cms">';}
htmlStr+='<input type="hidden" name="el" value="'+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(mm.getCenterLatLng().x)))+'">';htmlStr+='<input type="hidden" name="nl" value="'+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(mm.getCenterLatLng().y)))+'">';htmlStr+='<input type="hidden" name="grp" value="'+CONFIG_PARAM['grp']+'">';htmlStr+='<input type="hidden" name="scl" value="'+CMSCommon._escape(CMSCommon._to_euc(_ZIDtoSCL[mm.getZoomLevel()]))+'">';htmlStr+='<input type="hidden" name="size" value="'+CMSCommon._escape(CMSCommon._to_euc(CONFIG_PARAM['size_w']+','+CONFIG_PARAM['size_h']))+'">';setPcDomain();htmlStr+='<input type="hidden" name="domain" value="'+this.pc_domain+'">';var other_param="";if(default_url.icon.length!=0&&markerA.length!=0){for(var i=0;i<_I_CNT;i++){other_param+='|coco='+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(markerA[i].rpos.y)));other_param+=','+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(markerA[i].rpos.x)));var icon_param=POI_PARAM['ID_'+i]
+','+POI_PARAM['BLK_'+i]
+','+POI_PARAM['TYPE_'+i]
+','+POI_PARAM['X_'+i]
+','+POI_PARAM['Y_'+i]
+','+POI_PARAM['STR_'+i];other_param+='|icon='+CMSCommon._escape(CMSCommon._to_euc(icon_param));}}
if(CONFIG_PARAM['mobile_grp']&&CONFIG_PARAM['mobile_grp']!=''){htmlStr+='<input type="hidden" name="mobile_grp" value="'+CONFIG_PARAM['mobile_grp']+'">';if(default_url.icon[0]&&markerA.length!=0){var icon_param=POI_PARAM['ID_0']
+','+POI_PARAM['BLK_0']
+','+POI_PARAM['TYPE_0']
+','+POI_PARAM['X_0']
+','+POI_PARAM['Y_0']
+','+POI_PARAM['STR_0'];htmlStr+='<input type="hidden" name="icon" value="'
+CMSCommon._escape(CMSCommon._to_euc(icon_param))
+'">';htmlStr+='<input type="hidden" name="coco" value="'
+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(markerA[0].rpos.y)))
+','+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(markerA[0].rpos.x)))
+'">';}
setMobileDomain();htmlStr+='<input type="hidden" name="m_domain" value="'+this.mobile_domain+'">';}
if(default_url.btAll.length!=0){for(var i=0;i<default_url.btAll.length;i++){for(var j=0;j<btdata.length;j++){if(btdata[j].indexOf(':')!=-1&&btdata[j].split(':')[0]==default_url.btAll[i].split('=')[0]&&btdata[j].split(':')[1]!=''){htmlStr+='<input type="hidden" name="'+btdata[j].split(':')[1]
+'" value="'+CMSCommon._escape(CMSCommon._to_euc(default_url.btAll[i].split('=')[1]))+'">';}}
other_param+='|'+default_url.btAll[i].split('=')[0]+'='+CMSCommon._escape(CMSCommon._to_euc(default_url.btAll[i].split('=')[1]));}}
htmlStr+='<input type="hidden" name="pc_param" value="'+other_param+'">';if(!atagname[0]){htmlStr+='<input type="submit" value="この地図のURLを送る">';}
mform.innerHTML=htmlStr;document.getElementById('sendmail').appendChild(mform);if(atagname[0]){atagname[0].onclick=function(){openMailForm();}}}};function openMailForm(){document.forms['mform']['el'].value=CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(mm.getCenterLatLng().x)));document.forms['mform']['nl'].value=CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(mm.getCenterLatLng().y)));document.forms['mform']['scl'].value=_ZIDtoSCL[mm.getZoomLevel()];document.forms['mform'].submit();};function setPcDomain(){var d=location.host;var prtl=CONFIG_PARAM['PROTOCOL'];if(!CONFIG_PARAM['domain']||CONFIG_PARAM['domain']==""){this.pc_domain=prtl+d+'/';return this.pc_domain;}
this.pc_domain=CONFIG_PARAM['domain'].toString();if(!this.pc_domain&&typeof(this.pc_domain)=="undefined"||this.pc_domain==""){this.pc_domain=prtl+d+'/';}else{this.pc_domain=prtl+this.pc_domain+'/';}
return this.pc_domain;};function setMobileDomain(){var prtl=CONFIG_PARAM['PROTOCOL'];if(!CONFIG_PARAM['m_domain']||CONFIG_PARAM['m_domain']==""){this.mobile_domain=prtl+'m.mapion.co.jp';return this.mobile_domain;}
this.mobile_domain=CONFIG_PARAM['m_domain'].toString();if(!this.mobile_domain&&typeof(this.mobile_domain)=="undefined"||this.mobile_domain==""){this.mobile_domain=prtl+'m.mapion.co.jp/';}else{this.mobile_domain=prtl+this.mobile_domain+'/';}
return this.mobile_domain;};function aspMail(){var htmlUrl='';htmlUrl+='c/f?';htmlUrl+='grp='+'asp_mail';htmlUrl+='&el='+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(mm.getCenterLatLng().x)));htmlUrl+='&nl='+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(mm.getCenterLatLng().y)));htmlUrl+='&uc=1';htmlUrl+='&scl='+_ZIDtoSCL[mm.getZoomLevel()];htmlUrl+='&BT4='+'asp_mobile';htmlUrl+='&BT5='+'asp_mobile';if(default_url.icon.length!=0){var icon_param=POI_PARAM['ID_0']
+','+POI_PARAM['BLK_0']
+','+POI_PARAM['TYPE_0']
+','+POI_PARAM['X_0']
+','+POI_PARAM['Y_0']
+','+POI_PARAM['STR_0'];htmlUrl+='&BT3='+CMSCommon._escape(CMSCommon._to_euc('star,,,,,,'));htmlUrl+='&coco='+CMSCommon._escape(CMSCommon._to_euc(CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(markerA[0].rpos.y)))
+','
+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(markerA[0].rpos.x)))));htmlUrl+='&BT6='+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(markerA[0].rpos.y)));htmlUrl+='&BT7='+CMSCommon._escape(CMSCommon._to_euc(CMSCommon.change10to60(markerA[0].rpos.x)));}
window.open(setPcDomain()+htmlUrl,'asp_mail','resizable=no,menubar=no,directories=no,status=no,location=no,width=620,height=550');};
