// regular expression
var re_email = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)/gi;
// const
var telephone_code = new Array( "02", "031", "032", "033", "041", "042", "043", "051", "052", "053", "054", "055", "061", "062", "063", "064" );
var handphone_code = new Array( "010", "011", "016", "017", "018", "019" );
// flash script??
function flash(obj, src, wid, hei, idName)
{
/*
var tmp;
tmp = document.createElement("object");
tmp.setAttribute("classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000");
tmp.setAttribute("width", wid);
tmp.setAttribute("height", hei);
tmp.setAttribute("wmode", "transparent");
tmp.setAttribute("id", idName);
eval(obj).appendChild(tmp);
eval(idName).movie = src;
*/
var tmp = "";
tmp += "";
document.write (tmp);
}
// flash menu
function flash_lb(obj, src, wid, hei, idName, no)
{
/*var heightf = new Array();
heightf[0] = [ "aaa", "215", "205", "245", "248", "270", "aaa", "aaa", "245" ];
tmp = heightf[0][no.substr(1,1)];*/
var heightf = new Array( "aaa", "215", "205", "245", "248", "270", "aaa", "aaa", "245" );
tmp = heightf[no.substr(1,1)];
if ( ! isNaN(tmp) ) flash(obj, src, wid, tmp, idName) ;
}
// about cookie
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function getCookie( 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 "";
}
// generate options
// opt4select ( value:array or variable, text:array or variable, tmp )
function opt4select(value, text, tmp)
{
var i;
if ( Array.prototype.isPrototypeOf(value) )
for ( i = 0; i < value.length; i ++ )
document.write("