function dongWindow()
{
	// ¿ìÆí¹øÈ£ °Ë»ö Ã¢
	window.open("/zipcode/zip_search.php", "dong", "location=no,toolbar=no,directories=no,menubar=no,status=yes,resizable=yes,scrollbars=no,width=450,height=180");
} 

function email_check(val) {
	// ÀÌ¸ÞÀÏ Çü½Ä Ã¼Å©
	var ok = true;

	if ( val.length == 0 ){ 
		ok = false; 
		return ok; 
	}

	if( val ) { 
		re = new RegExp( "^[A-Za-z0-9_-]+@[a-z0-9-]+\.[a-z0-9\.-]+" ); 
		result = val.match( re ); 
		if( result == null ) { 
			ok = false;	
		} 
	} 
	return ok;
}
function moveFocus( val, len, mov_obj){
	if ( val.length == len )
	{
		mov_obj.focus();
	}
}

function check_num_len(val, len){
	var ok=true;

	if (val.length == 0 ) {
		ok = false;
		return ok;
	}
	if(val.indexOf(" ",0) > -1) {   
		ok = false;
   		return ok;
   	}

	for (var i=0 ; i<val.length-1 ; i++){
		var chr=val.charAt(i);
		if (isNaN(val))	{ 
			ok = false;	
			break;
		}
		if ( val.length < len ) {
			ok = false;
			break;
		}
	}
	return ok;
}

//°ø¹é È¤Àº Æ¯¼ö¹®ÀÚ°¡ ÀÖ´ÂÁö °Ë»ç(¾ÆÀÌµð)
function check_char(str) {
	
	if(str.indexOf(" ",0) > -1) {   
   		return false;
   	}

	testStr=" ~!@#$%^&*()_+|\=-`';:/,.<>?";

	for(i=0;i<testStr.length;i++)
	{
	 	if ( str.indexOf( testStr.substring( i, i+1 ),0) > -1 ) 
			return false;
	 }
	 
	return true;		
}

function displayImage(picName, windowName, windowWidth, windowHeight){
	var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
	if(winHandle != null){
		var htmlString = "<html><head><title>Picture</title></head>" 
		htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
		htmlString += "<a href=javascript:window.close()><img src=" + picName + " width="+windowWidth+" height="+windowHeight+" border=0 alt=´Ý±â></a>"
		htmlString += "</body></html>"
		winHandle.document.open()
		winHandle.document.write(htmlString)
		winHandle.document.close()
	} 
	
	if(winHandle != null) winHandle.focus()
	
	return winHandle
}