function chkEnt(){
	me=document.form1;
	if (me.cartId.selectedIndex == 0) {
		alert("カラーとサイズを選択してください。")
		return false;
	}
	if (me.cartId.value == "") {
		alert("SOLD OUTをした商品です。")
		return false;
	}

}

function pageValue(pageAd,a,item_search,sp_no){
	me=document.pageForm;
	me.page.value = a;
	me.action=pageAd +".php?spNo=" + sp_no + "&itemSearch=" + item_search;
	me.submit();
}

function sendValue(pageAd,sp_no,item_search){
	me=document.flaForm;
	me.action=pageAd + ".php?spNo=" + sp_no + "&itemSearch=" + item_search;
	me.submit();
}

function changeCount(pageAd,sp_no,item_search){
	me=document.formChangeCount;
	me.action=pageAd + ".php?spNo=" + sp_no + "&itemSearch=" + item_search;
	me.submit();
}

function closeUpWin( a ){
	_url=_rootPath  + "/item/zoom/" + a + "/closeUp.php";
	win=window.open(_url,'','resizable=no,scrollbars=no,width=400,height=580');
}

function changeImage( imageName ){
	document.toolEx.src=imageName;
}

function wearPhoto( id ){
	_url=_rootPath  + "/item/fitting.php?pageNo=" + id;
	window.open(_url,'','height=585,width=417,scrollbars=yes,resizable=no,status=no');
}

function watchWin(watch_id){
	me=document.watchForm;
	me.watch_no.value=watch_id;
	me.submit();
}
function orderSend(){
	me=document.orderForm;
	if(me.orderItem.value==""){
		alert("エラー配信。更新ボタンをおして再度チャレンジしてください。");
		return false;
	}
	me.submit();
}

function chngImage( imgName ){
	document.mainPhoto.src = imgName;
}

function reviewWin( a , b){
	win=window.open('reviewRo.php?item_id=' + a + '&menu_id=' + b,'','width=600,scrollbars=yes,resizable=no,status=no');
}
function quesWin( a , b){
	win=window.open('question.php?item_id=' + a + '&menu_id=' + b,'','width=600,scrollbars=yes,resizable=no,status=no');
}

function size_windou_function( a ){
	win=window.open('size.php?item_id=' + a,'','resizable=yes,scrollbars=yes,width=450,height=300');
}

function bigWindowFunction( a ){
	win=window.open('detail.php?item_id=' + a,'','resizable=yes,scrollbars=yes,width=630,height=700');
}