function sortGo(sort){
	//document.location.href='/list.php?dai=01&chu=01&sho=09&kan=0&page=1&order=&sort='+sort+'&on=1';
	sURL = "/list/lcd1";
	document.location.href=sURL+sort+".html"
}
function sortGoPast(dc,cc,sc,sort){
        document.location.href='/pastmodel.php?module=SeisnEnd&action=Display&dai_cd='+dc+'&chu_cd='+cc+'&sho_cd='+sc+'&sort='+sort;
}
function monthGo(month){
	//document.location.href='/list.php?dai=01&chu=01&sho=09&kan=0&page=1&order=&month='+month+'&on=1';
	sURL = "../shinshohin/";
	document.location.href=sURL+month+".html"
}

function openLargeImageWin(kataban,seihin_cd){
	window.open(seihin_cd,'photowin','width=600,height=700,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
	return 0;
}

function openLargeImageWinPast(seihin_cd,dc,cc,sc){
	window.open('/pastmodel.php?module=SeisnEnd&action=CloseUp&sort=0&dai_cd='+dc+'&chu_cd='+cc+'&sho_cd='+sc+'&seihin_cd='+seihin_cd+'&page=1','photowin','width=600,height=700,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
	return 0;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function sbwinOpen(theURL,width,height) { //v2.0
  sStyle = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes";
  if( height > 0 )
    sStyle = "height="+height+","+sStyle;
  if( width > 0 )
    sStyle = "width="+width+","+sStyle;
  window.open(theURL,"winName",sStyle);
}
function fnc_WindowOpen(url)
{
	var win = window.open(url, '', 'width=640px, height=660px, scrollbars=yes, status=yes');
}
function Open(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_search(f){
	var cd = f.value.split("_");
	var test = "?module=SeisnEnd&action=Display&dai_cd="+ cd[0]+ "&chu_cd=" + cd[1] + "&sho_cd=" + cd[2];
	location.href =test;

}


//----------------------------------------//
//摜؂ւ//
//----------------------------------------//
function findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document); return x;
}
function swapImage() { //v3.0
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function swapImgRestore() { //v3.0
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.p) d.p=new Array();
   var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

//----------------------------------------//
var stockUaObj,stockUaSrc;
function setOverAction(_obj){
	stockUaObj = _obj;
	stockUaSrc = _obj.firstChild.src;
	if(stockUaSrc.indexOf("_ovr.gif") > 0){
		s = stockUaSrc.indexOf("_ovr.gif");
		_obj.firstChild.src = stockUaSrc.substring(0,s) + "_ovr.gif";
	}else if(stockUaSrc.indexOf(".jpg") > 0){
		s = stockUaSrc.indexOf(".jpg");
		_obj.firstChild.src = stockUaSrc.substring(0,s) + "_ovr.jpg";
	}else{
		s = stockUaSrc.indexOf(".gif");
		_obj.firstChild.src = stockUaSrc.substring(0,s) + "_ovr.gif";
	}
}
function setOutAction(){
	stockUaObj.firstChild.src = stockUaSrc;
}

