/*
TokigunStudio3 common javascript
Kang Seonghoon (2005.3.26)
*/

function email_decode(str) {
	p = '';
	for(i=str.length-1; i>=0; i--)
		p += String.fromCharCode(str.charCodeAt(i)+i);
	return p;
}
function email_put(str) {
	p = email_decode(str);
	document.write('<a href="mailto:'+p+'">'+p+'</a>');
}
function email_put_nolink(str) {
	document.write(email_decode(str));
}

function hide_div(objid) {
	document.getElementById(objid).className = 'hide';
	return false;
}
function show_div(objid) {
	document.getElementById(objid).className = '';
	return false;
}
function toggle_div(objid) {
	document.getElementById(objid).className =
		(document.getElementById(objid).className ? '' : 'hide');
	return false;
}

