//°ø¹é°Ë»ç
function null_check(value)
{
	pattern = /\s/;
	if(value.match(pattern))
		return true;
	return false;
}
//¹®ÀÚ°Ë»ç(¼ýÀÚ¾Æ´Ñ¹®ÀÚ)
function is_char(value)
{
	pattern = /[^0-9]/;
	if(value.match(pattern))
		return true;
	return false;
}
//½ÃÀÛ±ÛÀÚ °Ë»ç(¼ýÀÚ)
function st_num_check(value)
{
	pattern = /^[0-9]/;
	if(value.match(pattern))
		return true;
	return false;
}
//½ÃÀÛ±ÛÀÚ °Ë»ç(¹®ÀÚ)
function st_char_check(value)
{
	pattern = /^[A-Za-z]/;
	if(value.match(pattern))
		return true;
	return false;
}
//¾ÆÀÌµð ¿µ¹®,¼ýÀÚ È®ÀÎ
function id_str_check(value)
{
	pattern = /[^A-Za-z0-9]/;
	if(value.match(pattern))
		return true;
	return false;
}

// »çÁø¿ø·¡Å©±â·Î ÆË¾÷¶ç¿ì±â
function AutoResize(img)
{
	foto1= new Image();
	foto1.src=(img);
	Controlla(img);
}

function Controlla(img)
{
	if ((foto1.width!=0)&&(foto1.height!=0)) {
		viewFoto(img);
	} else {
		funzione="Controlla('"+img+"')";
		intervallo=setTimeout(funzione,20);
	}
}

function viewFoto(img)
{
	largh=foto1.width+0;
	altez=foto1.height+0;
	stringa="width="+largh+",height="+altez;

	var open_img = img;
	finestra=window.open('about:blank','',stringa);
	finestra.document.writeln("<body leftmargin=0 topmargin=0><img src="+open_img+" onClick=self.close()></body>");
	finestra.document.close();
}

function pop_tourjoin(t_code)
{
	window.open('/usr/mypage/regist/mypage_game_join.html?t_code='+t_code,'_tour','width=440,height=270, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizeable=no');
}