/* カスタマイズ用のJavaScriptコードをここに記述してください */ function PickRtn( ){ var hostname = window.location.hostname; if( hostname == 'omnipf.com' ){ location.href = 'https://omnipf.com/mk/resources/recept_new.html?from=zenrin'; } else if ( hostname == 'dev.omnipf.com' ) { location.href = 'https://dev.omnipf.com/mk/resources/recept_new.html?from=zenrin'; } else { history.back(); } // history.back(); } function PickKID( errmsg ){ if( document.getElementById('z_map_msg_name') ){ var ArrSplitTarget = document.getElementById("z_map_msg_name").getElementsByTagName('input')[0].getAttribute('value').split("/"); var path = location.pathname ; var corp_id = path.split("/"); // 環境チェック if ( corp_id[2].slice(-4) == 'test' ){ var TargetURL = 'https://dev.omnipf.com/mk/resources/recept_new.html?from=zenrin&kyotenID=' + ArrSplitTarget[6]; } else { var TargetURL = 'https://omnipf.com/mk/resources/recept_new.html?from=zenrin&kyotenID=' + ArrSplitTarget[6]; } location.href = TargetURL; } else { alert( errmsg ); } } function searchGps() { document.formGps.submit(); }