function ahref(hrefpage) {
	document.location.href = hrefpage
	return true
}

function choice_href(msg, shref) {
	doit = confirm(msg);
	if(doit) {
		document.location.href = shref;
	}
}

function get_length(str) {
	var real_length = 0
	var i = 0
	var len = str.length

	for(i=0; i<len; i++) {
		ch = str.charCodeAt(i)
		if( ch >= 0xFF )	real_length += 2
		else				real_length++;
	}
	return real_length
}

function open_mail(mail_url) {
	temp = window.open(mail_url, 'MAIL_POP', 'width=450, height=395, menubar=no, status=no, toolbar=no, location=no, scrollbars=no, resizable=no');
	temp.focus()
}

function chgimg(ImgName, ImgSrc) {
	ImgName.filters.blendTrans.stop()
	ImgName.filters.blendTrans.Apply()
	ImgName.src = ImgSrc
	ImgName.filters.blendTrans.Play()
}

<!-- ¿©±â¼­ ºÎÅÏ PHP ÇÔ¼ö¸¦ Æ÷ÆÃÇÑ ÇÔ¼öµéÀÔ´Ï´Ù. --//>
function number_format(num) {
	var num_str = num.toString()
	var result = ''

	for(var i=0; i<num_str.length; i++) {
		var tmp = num_str.length-(i+1)
		if(i%3==0 && i!=0) result = ',' + result
		result = num_str.charAt(tmp) + result
	}

	return result
}

function borderit(which,color) {
	if (document.all||document.getElementById) {
		which.style.borderColor=color
	}
}