<!--// ¼Ò½ºÇü»ó°ü¸®// 20060720_1 ÆÄÀÏÃß°¡ ÃÖÈ£¼öfunction NvScroll(){	this.name = "NvScroll";	this.divId = "realtimelist";	this.item = new Array();	this.itemcount = 0;	this.currentspeed = 0;	this.scrollspeed = 50;	this.pausedelay = 1000;	this.pausemouseover = false;	this.stop = false;	this.height = 100;	this.width = 100;	this.stopHeight=0;	this.i=0;	this.reloadData = 0;	this.add = function () {		var text = arguments[0];		this.item[this.itemcount] = text;		this.itemcount = this.itemcount + 1;	};	this.start = function () {		if (this.itemcount)		{			if ( this.itemcount == 1 ) {				this.add(this.item[0]);			}			this.display();			this.currentspeed = this.scrollspeed;			this.stop = true;			setTimeout(this.name+'.scroll()',this.currentspeed);			window.setTimeout(this.name+".stop = false", this.pausedelay);		}	};		this.display = function () {		var htmlCode;		htmlCode = '<div id="'+this.name+'" style="height:'+this.height+'px; width:'+this.width+'px; position:relative; overflow:hidden; " OnMouseOver="'+this.name+'.onmouseover(); " OnMouseOut="'+this.name+'.onmouseout(); ">';		for(var i = 0; i < this.itemcount; i++) {			htmlCode += '<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+'px; position:absolute; top:'+(this.height*i)+'px; ">';			htmlCode += this.item[i];			htmlCode += '</div>';		}		htmlCode += '</div>';		document.getElementById(this.divId).innerHTML=htmlCode;	};		this.scroll = function () {		if ( this.pause == true ) {			window.setTimeout(this.name+".scroll()",this.pausedelay);			this.pause = false;		} else {			this.currentspeed = this.scrollspeed;			if ( !this.stop ) {				for (var i = 0; i < this.itemcount; i++) {					obj = document.getElementById(this.name+'item'+i).style;					objtop = parseInt(obj.top) - 1;					obj.top = objtop + 'px';					if ( objtop <= this.height * (-1) )					{						objtop1 = this.height * (this.itemcount-1);						obj.top = objtop1 + 'px';					}					if ( objtop == 0 )					{						this.currentspeed = this.pausedelay;						this.i = i;					}				}			}			if( !this.stop && i == this.itemcount && parseInt(obj.top) == 0 && this.reloadData == 1 ) {				this.reloadData = 0;			}			else {				window.setTimeout(this.name+".scroll()",this.currentspeed);			}		}	};		this.rolling = function () {		if ( this.stop == false  ) {			this.next();		}		window.setTimeout(this.name+".rolling()",this.scrollspeed);	}		this.onmouseover = function () {		if ( this.pausemouseover ) {			this.stop = true;		}		for( var i = 0; i < 10; ++i ) {			var ii = i + 1;			if( ii < 10 ) ii = "r0" + ii;			else ii = "r" + ii;			var itemObj = document.getElementById(ii);			if( itemObj ) {				if( i == this.i ) itemObj.style.fontWeight='bold';				else itemObj.style.fontWeight='normal';			}		}	};		this.onmouseout = function () {		if ( this.pausemouseover ) {			this.stop = false;		}	};		this.next = function() {		for (i = 0; i < this.itemcount; i++) {			obj = document.getElementById(this.name+'item'+i).style;			if ( parseInt(obj.left) < 1 ) { 				width = this.width + parseInt(obj.left);				break;			}		}		for (i = 0; i < this.itemcount; i++) {			obj = document.getElementById(this.name+'item'+i).style;			if ( parseInt(obj.left) < 1 ) { 				obj.left = this.width * (this.itemcount-1);			} else {				obj.left = parseInt(obj.left) - width;			}		}	}		this.prev = function() {		for (i = 0; i < this.itemcount; i++) {			obj = document.getElementById(this.name+'item'+i).style;			if ( parseInt(obj.left) < 1 ) { 				width = parseInt(obj.left) * (-1);				break;			}		}		if ( width == 0 ) {			total_width = this.width * (this.itemcount-1);			for (i = 0; i < this.itemcount; i++) {				obj = document.getElementById(this.name+'item'+i).style;				if ( parseInt(obj.left) + 1 > total_width ) { 					obj.left = 0;				} else {					obj.left = parseInt(obj.left) + this.width;				}			}		} else {			for (i = 0; i < this.itemcount; i++) {				obj = document.getElementById(this.name+'item'+i).style;				if ( parseInt(obj.left) < 1 ) { 					obj.left = 0;				} else {					obj.left = parseInt(obj.left) + width;				}			}		}	}		this.unext = function () {		this.onmouseover();		this.next();		window.setTimeout(this.name+".onmouseout()",this.pausedelay);	}		this.uprev = function () {		this.onmouseover();		this.prev();		window.setTimeout(this.name+".onmouseout()",this.pausedelay);	}}function select_lcode(frm){	for(i=0; i<frm.lcode.length; i++)	{		if("" == frm.lcode.options[i].value)		{			frm.lcode.options[i].selected = true;			break;		}	}}function select_scode(frm){	for(i=0; i<frm.scode.length; i++)	{		if("" == frm.scode.options[i].value)		{			frm.scode.options[i].selected = true;			break;		}	}}function GoodClick(kg_gubun,kg_seq,kg_point){	var uid = jsGetCookie("user_id");	if (uid)	{		xmlHttpPost('DynamicGood.php', 'kg_gubun='+kg_gubun+'&kg_seq='+kg_seq+'&kg_point='+kg_point, 'FillGoodData');	}}function FillGoodData(pdata){	eval(pdata);	if ('undefined' != typeof(ChangeId))	{		while (ChangeId.hasChildNodes()) ChangeId.removeChild(ChangeId.firstChild);		ChangeId.appendChild(document.createTextNode(Total));	}}function jsRegion(frm,frmname,region){	frm.lcode.options.length = 1;	frm.scode.options.length = 1;	xmlHttpPost('DynamicRegion.php', 'region='+region+'&frmname='+frmname, 'FillLcodeData');}function FillLcodeData(pdata){	eval(pdata);	var arData = arLcodeCodeList;	for (var i=0; i<arData.length; i++)	{		lcode_value = arData[i]['value'];		lcode_text = arData[i]['text'];		f.lcode.options[f.lcode.options.length] = new Option(lcode_text, lcode_value);	}	if ('undefined' != typeof(select_lcode))	{		select_lcode(f);	}}function jsGroup(frm,frmname){	var lcode = frm.lcode.value;	frm.scode.options.length = 1;	xmlHttpPost('DynamicGroup.php', 'lcode='+lcode+'&frmname='+frmname, 'FillScodeData');}function FillScodeData(pdata){	eval(pdata);	var arData = arAreaCodeList;	for (var i=0; i<arData.length; i++)	{		scode_value = arData[i]['value'];		scode_text = arData[i]['text'];		f.scode.options[f.scode.options.length] = new Option(scode_text, scode_value);	}	if ('undefined' != typeof(select_scode))	{		select_scode(f);	}}function jsClasses(frm,frmname,fields){	var ddvs = frm.options[frm.options.selectedIndex].value;	if (ddvs) xmlHttpPost('DynamicClass.php', 'parent_seq='+ddvs+'&frmname='+frmname+'&fields='+fields, 'FillClassData');}function FillClassData(pdata){	eval(pdata);	var arData = arAreaCodeList;	for (var i=0; i<arData.length; i++)	{		class_value = arData[i]['value'];		class_text = arData[i]['text'];		fields.options[fields.options.length] = new Option(class_text, class_value);	}}function chkJumin(frm,frmname){	if(frm.agreement_ok.checked==false)	{		alert('ÀÌ¿ë¾à°ü¿¡ µ¿ÀÇÇÏ¼Å¾ß È¸¿ø°¡ÀÔÀÌ °¡´ÉÇÕ´Ï´Ù.');		return false;	}	if(!chkForm(frm)) return false;	var user_name = frm.user_name.value;	var ssh1 = frm.ssh1.value;	var ssh2 = frm.ssh2.value;	if(!bsshChek(ssh1,ssh2))	{		alert('ÁÖ¹Îµî·Ï¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.');		return false;	}	xmlHttpPost('DynamicJumin.php', 'user_name='+user_name+'&ssh='+ssh1+ssh2+'&frmname='+frmname, 'FillJuminData');}function FillJuminData(pdata){	eval(pdata);	var arData1 = jumin_result;	var arData2 = name_result;	if (arData1 && arData2)	{		f.action='idsearch.php';		f.submit();	}	else if (arData1 && !arData2)	{		alert('°¡ÀÔµÈ ÁÖ¹Îµî·Ï¹øÈ£ÀÇ ÀÌ¸§°ú ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.');		f.user_name.value='';		f.user_name.focus();	}	else	{		f.submit();	}}function chkAgreement(frm,frmname){	if(frm.agreement_ok.checked==false)	{		alert('ÀÌ¿ë¾à°ü¿¡ µ¿ÀÇÇÏ¼Å¾ß È¸¿ø°¡ÀÔÀÌ °¡´ÉÇÕ´Ï´Ù.');	}	else	{		document.location.href='member_join2.php';	}}function bsshChek(str_jumin1,str_jumin2){	var resno = str_jumin1 + str_jumin2;	var fmt = /^\d{6}[1234]\d{6}$/;	if (!fmt.test(resno)) return false;	birthYear = parseInt(resno.charAt(6)) <= 2 ? "19" : "20";	//1900³â´ë : 1,2	2000³â´ë : 3,4	birthYear += resno.substr(0, 2);	birthMonth = resno.substr(2, 2) - 1;	birthDate = resno.substr(4, 2);	birth = new Date(birthYear, birthMonth, birthDate);	if (birth.getFullYear() % 100 != resno.substr(0, 2) || birth.getMonth() != birthMonth || birth.getDate() != birthDate) return false;	var sum = 0;	for (i = 0; i < 12; i++) sum += parseInt(resno.charAt(i)) * (i%8 + 2);	if ((11 - (sum % 11)) % 10 != resno.charAt(12)) return false;	return true;}function chkUserid(frm,frmname){	var user_id = frm.user_id.value;	if(chkLength(frm.user_id,4) && chkPatten(frm.user_id,'regId','ID¸¦ ÀÔ·ÂÇÏ¼¼¿ä'))	{		var user_id1 = blockid(user_id);		if (user_id)		{			if(!user_id1)			{				alert('ÇØ´ç ID´Â »ç¿ëÀÌ ±ÝÁöµÇ¾ú½À´Ï´Ù.');				frm.user_id.focus();			}			else			{				xmlHttpPost('DynamicUserid.php', 'user_id='+user_id+'&frmname='+frmname, 'FillchkUserid');			}		}		else		{			alert('ID¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');			frm.user_id.focus();		}	}}function FillchkUserid(pdata){	eval(pdata);	var arData = dupchk_result;	if (arData > 0)	{		alert('Á¸ÀçÇÏ´Â IDÀÔ´Ï´Ù.');		f.user_id.value='';		f.dup_chk.value='';		f.user_id.focus();	}	else	{		alert('»ç¿ëÇÒ¼ö ÀÖ´Â IDÀÔ´Ï´Ù.');		f.dup_chk.value='1';	}}function chkAgencyid(frm,frmname){	var agency_id = frm.agency_id.value;	var agency_id1 = blockid(agency_id);	if (agency_id)	{		if(!agency_id1)		{			alert('ÇØ´ç ID´Â »ç¿ëÀÌ ±ÝÁöµÇ¾ú½À´Ï´Ù.');			frm.agency_id.focus();		}		else		{			xmlHttpPost('DynamicAgencyid.php', 'agency_id='+agency_id+'&frmname='+frmname, 'FillchkAgencyid');		}	}	else	{		alert('ID¸¦ ÀÔ·ÂÇÏ¼¼¿ä.');		frm.agency_id.focus();	}}function FillchkAgencyid(pdata){	eval(pdata);	var arData = dupchk_result;	if (arData > 0)	{		alert('Á¸ÀçÇÏ´Â IDÀÔ´Ï´Ù.');		f.agency_id.value='';		f.dup_chk.value='';		f.agency_id.focus();	}	else	{		alert('»ç¿ëÇÒ¼ö ÀÖ´Â IDÀÔ´Ï´Ù.');		f.dup_chk.value='1';	}}function chkUseremail(frm,frmname){	var user_email = frm.user_email.value;	if (user_email)	{		xmlHttpPost('DynamicUseremail.php', 'user_email='+user_email+'&frmname='+frmname, 'FillchkUseremail');	}	else	{		alert('ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ¼¼¿ä.');		frm.user_email.focus();	}}function FillchkUseremail(pdata){	eval(pdata);	var arData = dupchk_result;	if (arData > 0)	{		alert('Á¸ÀçÇÏ´Â ÀÌ¸ÞÀÏÀÔ´Ï´Ù.');		f.user_email.value='';		f.dup_chk1.value='';		f.user_email.focus();	}	else	{		alert('»ç¿ëÇÒ¼ö ÀÖ´Â ÀÌ¸ÞÀÏÀÔ´Ï´Ù.');		f.dup_chk1.value='1';	}}function getObject(data){	document.write (data);}function getFlash(src, width, height){	if(!src || !width || !height)	{		return null;	}	var classid  = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";	var codebase = "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0";	var wmode    = "transparent";	var quality  = "high";	var plugin   = "http://www.macromedia.com/go/getflashplayer";	var type     = "application/x-shockwave-flash";	var html = "<object classid='" + classid + "' "			 + "codebase='" + codebase + "' "			 + "width='" + width + "' height='" + height + "'>"			 + "<param name='wmode' value='" + wmode + "'>"			 + "<param name='movie' value='" + src + "'>"			 + "<param name='quality' value='" + quality + "'>"			 + "<embed src='" + src + "' "			 + "quality='" + quality + "' pluginspage='" + plugin + "' type='" + type + "' "			 + "width='" + width + "' height='" + height + "'></embed></object>";	getObject(html);}function Move_Page(t){	if(t.lcode.value || t.scode.value) t.submit();}function JumpPage(domain){	if(domain) document.location.href="http://"+domain;}function OpenPopup(url,width,height,left,top){	if(url)	{		var winName = "Popup";		newWindow = window.open(url,winName,'width='+width+', height='+height+',left='+left+',top='+top+', toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=yes, scrollbars=yes, copyhistory=no');	}}function jsGetCookie(name){	var nameOfCookie = name + "=";	var x = 0;	while ( x <= document.cookie.length )	{		var y = (x+nameOfCookie.length);		if ( document.cookie.substring( x, y ) == nameOfCookie )		{			if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) endOfCookie = document.cookie.length;			return unescape( document.cookie.substring( y, endOfCookie ) );		}		x = document.cookie.indexOf( " ", x ) + 1;		if ( x == 0 ) break;	}	return "";}String.prototype.cut = function(len){	var str = this;	var l = 0;	for (var i=0; i<str.length; i++)	{		l += (str.charCodeAt(i) > 128) ? 2 : 1;		if (l > len) return str.substring(0,i) + "..";	}	return str;}String.prototype.bytes = function(){	var str = this;	var l = 0;	for (var i=0; i<str.length; i++) l += (str.charCodeAt(i) > 128) ? 2 : 1;	return l;}function write_title(str, len){	var cutstr = str.cut(len);	document.write(cutstr);}function write_title1(str, len){	var cutstr = str.cut(len);	return cutstr;}//-->