
function showhide(what) {
	if (what.style.display=='') {
	   closewhide(what);
	   return ;
	}
	if (what.style.display=='none') {
    	what.style.display='';
	}
}

function closewhide(what) {
    what.style.display='none'; 
}

function checkImage()
{
	if(document.MyPhoto.width>277){
		document.MyPhoto.width=277
	}
	return;
}

function Basket_Ok(OrderKind)
{
	document.BasketOk.OrderKind.value = OrderKind;
	if(OrderKind=="Now"){
			alert("未登録なので登録して下さい!");
			location.href = "login.asp?G_code="+document.BasketOk.G_Code.value;
			return;
		}

	document.BasketOk.action = "S_Addlike.asp"
	document.BasketOk.submit();
}
function Wish()
{
	document.BasketOk.action = "s_wish_list.asp"
	document.BasketOk.submit();
}
function product_qa(G_Code){
	window.open("./product_qa.asp?G_Code="+G_Code,"","width=467 height=420 scrollbars=yes")
}	
function de_search(){
	window.open("seach_open.asp","_detail","width=450 height=360 scrollbars=no")
}	

	function MemOut(){
	msg = confirm("退出を確認?");
	if(msg==true){
		location.href = "M_Out.asp"
	}
}

function chkpage()
{
		if(document.ab.gotopage.value=="")
		{
			alert("Plese input the pages you want to see!");
			document.ab.gotopage.value="";
			document.ab.gotopage.focus();
			return ;
		}
		document.ab.submit();
		
	}
function FindSearch(){
		if(document.FindOk.P_Name.value==""){
			alert("キー?ワードを入力して下さい.");
			document.FindOk.P_Name.value="";
			document.FindOk.P_Name.focus();
			return;
		}
		
		document.FindOk.submit();
	}
	function try_login(){
		var msg = confirm("登録を確認?")
		if(msg==true){
			location.href = "login.asp"
		}
	}

	function size(){
		window.open("op_1.htm","_size","width=670 height=540 scrollbars=yes")
	}