
//ÇÃ·¡½¬ Ãâ·Â
function flash_print( flash_file, w, h){

	var object = "";

	object  = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='" + w + "' height='" + h + "'>";
	object += "<PARAM name='movie' value='" + flash_file + "'>";
	object += "<PARAM name='quality' value='high'>";
	object += "<PARAM name='menu' value='false'>";
	object += "<EMBED src='" + flash_file + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + w + "' height='" + h + "' menu='false'></EMBED>";
	object += "</OBJECT>";

	document.write (object);

}//end of flash_print()


function flash_print1( flash_file, w, h){

	var object = "";

	object  = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='" + w + "' height='" + h + "'>";
	object += "<PARAM name='movie' value='" + flash_file + "'>";
	object += "<PARAM name='quality' value='high'>";
	object += "<PARAM name='menu' value='false'>";
	object += "<PARAM name='wmode' value='transparent'>";
	object += "<EMBED src='" + flash_file + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + w + "' height='" + h + "' menu='false'></EMBED>";
	object += "</OBJECT>";

	document.write (object);

}

// ¼ýÀÚÃ¼Å©
function num_ck(v){

	for( var i=0; i < v.length; i++ ){
		var chr=v.substr(i,1);
		if( chr<'0' || chr>'9' ) return false;
	}

	return true;

}//end of num_ck()


//¿µ¹® + ¼ýÀÚÃ¼Å© , ±æÀÌ
function alnum_ck(v, st_v, ed_v){

	if( v.length < st_v || v.length > ed_v ) return false;

	for( var i=0; i < v.length; i++ ){
		var chr=v.substr(i,1);
		if( (chr<'0' || chr>'9') && (chr<'a' || chr>'z') && (chr<'A' || chr>'Z') ) return false;
	}

	return true;

}//end of alnum_ck()


//ÇØ´ç ±æÀÌÀÏ¶§ Æ÷Ä¿½º ÀÌµ¿
function focus_move( now_focus, next_focus, move_len ){
    
	if( now_focus.value.length == move_len ) next_focus.focus();
		    
}


//ÁÖ¹Î¹øÈ£ Ã¼Å©
function Jumin_Ck(f, ju1, ju2){

	var jumin_no=ju1 + ju2;

	fmt = /^\d{6}[12]\d{6}$/;

	if (!fmt.test(jumin_no)) {
		return false;
	}

	birthYear = '19' + jumin_no.substr(0, 2);
	birthMonth = jumin_no.substr(2, 2) - 1;
	birthDate = jumin_no.substr(4, 2);
	birth = new Date(birthYear, birthMonth, birthDate);

	if( birth.getYear() % 100 != jumin_no.substr(0, 2) || birth.getMonth() != birthMonth || birth.getDate() != birthDate){
		return false;
	}

	buf = new Array(13);
	for( i=0; i < 13; i++ ) buf[i] = parseInt(jumin_no.charAt(i));

	multipliers = [2,3,4,5,6,7,8,9,2,3,4,5];

	for( i=0, sum=0; i < 12; i++ ) sum += (buf[i] *= multipliers[i]);

	if ( (11 - (sum % 11)) % 10 != buf[12] ) {
		return false;
	}

	return true;

}//end of Jumin_Ck()

//»õÃ¢
function NewWin(url,w,h,t,l,sr){
    window.open(url,"newWin","height=" + h + ", width=" + w + ", top=" + t + ", left=" + l + ", scrollbars=" + sr + ""); return;
}//end of NewWin()


