function   nuser_onkeydown()   {   
  	
	if   (event.keyCode==13)   
	{   
		document.searchForm.act.value = 'search';
		document.searchForm.submit();
	  }             
  }
  
function toSearch()
{
	document.searchForm.act.value = 'search';
	document.searchForm.submit();
}

function SearchCheck(){var CATG = document.searchForm.categoryId.selectedIndex;
					   var KYWD = document.searchForm.keyword.value;
					   
					   var ERLIST = /[ 　]/g;
					   KYWD = KYWD.replace(ERLIST,"");
					   if(KYWD == "" && CATG == 0){alert("検索項目を最低１つ選択してください。\n");
												   return false;}
					   else{return true;}
					  }

function toItem(itmeId,categoryIdD)
{
    document.searchForm.act.value = 'item';

    document.searchForm.itmeId.value = itmeId;
  
    document.searchForm.categoryIdD.value = categoryIdD;
	document.searchForm.submit();
}

function toSign()
{
	document.searchForm.act.value = "toSign";
	document.searchForm.submit();
}
function DrawImage(ImgD,iwidth,iheight){
	var flag=false;
	var image=new Image();
	image.src=ImgD.src;
	if(image.width>0 && image.height>0){
		flag=true;
		if(image.width/image.height>= iwidth/iheight){
			if(image.width>iwidth){
				ImgD.width=iwidth;
				ImgD.height=(image.height*iwidth)/image.width;
			}else{
				ImgD.width=image.width;
				ImgD.height=image.height;
			}
	
			ImgD.alt=image.width+"×"+image.height;
		}
	else{
			if(image.height>iheight){
				ImgD.height=iheight;
				ImgD.width=(image.width*iheight)/image.height;
			}else{
				ImgD.width=image.width;
				ImgD.height=image.height;
			}
			ImgD.alt=image.width+"×"+image.height;
		}
	}
}
