/* vim: set tabstop=4 shiftwidth=4 syntax=javascript: */
function flashPlay(fid, fn, wd, ht, para)
{
document.write('');
}
function objectWriter (parent, obj_type, id, src, width, height)
{
obj = [];
switch (obj_type)
{
case "flash":
obj[obj.length] = "";
obj = obj.join('\\n');
break;
}
if (typeof parent != 'undefined') parent.innerHTML = obj;
else document.write(obj);
}
function flashView(src,width, height,obj)
{
var temp ="";
temp +='';
if(obj == null)
document.write(temp);
else obj.innerHTML=temp;
}
function openWin(uri, target, width, height, scrollbars, resize, pos)
{
var xy_pos = "";
if (pos)
{
xy_pos = ",left=" + (Math.round(screen.width/2) - Math.round(width/2));
xy_pos += ",top=" + (Math.round(screen.height/3) - Math.round(height/3));
}
var remote = window.open(uri, target, "width=" + width +
",height=" + height +
",scrollbars=" + scrollbars +
",resizable=" + resize +
xy_pos +
",toolbar=no,location=no" +
",directories=no,mebar=no");
remote.focus();
return remote;
}
function alertWindow (form, title, message)
{
var url = "/apps/tools/alert.php";
// ÀÔ·Â ¿À·ù½Ã º¸¿©ÁÙ °æ°íâ
if (form != false)
{
form.focus();
}
// alert(title + " : " + message); return;
var new_message = "";
for (var i = 0; i < message.length; i++)
{
// "\n" -> "
"
if (message.charAt(i) == "\n")
{
new_message = new_message + "
";
}
else
{
new_message = new_message + message.charAt(i);
}
}
var alert_window = openWin(url + "?" + "&title=" + title +
"&message=" + new_message,
"", 100, 50, "no", "yes", true);
}
function lengthByte (str)
{
// IE, ±ÛÀÚ¼ö ÃøÁ¤½Ã 2byte ¹®ÀÚ °¨¾È
var len = str.length;
for (var i=0; i 255) len++;
}
return len;
}
function substringByte (str, byte)
{
// IE, 2byte ¹®ÀÚ¸¦ °¨¾ÈÇÏ¿© ¹®ÀÚ¿ ºÎºÐ ÃßÃâ
var len = 0;
var new_str = "";
for (var i=0; i 255) len++;
if (byte < len) return new_str;
else new_str += str.charAt(i);
}
return new_str;
}
function firstFieldFocus (form)
{
// ÇØ´ç ÀԷ¾ç½ÄÀÇ Ã¹¹ø° TEXT Ç׸ñ ¶Ç´Â PASSWORD Ç׸ñ¿¡
// ÀÚµ¿À¸·Î Æ÷Ä¿½º¸¦ ³Ö¾îÁÖ´Â ÇÔ¼ö
if (typeof(form) == 'undefined') return;
var count = form.elements.length;
for (var i=0; i