function mOvr(src,clrOver)
{
	if (!src.contains(event.fromElement))
	{
		src.style.cursor = 'hand'; 
		src.bgColor = clrOver;
	}
}
function mOut(src,clrIn)
{
	if (!src.contains(event.toElement))
	{
		src.style.cursor = 'default';		
		src.bgColor = clrIn;
	}
}
function AutoImage(obj,maxw,maxh)
{
    var showimg = new Image();
    showimg.src = obj.src;
    if(showimg.fileSize>0)
	{
		if(showimg.width > maxw)
		{
			var ori_w= showimg.width;
			var ori_h = showimg.height;
			showimg.width = maxw;
			showimg.height = ori_h * showimg.width / ori_w;
		}
		if(showimg.height > maxh)
		{
			var ori_w= showimg.width;
			var ori_h = showimg.height;
			showimg.height = maxh;
			showimg.width = ori_w * showimg.height / ori_h;
		}
		if(showimg.width < 5 || showimg.height <5)
		{
			showimg.width = showimg.height = 150;
		}
		obj.style.width = showimg.width;
		obj.style.height = showimg.height;
		return true;
	}
}
function viewpic(pobj,wmax,hmax)
{
	var wnow=pobj.width,hnow=pobj.height;
	if(wnow<=wmax && hnow<=hmax)
		{if(wnow<=30 && hnow<=30){wnow=wmax;hnow=hmax;}}
	else{
		if(wnow>wmax){hnow=Math.round(hnow/(wnow/wmax));wnow=wmax;}
		if(hnow>hmax){wnow=Math.round(wnow/(hnow/hmax));hnow=hmax;}
	}
	pobj.width=wnow;
	pobj.height=hnow;
}

function popwin(name,htmlurl)
{
	if(htmlurl.length>1){
		var newwin=window.open(htmlurl,name,"");
		return false;
	}
}
function Go()
{
	if (confirm('ÄãÈ·¶¨Âð?'))
		{return true;}
	else
		{return false;}
}