﻿// <![CDATA[
//================================//
//# Global variables
//================================//

var pUrl;               // Detail 부분 URL
var pPars;
var pObj;
var pMethod;	
 
var v_Data;
var v_DataUrl;
var v_DataPars;
var v_response_obj;

//버튼 아이콘 생성
ICON_AUTH = new Array ();

//------------------------------------------//
//메뉴클릭
//------------------------------------------//
function Menu_Load_Val(mn, vm, rurl, mPara){
    
    $('system_body').style.display = '';
    
    Load_Area_Content(system_body, '', 'get', 'true', rurl);
    
    if (vm == '' || vm == 't' ) {
        Load_Area_Content(system_left, '', 'get', 'true', '/Global/Menu.asp?mn='+mn);
        Load_Area_Content(system_body_top, '', 'get', 'true', '/body_top.asp?mn='+mn);
        Load_Area_Content(system_body_title, '', 'get', 'true', '/body_title.asp?mn='+mn + '&mPara=' + mPara);
        Load_Area_Content(system_body_bottom, '', 'get', 'true', '/body_bottom.asp?mn='+mn);
    }
    
}
//------------------------------------------//
//메뉴클릭
//------------------------------------------//
function Menu_Load_URL(mn, vm, rurl){

    $('system_body').style.display = '';
    
    Load_Area_Content(system_body, '', 'get', 'true', rurl);
    
    if (vm == '' || vm == 't' ) {
        Load_Area_Content(system_left, '', 'get', 'true', '/Global/Menu.asp?mn='+mn);
        Load_Area_Content(system_body_top, '', 'get', 'true', '/body_top.asp?mn='+mn);
    }
    
}
//------------------------------------------//
//메뉴클릭
//------------------------------------------//
function Menu_Load(mn, vm){
    //vm : t=sub reload, content image reload, s=sub click title, content reload
    getHTML('Load_Content.asp?rmn='+mn+'&vm='+vm, '', ax_Proc, 'get', 'true', 'true');
}
//------------------------------------------//
//URL 표시
//------------------------------------------//
function Url_Load(mn, vm, rurl){
    //vm : t=sub reload, content image reload, s=sub click title, content reload
    getHTML('Load_Content.asp?rmn='+mn+'&vm='+vm + '&rurl=' + rurl, '', ax_Proc, 'get', 'true', 'true');
}

function MM_openBrWindow (theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
}
    
Ajax_Handler_Init();

//------------------------------------------//
//컨텐츠 영역 로드
//------------------------------------------//
function Load_Content(cURL) {
    
    $('PREV_PAGE_URL').value = $('CURR_PAGE_URL').value;
    $('CURR_PAGE_URL').value = cURL;
    
    pUrl = cURL;
    pPars = '';
    pObj = document.getElementById("ax_Content");
    pMethod = 'get';
    pAsync = true;
    pEval = true;

    getHTML(pUrl, pPars, pObj, pMethod, pAsync, pEval);
	
}	
//------------------------------------------//
//부분 컨텐츠 영역 로드
//------------------------------------------//
function Load_Area_Content(ax_Area, ax_Pars, ax_Method, ax_Async, cURL) {
    
    pUrl = cURL;
    pPars = ax_Pars;
    pObj = ax_Area;
    pMethod = ax_Method;
    pAsync = ax_Async;
    pEval = true;
    
    getHTML(pUrl, pPars, pObj, pMethod, pAsync, pEval);
	
}
//------------------------------------------//
//뒤로
//------------------------------------------//
function ax_Data_Back() {
    cURL = $('PREV_PAGE_URL').value;
    if (cURL != '') Load_Content(cURL);
}
//------------------------------------------//
//다시
//------------------------------------------//
function ax_Data_Reload() {
    cURL = $('CURR_PAGE_URL').value;
    if (cURL != '') Load_Content(cURL);
}
//==========================================//
//Handler Initialize
//==========================================//    
function Ajax_Handler_Init() {
    
    myGlobalHandlers = {

		onCreate: function(){
		    //obj_Middle($('systemWorking'));
			Element.show('systemWorking');
		},
		onComplete: function() {
			if(Ajax.activeRequestCount == 0){
				Element.hide('systemWorking');
			}
		}
		
	};
	
	Ajax.Responders.register(myGlobalHandlers);
	
}	
//==========================================//
//Ajax.Updater에서  pObj로 HTML을 리턴
//==========================================//
function getHTML(pUrl, pPars, pObj, pMethod, pAsync, pEval)
{
	var myAjax = new Ajax.Updater(
				{success: pObj}, 
				pUrl, 
				{
					method: pMethod, 
					parameters: pPars, 
					asynchronous : pAsync,
					evalScripts: pEval,
					onFailure: getHTML_Error
				});
}
function getHTML_Error(request){alert('getHTML - Ajax.Updater error.');}

//==========================================//
//Ajax.PeriodicalUpdater  pObj로 HTML을 pFrequency 마다 리턴
//==========================================//
function getHTML_Period(pObj, pUrl, pFrequency)
{
	var myAjax = new Ajax.PeriodicalUpdater (
				pObj, 
				pUrl, 
				{
				    evalScripts: true,
					frequency: pFrequency,
					onFailure: getHTML_Period_Error
				});
	
}
function getHTML_Period_Error(request){alert('getHTML_Period - Ajax.PeriodicalUpdater error.');}
//==========================================//
//실행
//==========================================//
function Ajax_Exe(pExeUrl, pExePars, pMethod, pAsync, pEval)
{   
	var myAjax = new Ajax.Request(
		pExeUrl, 
		{
			method: pMethod, 
			parameters: pExePars,
			asynchronous : pAsync,
			evalScripts: pEval,
			onComplete: Ajax_Exe_Success,
			onFailure: Ajax_Exe_Failure
		});
}
function Ajax_Exe_Success(ajx){var tempText = eval('('+ajx.responseText+')');}
function Ajax_Exe_Failure(ajx){alert('Ajax_Exe error.');}
//==========================================//
//rtnSyncValue 로 값을 리턴
//==========================================//
function getText_Sync(pExeUrl, pExePars, pMethod, pAsync, pEval)
{   
	var myAjax = new Ajax.Request(
		pExeUrl, 
		{
			method: pMethod, 
			parameters: pExePars,
			asynchronous : pAsync,
			evalScripts: pEval,
			onSuccess: getText_Sync_Success,
			onFailure: getText_Sync_Failure
		});
}
function getText_Sync_Success(ajx){
    
    rtnSyncValue = ajx.responseText;
    
}
function getText_Sync_Failure(ajx){rtnSyncValue = '';alert('getText_Sync error.');}
//==========================================//
// 디자인데이터중 특정영역
//==========================================//
function design_load(dso, dso_id){

    var design = $(dso).getElementsByTagName('textarea');
    var design_node = $A(design);
    var select_dsg = design_node.find( function(dsg){return (dsg.id == dso_id);	});
    if (select_dsg != undefined) {
        rHTML = select_dsg.value;
    };
    return rHTML;
}

//==========================================//
// JSON 데이터+HTML STYLE + HEAD/BODY/FOOT
//==========================================//
function json_Data_Design_HBF(return_obj, jnd_HEAD, jnp_HEAD, jnd_BODY, jnp_BODY, jnd_FOOT, jnp_FOOT) {

    var tempHTML = json_Data_Style_Matching(jnd_HEAD, jnp_HEAD);
    tempHTML = tempHTML + json_Data_Style_Matching(jnd_BODY, jnp_BODY);
    tempHTML = tempHTML + json_Data_Style_Matching(jnd_FOOT, jnp_FOOT);
    
    $(return_obj).innerHTML = tempHTML;
        
}
//==========================================//
// JSON 데이터+JSON STYLE
//==========================================//
function json_Data_Style_Matching(jn_Data, jn_Style)
{
    
    var html_result = '';
    var tmp_result = '';
    var arrKey;
    var arrVal;    
    
    if (jn_Style == '') {return '';}
    else {
    
        if (jn_Data == '') {return jn_Style;}
        else {
            
            if (jn_Data.length == undefined ) {
                
                tmp_result = jn_Style;
                    
                arrKey = $H(jn_Data).keys();
                arrVal = $H(jn_Data).values();
                
                for (kx = 0; kx < arrKey.length;kx++){
                    tmp_result = tmp_result.replaceAll('$'+arrKey[kx], arrVal[kx]);
                }
                html_result = html_result + tmp_result;
                
            } else {
                for (jx=0;jx < jn_Data.length;jx++){
                    
                    tmp_result = jn_Style;
                    arrKey = $H(jn_Data[jx]).keys();
                    arrVal = $H(jn_Data[jx]).values();
                    
                    for (kx = 0; kx < arrKey.length;kx++){
                        tmp_result = tmp_result.replaceAll('$'+arrKey[kx], arrVal[kx]);
                    }
                    
                    html_result = html_result + tmp_result;
                }
            }
            
        	return html_result;
        	
        }
    	
    }
	
}
//==========================================//
// Text File Load
//==========================================//
function txtFileOpen(pFilePath)
{
    
    
    var fso,fileObj,str='';
    var ForReading=1,ForWriting=2; 
    fso = new ActiveXObject("Scripting.FileSystemObject");
    
    if (fso.FileExists(pFilePath)){
        fileObj=fso.OpenTextFile(pFilePath, ForReading, true, 0);
        
        str+=fileObj.ReadAll();
    }
    return str;
    
    /*
    rtnSyncValue = '';
    
    pEUrl = "file:///" + pFilePath.replaceAll("\\", "/").replaceAll(' ', '%20');
    alert(pEUrl);
    pEPars   = '';
    pEMethod = 'get';
    getText_Sync(pEUrl, pEPars, pEMethod, false, false);
    
    return rtnSyncValue;
    */
}

//* ============================ *//
// Export
//* ============================ *//
function File_Export_Data(pType)
{
    
    frmGrid.EXP_TYPE.value = pType;
    pEUrl = "/dbm/global/ax_Export.asp";
    pEPars   = Form.serialize(frmGrid);
    pEMethod = 'post';
    getText_Sync(pEUrl, pEPars, pEMethod, false, false);

    File_Save(pType, rtnSyncValue);
    
}
function File_Save(pType, pData)
{
    
    if (pType =='clp') {
        frmExport.exp_text.value = pData;
        r = frmExport.exp_text.createTextRange();
        r.select();
        r.execCommand('copy');
        alert("메모리에 복사되었습니다.");
    } else {
        frmExport.exp_text.value = pData;
        frmExport.exp_type.value = pType;
        
        pEUrl = "/dbm/global/ax_SaveAs.asp";
        frmExport.target = "ifrProc";
        frmExport.action = pEUrl;
        frmExport.method = 'post';
        frmExport.submit();
    }
}

function DB_Commit(){
    
    pQUrl = "Global/DB_Commit_RollBack.asp"
    pPars   = "SAVE_MODE=C";
    pObj    = 'ax_Temp';
    pMethod = 'get';
    getHTML(pQUrl, pPars, pObj, pMethod, true, true);
    
}
function DB_RollBack (){

    pQUrl = "Global/DB_Commit_RollBack.asp"
    pPars   = "SAVE_MODE=R";
    pObj    = 'ax_Temp';
    pMethod = 'get';
    getHTML(pQUrl, pPars, pObj, pMethod, true, true);
    
}



//* ============================ *//

function window_resize(obj, w_width, w_height){
    if (w_width == 0) obj.style.width = w_width;
	if (w_height == 0) obj.style.height = w_height;
}
function obj_Middle(obj){
	obj.style.left = (screen.width-obj.style.width) / 2;
	obj.style.top = (screen.height-obj.style.height) / 2;
}
String.prototype.replaceAll = function( searchStr, replaceStr ) {
    var temp = this;
    while( temp.indexOf( searchStr ) != -1 )
    {
      temp = temp.replace( searchStr, replaceStr );
    }
    return temp;
}
function DB_Log(msg){
	if ($('ax_db_log') != undefined) {
    	var nowDate = new Date();
	    ax_db_log.innerHTML = "<ul><li>" + msg + "<br>(" + nowDate.getHours() + " : "  + nowDate.getMinutes() + " : " + nowDate.getSeconds() + ")</li></ul>" + ax_db_log.innerHTML;
	}
}
function obj_Toggle(obj){
    if ($(obj).style.display == '' ) Element.hide(obj);
    else  Element.show(obj);
}

// [Cookie] Sets value in a cookie

function setCookie (cookieName, cookieValue, expires, path, domain, secure) {

	document.cookie =

		escape(cookieName) + '=' + escape(cookieValue)

		+ (expires ? '; expires=' + expires.toGMTString() : '')

		+ (path ? '; path=' + path : '')

		+ (domain ? '; domain=' + domain : '')

		+ (secure ? '; secure' : '');

}



// [Cookie] Gets a value from a cookie

function getCookie (cookieName) {

	var cookieValue = '';

	var posName = document.cookie.indexOf(escape(cookieName) + '=');

	if (posName != -1) {

		var posValue = posName + (escape(cookieName) + '=').length;

		var endPos = document.cookie.indexOf(';', posValue);

		if (endPos != -1) cookieValue = unescape(document.cookie.substring(posValue, endPos));

		else cookieValue = unescape(document.cookie.substring(posValue));

	}

	return (cookieValue);

}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function mf(s,d,w,h,t){
        return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width="+w+" height="+h+" id="+d+"><param name=wmode value="+t+" /><param name=movie value="+s+" /><param name=quality value=high /><embed src="+s+" quality=high wmode="+t+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+w+" height="+h+"></embed></object>";
}

// write document contents
function documentwrite(src){
        document.write(src);
}

// assign code innerHTML
function setcode(target, code){
        target.innerHTML = code;
}

function img_Resize(obj, objurl){
	upimage = new Image();
	upimage.src = objurl;
	if (upimage.width > 390) obj.width = 390;
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
	document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
	obj.visibility=v; }
}

function gourl(url, target){
	target.location.href = url;
}
function caldisplay(ifrname){
	objcal = document.getElementById(ifrname);
	if (objcal.style.display == ''){objcal.style.display = 'none';}
	else {objcal.style.display = '';}
}
function NewWin(url,winname,width,height) {		
	  features = "left="+(screen.width-width)/2+",top="+(screen.height-height)/2+",width="+width+",height="+height+",scrollbars=0 menubar=0, status=0, toolbar=0, location=0";
	  nw = window.open(url,winname,features);
	  nw.focus();
}
function NewWin2(url,winname,left,top,width,height) { 
	  features = "left="+left+",top="+top+",width="+width+",height="+height+",scrollbars=0 menubar=0, status=0, toolbar=0, location=0";
	  nw = window.open(url,winname,features);
	  nw.focus();
}
function NewWin3(url,winname, width,height) { 
	  features = "left="+(screen.width-width)/2+",top="+(screen.height-height)/2+",width="+width+",height="+height+",scrollbars=yes menubar=0, status=0, toolbar=0, location=0";
	  nw = window.open(url,winname,features);
	  nw.focus();
}
function NewWin_Modaless (url,width,height) {
    winstyle = "dialogWidth=" + width + "px; dialogHeight:" + height + "px; center:yes; scroll:no";
    window.showModalDialog(url, window, winstyle);
}
function NewWin4(url,winname,width,height) {		
	  features = "left="+(screen.width-width)/2+",top="+(screen.height-height)/2+",width="+width+",height="+height+",scrollbars=1 menubar=1, status=1, toolbar=1, location=1, resizable=yes";
	  nw = window.open(url,winname,features);
	  nw.focus();
}
function enterKeyDown(objvalue){
	
	if (window.event.keyCode == 13)	{
		frmSearch.page.value = 1;
		frmSearch.target = '';
		pPars   = Form.serialize(frmSearch);
        Load_Area_Content(system_body, pPars, 'post', 'true', '/board/01.asp');
	}

}
function paging(movepage){
	frmSearch.target = '';
	frmSearch.page.value = movepage;
	
	pPars   = Form.serialize(frmSearch);
    Load_Area_Content(system_body, pPars, 'post', 'true', '/board/01.asp');
    
}
function ListSearch(){
	frmSearch.target = '';
	frmSearch.page.value = '';
	pPars   = Form.serialize(frmSearch);
    Load_Area_Content(system_body, pPars, 'post', 'true', '/board/01.asp');
    
}
function AllListSearch(){
	frmSearch.target = '';
	
	frmSearch.keyfield.value = "";
	frmSearch.keyword.value = "";
	
	frmSearch.page.value = '';
	pPars   = Form.serialize(frmSearch);
    Load_Area_Content(system_body, pPars, 'post', 'true', '/board/01.asp');
    
}
function ax_enterKeyDown(objvalue, actUrl){
	
	if (window.event.keyCode == 13)	{
		frmSearch.page.value = 1;
		frmSearch.target = '';
		pPars   = Form.serialize(frmSearch);
        Load_Area_Content(system_body, pPars, 'post', 'true', actUrl);
	}

}
function ax_paging(movepage, actUrl){
	frmSearch.target = '';
	frmSearch.page.value = movepage;
	
	pPars   = Form.serialize(frmSearch);
    Load_Area_Content(system_body, pPars, 'post', 'true', actUrl);
    
}
function ax_ListSearch(actUrl){
	frmSearch.target = '';
	frmSearch.page.value = '';
	pPars   = Form.serialize(frmSearch);
    Load_Area_Content(system_body, pPars, 'post', 'true', actUrl);
    
}
function ax_AllListSearch(actUrl){
	frmSearch.target = '';
	
	frmSearch.keyfield.value = "";
	frmSearch.keyword.value = "";
	
	frmSearch.page.value = '';
	pPars   = Form.serialize(frmSearch);
    Load_Area_Content(system_body, pPars, 'post', 'true', actUrl);
    
}
function objDisplayToggle(obj, imgobj){
	if (obj.style.display == '') {
		obj.style.display = 'none';
	}
	else {
		obj.style.display = '';
	}
}
function toCommaString(nVal){
	strVal = String(nVal);
	strlen = strVal.length;
	tempStr = "";
	for (idx=3;idx < strlen;idx+=3){
		tempStr =  ',' + strVal.substr(strlen-idx, 3) + tempStr;
	}
	tempStr = strVal.substr(0, strlen-(idx-3)) + tempStr;
	return tempStr;
}
function ShowProgress(obj)
{
	if (obj == undefined) return;
	strAppVerRSion = navigator.appVersion;
	flen = obj.length;
	if (flen == undefined) {
			
		if (obj.value != "") {
			if (strAppVerRSion.indexOf('MSIE') != -1 && strAppVerRSion.substr(strAppVerRSion.indexOf('MSIE')+5,1) > 4) {
				winstyle = "dialogWidth=385px; dialogHeight:150px; center:yes";
				window.showModelessDialog("/global/show_progress.asp?nav=ie", null, winstyle);
			}
			else {
				winpos = "left=" + ((window.screen.width-380)/2) + ",top=" + ((window.screen.height-110)/2);
				winstyle="width=380, height=110, status=no, toolbar=no, menubar=no, location=no, resizable=no, scrollbaeduskyRS=no, copyhistory=no," + winpos;
				window.open("/global/show_progress.asp?nav=ns",null,winstyle);
			}
			//return true;
		}
	
		//else return false;
		
	} else {
	
		if (obj[0].value != "") {
			if (strAppVerRSion.indexOf('MSIE') != -1 && strAppVerRSion.substr(strAppVerRSion.indexOf('MSIE')+5,1) > 4) {
				winstyle = "dialogWidth=385px; dialogHeight:150px; center:yes";
				window.showModelessDialog("/global/show_progress.asp?nav=ie", null, winstyle);
			}
			else {
				winpos = "left=" + ((window.screen.width-380)/2) + ",top=" + ((window.screen.height-110)/2);
				winstyle="width=380, height=110, status=no, toolbar=no, menubar=no, location=no, resizable=no, scrollbaeduskyRS=no, copyhistory=no," + winpos;
				window.open("/global/show_progress.asp?nav=ns",null,winstyle);
			}
			//return true;
		}
	
		//else return false;
	}
}
// ]]>

