function login_submit() {
	secure_flg = document.frmLogin.checkSsl.checked;
	url = 'index.html';//document.frmLogin.url.value;
	if(!secure_flg) {
		//document.frmLogin.action='http://localhost/app/'+url+'?fuseparames=frm_sbmt_in';
		document.frmLogin.action='http://www.winterior.jp/'+url+'?fuseparames=frm_sbmt_in';
	} else {
		
		///////////////////////////////////////////////////////////////////////////////////
		//	HTTPS 切り替えポイント
		///////////////////////////////////////////////////////////////////////////////////
		//document.frmLogin.action='https://localhost/app/index.php?fuseparames=frm_sbmt_in';
		//document.frmLogin.action='http://localhost/app/'+url+'?fuseparames=frm_sbmt_in';
		document.frmLogin.action='http://www.winterior.jp/'+url+'?fuseparames=frm_sbmt_in';
	}
	document.frmLogin.submit();
}

function text_search_submit() {
	//return;
	action_flg = document.formTextSearch.searchKeyItem1.checked;
	//alert(action_flg);
	
	if (action_flg) {
		//	object search
		//document.formTextSearch.action='http://localhost/app/searchList.html?text=search';
		document.formTextSearch.action='http://www.winterior.jp/searchList.html?text=search';
	}
	else {
		//	store search
		//document.formTextSearch.action='http://localhost/app/searchListStore.html?text=search';
		document.formTextSearch.action='http://www.winterior.jp/searchListStore.html?text=search';
	}
	
	document.formTextSearch.submit();
}

flag = false;
num = 0;
function toggle(divide,divideData,img1,img2){
	flag = document.getElementById(divideData).value;
	if (flag == 0) {
		flag = 1;
	}
	else {
		flag = 0;
	}
	
	if(flag == 1){
		document.getElementById(divideData).value = 1;
		document.getElementById(divide).src = img2;
	} 
	else{ 
		document.getElementById(divideData).value = 0;
		document.getElementById(divide).src = img1;
	} 
}

function changeImg(divide,divideData,img1,img2) {
	flagw = document.getElementById(divideData).value;
	if(flagw == 1){
		document.getElementById(divide).src = img2;
	}
	else{
		document.getElementById(divide).src = img1;
	}
}


function createMapPop(pic0,url,shop,store,address) {
	var out;
	out = "<table cellpadding='5'><tr><th><a href='"+url+"'><img border='0' width='50' height='50' src='"+pic0+"' style='border:2px solid #838383;'></a></th><th class='toAlignLeft' valign='top'><p class='normalP'>"+shop+"</p><p class='normalP'>"+store+"</p><p class='normalP'>"+address+"</p></th></tr></table>";
	return out;
}

function mapLoad(lng,lat) {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GScaleControl());
		map.setCenter(new GLatLng(lat,lng), 17);
		map.addControl(new GNavLabelControl());
		map.addControl(new GLargeMapControl3D());
		var marker = new GMarker(new GLatLng(lat,lng));
		map.addOverlay(marker);
	}
}

function openWindow(url) {
	window.open(url);
	return false;
}

