//
try { 
    document.execCommand('BackgroundImageCache', false, true); 
} catch(e) {} 


// rollover
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}
if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}

function send_search_cgi($search_e){
   document.form_send_search_cgi.f_address.value="";
   document.form_send_search_cgi.f_name.value="";
   document.form_send_search_cgi.f_post.value="";
   document.form_send_search_cgi.f_tel.value="";
   document.form_send_search_cgi.page.value="";
   document.form_send_search_cgi.page_list.value="";
   if($search_e === 'address'){
     if(document.getElementById('address').value != "都道府県"){
      document.form_send_search_cgi.f_address.value=document.getElementById('address').value;}
   }
   if($search_e === 'name'){
     if(document.getElementById('name').value != "お店の名前"){
      document.form_send_search_cgi.f_name.value=document.getElementById('name').value;}
   }
   if($search_e === 'post'){
     if(document.getElementById('post').value != "郵便番号"){
      document.form_send_search_cgi.f_post.value=document.getElementById('post').value;}
   }
   if($search_e === 'tel'){
     if(document.getElementById('tel').value != "電話番号"){
      document.form_send_search_cgi.f_tel.value=document.getElementById('tel').value;}
   }
      document.form_send_search_cgi.submit();
}
