﻿function gopage(url) {
	var gourl=url.options[url.selectedIndex].value
	top.location.href =  gourl
}



function goselectpage(url) {
	top.location.href =  url
}


function showthis(str) { 
    document.txinp.ttltext.value=str; 
}


function showreviewproducts(str) { 
    document.reviewform.products.value=str; 
}

function showreviewvihicle(str) { 
    document.reviewform.vehicle.value=str; 
}






function showthis_owner(str) { 

    document.reviewform.vehicle.value=str; 

}
/* ------------------------------- */


function GetHeight(Y,NAME)
{
    var app = navigator.appName.charAt(0);
    if(navigator.userAgent.indexOf('Safari') != -1){
        document.getElementById(Y).height = parent.frames[NAME].document.body.scrollHeight + 5;
    }else if (app == "N")
    {
        document.getElementById(Y).height = parent.frames[NAME].document.height +5;
    }
    else
    {
        document.getElementById(Y).height = parent.frames[NAME].document.body.scrollHeight + 5;
    }
}




var win,url;  
function wopen(url) {   
 win = window.open(url, "window_name", "width=700,height=500,scrollbars=yes,resizable=yes,menubar=no,toolbar=no,location=no,directories=no,status=no");   

}  


function m_win(url,windowname,width,height) {
 var features="location=no, menubar=no, status=no, scrollbars=yes, resizable=yes, toolbar=no";
 if (width) {
  if (window.screen.width > width)
   features+=", left="+(window.screen.width-width)/2;
  else width=window.screen.width;
  features+=", width="+width;
 }
 if (height) {
  if (window.screen.height > height)
   features+=", top="+(window.screen.height-height)/2;
  else height=window.screen.height;
  features+=", height="+height;
 }
 window.open(url,windowname,features);
}







function addFavorite(TL){
	var brw_v = navigator.appVersion.charAt(0);
	var brw_n = navigator.appName.charAt(0);
	if((brw_v >= 4)&&(brw_n == "M")){
		window.external.AddFavorite(location.href, TL);
	}else{
		window.alert("非対応です");
	}
}


flag = false;
function pullDown() {
  if(flag) ID.style.visibility = "hidden";
  else ID.style.visibility = "visible";
  flag = !flag;
}

 
function set_cook(key, val) {

	document.cookie = key + "=" + escape(val) + ";";
}







