// ◎◇◎
function changeMode( thisfm,val )
{
	document.fm.mode.value = val;
	document.fm.submit();
}
function SubmitCart( val )
{
	document.cart.mode.value = val;
	document.cart.submit();
}
function SubmitRegist( val )
{
	document.regist.mode.value = val;
	document.regist.submit();
}
function SubmitEdit( val )
{
	document.edit.mode.value = val;
	document.edit.submit();
}
var checkFlg = 0;
function paymentCheck( check ) {
	var payNum = document.regi.payment.value;
	if(check == 0){
		if( (payNum > 2)&&(checkFlg == 0) ){
			alert("今回初めてご注文されるお客様は、初回のみ代引き(宅急便Eコレクト)と　\nさせて頂きますので、予めご了承ください。");
			checkFlg = 1;
		}
	}
}
function pointForm(){
	if( document.regi.elements['use'][0].checked ){
		document.regi.ptuse.value = "";
		document.regi.ptuse.disabled = true;
		document.regi.ptuse.style.backgroundColor="#cccccc";
	}else{
		document.regi.ptuse.disabled = false;
		document.regi.ptuse.style.backgroundColor="#ffffff";
	}
}
function item_detail( item, height ){
	window.name='gamilasecret';
	window.open( 'detail.php?s='+item, item, config='height='+height+',width=700,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no');
}
function item_detail2( item, height ){
	window.name='gamilasecret';
	window.open( './shopping/detail.php?s='+item, item, config='height='+height+',width=700,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no');
}
function item_detail3( item, height ){
	window.name='gamilasecret';
	window.open( '../shopping/detail.php?s='+item, item, config='height='+height+',width=700,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no');
}
function item_detail4( url, item, height ){
	window.name='gamilasecret';
	window.open( url+'../shopping/detail.php?s='+item, item, config='height='+height+',width=700,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no');
}
function news_galilee( name, height ){
	window.open( 'detail.php?s='+name, name, config='height='+height+',width=600,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no');
}
function analyzer( url ) {
	document.write('<img src="'+url+'analyzer/analyzer.php'+'?u=gamila&m=c&refr='+escape(top.document.referrer)+'&scrn='+screen.width+'x'+screen.height+'x'+screen.colorDepth+'&navi='+navigator.userAgent+'" style="margin:0;width:0px;height:0px;border:0px;"'+' />');
}
