';
//alert(sidebar_html);
j++;
return marker;
}
function mail_open(j,page_id){
var sub_html='
'
+'
携帯に店舗情報を送信'
+'
'
+'
'
+'
';
var tmp=htmls[j];
tmp+=sub_html;
marker_arr[j].openInfoWindowHtml(tmp);
}
function notice_close(){
document.getElementById("mail_notice").innerHTML='';
}
//フォームを閉じる
function mail_close(j){
marker_arr[j].openInfoWindowHtml(htmls[j]);
}
//携帯メールのエラーチェック
function mail_check(form){
var msg='';
var end_msg='';
if(form.page_id.value==''){
msg+='・不正な処理です。
';
}
if(form.mail_pre.value==''){
msg+='・アドレスが入力されていません。
';
}
else if(form.mail_pre.value.length>30){
msg+='・アドレスが長すぎます。
';
}
else if(!form.mail_pre.value.match(/^[a-zA-Z0-9._-]+$/)){
msg+='・アドレスが正しい形式ではありません。
';
}
if(form.domain_id.value==''){
msg+='・ドメインが選択されていません。
';
}
//エラーがある場合
if(msg){
msg='
入力内容に誤りがあります。
'+msg+'
';
//obj=document.getElementById("form_msg");
//obj.style.backgroundColor = "green";
//document.getElementById("info_window").height = "300px";
document.getElementById("form_msg").innerHTML=msg;
}
//エラーがなかったら送信
else{
document.getElementById("form_msg").innerHTML='メールを送信中';
end_msg=send_mail(form);
end_msg+='
閉じる';
//document.getElementById("form_msg").innerHTML=end_msg;
//cookieに書き込み
setCookie('domain_id',form.domain_id.value);
setCookie('mail_pre',form.mail_pre.value);
document.getElementById("map_mail").innerHTML=end_msg;
}
}
//携帯メールを送信する
function send_mail(form){
var msg='';
var page_id=form.page_id.value;
var domain_id=form.domain_id.value;
var mail_pre=form.mail_pre.value
var url='https://salon.kuchihiro.com/map_lib/mobile_send.php';
var send_data='&page_id='+page_id+'&domain_id='+domain_id+'&mail_pre='+mail_pre;
var end_msg;
//送信
sendRequest(onloaded,send_data,'GET',url,false);
function onloaded(res){
end_msg=res.responseText;
}
return end_msg;
}
//右のスライドバーにカーソルを合わせたときの処理
function mymouseover(j) {
if(marker_arr[j]){
//if(clinic_datas[j]["c_link"]!=2){
marker_arr[j].setImage("https://salon.kuchihiro.com/image/maps/org3.png"); // change graphic
marker_arr[j].topMarkerZIndex();
//}
}
}
//カーソルを離したときの処理
function mymouseout(j) {
if(marker_arr[j]){
marker_arr[j].restoreImage();
if(clinic_datas[j]["c_link"]!=2){
marker_arr[j].restoreMarkerZIndex();
}
}
}
//スライドバーをクリックするとinfowindowを開く
function myclick(i) {
//タブのラベル
//var main_lavel="基本情報";
//var sub_lavel="携帯メール";
//marker_arr[i].openInfoWindowTabsHtml([new GInfoWindowTab(main_lavel,htmls[i]),new GInfoWindowTab(sub_lavel,subhtmls[i])]);
marker_arr[i].openInfoWindowHtml(htmls[i]);
}
function resize(){
//画面がリサイズされた
var map_obj=document.getElementById(map_id);
var disp=getDispSize();
//右メニューの横幅分だけ引く
var wid=disp.width-240;
if(wid<400){
wid=400;
}
//下メニューの幅だけ引く
var hei=disp.height-120;
if(hei<300){
hei=300;
}
map_obj.style.width=wid+"px";
map_obj.style.height=hei+"px";
return {width:wid+"px",height:hei+"px"};
}
function getDispSize(){
if(document.all){
if(window.opera){
return {width:document.body.clientWidth,height:document.body.clientHeight};
}else{
return {width:document.documentElement.clientWidth,height:document.documentElement.clientHeight};
}
}
// NN
else if(document.layers || document.getElementById){
return {width:window.innerWidth,height:window.innerHeight};
}
}
//]]>