/**
 * @brief : ±âº» URL Á¤º¸
 **/
var _URL = new Array(16);
_URL['default'] = "/cube_board";
_URL['admin'] = "http://www.usvocation.org/cube_board/admin";
_URL['admincomp'] = "/cube_board/admin_comp";
_URL['css'] = "/cube_board/css";
_URL['execute'] = "/cube_board/execute";
_URL['skin'] = "/cube_board/skin";
_URL['images'] = "/_images";
_URL['script'] = "/cube_board/script";
_URL['upload'] = "/cube_board/upload";
_URL['webhard'] = "/cube_board/webhard";
_URL['backup'] = "/cube_board/backup";
_URL['templet'] = "/templet";
_URL['full'] = "/cube_board/admin";
_URL['common'] = "/common";
_URL['style'] = "/_style";
_URL['_script'] = "/_script";
var defaultHost = "www.usvocation.org";
var SITEURL = "SITEURL";
var SITEURLSSL = "SITEURLSSL";

/**
 * @brief : Á¤±ÔÇ¥Çö½Ä ÆÐÅÏ
 **/
var _REGEXP = new Array();
/**
 * @brief : ºê¶ó¿ìÀú, OS Á¤º¸
 **/
var appName = navigator.appName;   
var userAgent = navigator.userAgent;

/**
 * @brief : Javascript Include class
 **/
function includeOnce(url) {
	var elm = document.createElement('script');
	elm.src = url;
	document.getElementsByTagName('head')[0].appendChild(elm);
}

/**
 * @brief : »õ·Î¿î Alert
 **/
function alertNew(error_str, obj, focusing, classChange, selecting) {
	var alertForm = document.createElement("DIV");
	alertForm.title = "ÀÔ·Â°ª ¿À·ù";
	alertForm.id = "alertForm";
	document.body.appendChild(alertForm);
	var textVal = document.createElement("P");
	alertForm.appendChild(textVal);
	textVal.innerHTML = error_str;
	$("#alertForm").dialog({
		bgiframe: true,
		modal: true,
		draggable: false ,
		resizable: false ,
		buttons: {
			È®ÀÎ: function() {
				$(this).dialog('close');
			}
		}
		,
		close: function() {
			$("#alertForm").dialog( 'destroy' ) ;
			document.body.removeChild(alertForm);
			if (focusing) {
				obj.focus();
			}
			if (classChange) {
				var tmpClass = obj.className;
				tmpClass = strReplace('text', 'wrong', tmpClass);
				obj.className = tmpClass;
			}
			if (selecting) {
				obj.select();
			}
		}
	});
}

/* ÀÓ½Ã */
/* ºê¶ó¿ìÀú, OS Á¤º¸ */
var appName = navigator.appName;   
var userAgent = navigator.userAgent;
var Browser = "";
var OS = "";
if (userAgent.indexOf('MSIE 5.5') > 0) {
	Browser = "MSIE5.5";
}
else if (userAgent.indexOf('MSIE 6.0') > 0) {
	Browser = "MSIE6.0";
}
else if (userAgent.indexOf('MSIE 7.0') > 0) {
	Browser = "MSIE7.0";
}
else if (userAgent.indexOf('MSIE 8.0') > 0) {
	Browser = "MSIE8.0";
}
else if (userAgent.indexOf('Firefox /1.5') > 0) {
	Browser = "Firefox1.5";
}
else if (userAgent.indexOf('Firefox /2.0') > 0) {
	Browser = "Firefox2.0";
}
else if (userAgent.indexOf('Opera') > 0) {
	Browser = "Opera";
}
else if (userAgent.indexOf('Chrome') > 0) {
	Browser = "Chrome";
}
else if (userAgent.indexOf('Safari') > 0) {
	Browser = "Safari";
}
if (userAgent.indexOf('NT 5.1') > 0) {
	OS = "XP";
}
else if (userAgent.indexOf('Linux') > 0) {
	OS = "Linux";
}
var thisAgent
/* ºê¶ó¿ìÀú, OS Á¤º¸ */
/* ±âº» Object */
var disAppTime;
// µÚÂÊ ¼û±â±â¿ë ·¹ÀÌ¾î
var disSelectObj = null;
// ¸Þ½ÃÁö ¹Ú½º
var messageObj = null;
var PopObj = null;
var bannerZone = null;
var buttonZone = null;
// ·¹ÀÌ¾î °¡¸®±â
var iframeObj = null;
/* ±âº» Object */
