<!--

function openModalDialog() {
	var win = new Window('dialog', {className: "alphacube", title: "", 
									width:630, height:420, okLabel: "Close", 
									url: "https://www.entry24.jp/mobile/fm_pc/fm.php?g=2&c=258556&d=v3demo&p=0&conf=1&rt=1", 
									zIndex:15000, opacity:1, resizable: false})
	win.setDestroyOnClose();
	win.showCenter(true);
}

function openGwindow(uri) {
	var Height = screen.height;

	if (Height <= 800){
		var iHeight = 400;
		var aHeight = 135;
	}else if(Height <= 1024){
		var iHeight = 550;
		var aHeight = 320;
	}else if(Height <= 1280){
		var iHeight = 640;
		var aHeight = 384;
	}else if(Height <= 1600){
		var iHeight = 700;
		var aHeight = 400;
	}

	var win = new Window('dialog', {className: "alphacube", title: "", 
									width:830, height:iHeight, okLabel: "Close", 
									url: ""+uri+"", 
									zIndex:15000, opacity:1, resizable: false})
	win.setDestroyOnClose();
	win.showCenter(true);
}

function areaNm(map_image){
	document.images.src = map_image;
}

function itmDel(){
	if(window.confirm("本当に削除しますか？")){
	return true;
	}else{
	window.alert("キャンセルされました");
	return false;
	}
}

function citySet(pref_id) {
	location = "?pref="+pref_id+"";
}

function city_set(uid,job_id,city_id,cat_id) {
    var index = document.reg.pref_id.selectedIndex;
    location = "?pref_id="+document.reg.pref_id.options[index].value+"&uid="+uid+"&id="+job_id+"&city_id="+city_id+"&cat_id="+cat_id+"";
} 

function Ich_swapImage() {
  var i,j=0,x,a=Ich_swapImage.arguments; document.Ich_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=Ich_findObj(a[i]))!=null){document.Ich_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function Ich_swapImgRestore() {
  var i,x,a=document.Ich_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function Ich_preloadImages() {
 var d=document; if(d.images){ if(!d.Ich_p) d.Ich_p=new Array();
   var i,j=d.Ich_p.length,a=Ich_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.Ich_p[j]=new Image; d.Ich_p[j++].src=a[i];}}
}

function Ich_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.Ich_pgW=innerWidth; document.Ich_pgH=innerHeight; onresize=Ich_reloadPage; }}
  else if (innerWidth!=document.Ich_pgW || innerHeight!=document.Ich_pgH) location.reload();
}
Ich_reloadPage(true);

function Ich_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=Ich_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function main(link) {
ow1 = window.open(''+link+'','preview','WIDTH=320,HEIGHT=240,RESIZABLE=yes,TOOLBAR=no,SCROLLBARS=AUTO,directories=no,status=no,LOCATION=no,menubar=no');
ow1.moveTo(0,0);
ow1.opener=self
if(navigator.appVersion.charAt(0)>=3){ow1.focus()}
}

function Wopen(link) {
ow2 = window.open(''+link+'','preview','WIDTH=420,HEIGHT=500,RESIZABLE=yes,TOOLBAR=no,SCROLLBARS=AUTO,directories=no,status=no,LOCATION=no,menubar=no');
ow2.moveTo(0,0);
ow2.opener=self
if(navigator.appVersion.charAt(0)>=3){ow2.focus()}
}

function CliseLopen(link) {
ow3 = window.open(''+link+'','preview','WIDTH=450,HEIGHT=550,RESIZABLE=yes,TOOLBAR=no,SCROLLBARS=AUTO,directories=no,status=no,LOCATION=no,menubar=no');
ow3.moveTo(0,0);
ow3.opener=self
if(navigator.appVersion.charAt(0)>=3){ow3.focus()}
}

function SizeLopen2(link) {
ow4 = window.open(''+link+'','preview','WIDTH=450,HEIGHT=550,RESIZABLE=yes,TOOLBAR=no,SCROLLBARS=AUTO,directories=no,status=no,LOCATION=no,menubar=no');
ow4.moveTo(0,0);
ow4.opener=self
if(navigator.appVersion.charAt(0)>=3){ow4.focus()}
}

function SizseLopen(link) {
ow5 = window.open(''+link+'','preview','WIDTH=450,HEIGHT=550,RESIZABLE=yes,TOOLBAR=no,SCROLLBARS=AUTO,directories=no,status=no,LOCATION=no,menubar=no');
ow5.moveTo(0,0);
ow5.opener=self
if(navigator.appVersion.charAt(0)>=3){ow5.focus()}
}

function Ich_showHideLayers() {
  var i,p,v,obj,args=Ich_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=Ich_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function Mfopen(link,width,height) {
	ow8 = window.open(''+link+'','preview','WIDTH='+width+',HEIGHT='+height+',RESIZABLE=yes,TOOLBAR=no,SCROLLBARS=AUTO,directories=no,status=no,LOCATION=no,menubar=no');
	ow8.moveTo(0,0);
	ow8.opener=self
	if(navigator.appVersion.charAt(0)>=3){
		ow8.focus()
	}
}

function limitTex(target,maxlength) {
    if ( target.value.length > maxlength ) {
        alert("文字の入力制限を超えました");
        target.value = target.value.substr(0,maxlength);
    }

    target.focus();
}

function groupe_set(){
    var index = document.select.groupe.selectedIndex;
    location = "?g="+document.select.groupe.options[index].value+"";
}

//<![CDATA[
	var map = null;
	var geocoder = null;
	var marker;
	function initialize() {
		if (GBrowserIsCompatible()) {
			map = new GMap2(document.getElementById("map_canvas"));
			map.setCenter(new GLatLng(33.58, 130.27), 15);
			map.addControl(new GLargeMapControl());
			map.addControl(new GMapTypeControl(true));
			geocoder = new GClientGeocoder();
			GEvent.addListener(map, "click", clicked);
		}
	}

	function clicked(overlay, latlng) {
		if (latlng) {
			geocoder.getLocations(latlng, function(addresses) {
				if(addresses.Status.code != 200) {
					alert("reverse geocoder failed to find an address for " + latlng.toUrlValue());
				}else{
					map.clearOverlays();
					address = addresses.Placemark[0];
					marker = new GMarker(latlng, {draggable: true});
					map.addOverlay(marker);
					point2address();
					GEvent.addListener(marker, "dragstart", function() {
						map.closeInfoWindow();
					});
					GEvent.addListener(marker, "dragend", point2address);
				}
			});
		}
	}

	function point2address(flag) {
		point = marker.getLatLng();
		geocoder.getLocations(point, function(addresses) {
		if(addresses.Status.code != 200) {
			alert("reverse geocoder failed to find an address for " + point.toUrlValue());
		}else{
			address = addresses.Placemark[0];
			var myHtml = '<strong>Reversed Geocoded Address:<\/strong><br/>'+address.address + '<br/>' + '<strong>Coordinates (lat, lng):<\/strong><br/>' + point.toUrlValue();
			if (flag == 'plus original address') {
				myHtml = '<strong>Original Address:<\/strong><br/>'+document.frm.address.value + '<br/>' + '<strong>Coordinates (lat, lng):<\/strong><br/>' + point.toUrlValue() + '<br/><br/>' + 
				myHtml;
			}
			marker.openInfoWindow( myHtml);
				document.getElementById("lat").value=""+point.lat();
				document.getElementById("lng").value=""+point.lng();
			}
		});
	}

	function addCoordsToMap(response) {
		map.clearOverlays();
		if (!response || response.Status.code != 200) {
			alert('Address not found');
		}else{
			place = response.Placemark[0];
			point = new GLatLng(place.Point.coordinates[1],
			place.Point.coordinates[0]);
			marker = new GMarker(point, {draggable: true});
			map.setCenter(point, 15);
			map.addOverlay(marker);
			point2address("plus original address");
			GEvent.addListener(marker, "dragstart", function() {
				map.closeInfoWindow();
			});
			GEvent.addListener(marker, "dragend", point2address);
		}
	}

	function showAddress(address) {
		if (geocoder) {
		geocoder.getLocations(address,addCoordsToMap)
		}
	}

	function cat_set(cat_id,uid) {
		var index = document.regp.c1.selectedIndex;
		location = "?c1="+document.regp.c1.options[index].value+"&uid="+uid+"";
	}
//]]>

//-->

