      function ImageRollover(img) {
        //var img = event.srcElement;

        try {
          if(img.src.search(/_1(\.(gif|jpg))$/) != -1) {
            img.src = img.src.replace(/_1(\.(gif|jpg))$/, "_2$1");
          } else {
            img.src = img.src.replace(/_2(\.(gif|jpg))$/, "_1$1");
          }
        } catch(e) {
          window.alert(e);
        }
      }


      function ImageOver(img) {
        try {
          if(img.src.search(/_1(\.(gif|jpg))$/) != -1) {
            img.src = img.src.replace(/_1(\.(gif|jpg))$/, "_2$1");
          }
        } catch(e) {
        }
      }


      function ImageOut(img) {
        try {
          if(img.src.search(/_2(\.(gif|jpg))$/) != -1) {
            img.src = img.src.replace(/_2(\.(gif|jpg))$/, "_1$1");
          }
        } catch(e) {
        }
      }

// ecatalog °ü·Ã »ç¿ëÀÚ ºê¶ó¿ìÁ® Ã¼Å© ½ºÅ©¸³Æ®////////////////////////////////////////////////////////////////
/*
	function chkProductBrowser(){
		var browser, version, platform;
		var msiestart, msieend, msiestring, msiearray[], msieversion[2], msplatform[3];

		if(navigator.appName==""){ 
			browser="No browser,"; 
		} else { 
			browser=navigator.appName; 
		} 

		version = parseFloat(navigator.appVersion); 
		if ((Math.round(parseFloat(navigator.appVersion)*100)) - (parseInt(navigator.appVersion) * 100) == 0) { 
				version = version + ".0"; 
		} 

		if (navigator.appName.substring(0,9) == "Microsoft") { 
				msiestart = (navigator.appVersion.indexOf('(') + 1); 
				msieend = navigator.appVersion.indexOf(')'); 
				msiestring = navigator.appVersion.substring(msiestart, msieend); 
				msiearray = msiestring.split(";");		// compatible, MSIE 6.0, Windows NT 5.0, .NET CLR 1.0.3705
				msieversion = msiearray[1].split(" ");	// MSIE, 6.0
				version = msieversion[2];				// 6.0
				msplatform = msiearray[2].split(" ");		// Windows, NT, 5.0
				platform = msplatform[2];
		}
		
		if (browser=="Microsoft Internet Explorer"){

			if (version>5.5){
				//lLayer3.style.visibility="visible";	
			}else{
				//spanBrowser.innerHTML="Please check your IE Version."
			}
		}
		//var tStr=browser + "." + version;
		//return tStr;
		return msiearray;
	}
	*/
///////////////////////////////////////////////////////////////////////////////////////////////


      function ProductCatalog() {
      //alert(navigator.appVersion);	
      //alert(navigator.appVersion);
      //var catalog = window.open('/product/catalog.asp', 'product_catalog', 'width=700, height=400, toolbar=0, location=0, directories=0, status=0, menubar=0, resizable=0');

      var catalog = window.open('/product/catalog.asp', 'product_catalog', 'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
      catalog.resizeTo(800, 606);
      catalog.moveTo((window.screen.width - 800) / 2, (window.screen.height - 600) / 2);
      }


      function ProductCategory(category) {
        var catalog = window.open('/product/category.asp?category=' + escape(category), 'product_catalog', 'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
        catalog.resizeTo(800, 606);
        catalog.moveTo((window.screen.width - 800) / 2, (window.screen.height - 600) / 2);
      }


      function ProductModel(model) {
        false;
        //var catalog = window.open('/product/model.asp?model=' + escape(model), 'product_catalog', 'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
        //catalog.resizeTo(800, 606);
        //catalog.moveTo((window.screen.width - 800) / 2, (window.screen.height - 600) / 2);
      }

      //Domss Main È­¸éÀÇ Cyber Fair ºÎºÐ¿¡¼­ È£ÃâµÇ´Â ÇÔ¼ö 2002/11/03 Gina
      function CyberFair() {
        var cyberfair = window.open('/CyberEvent/index.html', 'CyberFair', 'width=800,height=589,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0');
        //cyberfair.resizeTo(760, 575);
        cyberfair.moveTo((window.screen.width - 800) / 2, (window.screen.height - 600) / 2);
      }
      // ÇÔ¼ö ³¡
      
      //Domss Main È­¸éÀÇ Featured Product ºÎºÐ¿¡¼­ È£ÃâµÇ´Â ÇÔ¼ö 2002/11/07 Gina
      function FeaturedLink(e) {
        var cyberfair = window.open('/CyberEvent/Featured' + e + '.htm', 'CyberFair', 'width=800,height=589,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0');
        //cyberfair.resizeTo(760, 575);
        cyberfair.moveTo((window.screen.width - 800) / 2, (window.screen.height - 600) / 2);
      }    
      // ÇÔ¼ö ³¡                        
      
      function goURL(n) {
        switch(n) {
          case 1:
            window.location.href = "category.asp?category=TC&background=" + escape(background);
            break;
          case 2:
            window.location.href = "category.asp?category=MC&background=" + escape(background);
            break;
          case 3:
            window.location.href = "model.asp?model=ACE-DB+Series&background=" + escape(background);
            break;
          case 4:
            window.location.href = "model.asp?model=MFG.+Solutions&background=" + escape(background);
            break;
        }
      }


      function PollResult(poll) {
        window.open("/main/poll/result.asp?poll=" + poll, "poll_result", "width=190,height=295");
      }


      function NetworkCustomer(country, company) {
        window.open("/network/customers_detail.asp?country="+escape(country)+"&company="+escape(company), "customers_detail", "width=450,height=460,location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no");
      }


      function ExhibitionFair(fair) {
        window.open("/exhibition/fairs/annual_detail.asp?fair="+escape(fair), "exhibition_fair", "width=450,height=460,location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no");
      }


      function ConfirmRedirect(msg, url) {
        if(window.confirm(msg))
          window.location.href = url;
      }
      
      //CyberTraining È£ÃâÇÔ¼ö 2003/06/23 Fanta
      function CyberTraining() {
        var ct = window.open('/dealer/as/training/index.html', 'cyber_training', 'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
		    ct.resizeTo(800, 580);
		    ct.moveTo((window.screen.width - 800) / 2, (window.screen.height - 580) / 2);
      }

      function CyberTrainingTheme(theme) {
        if (theme == 'MC') {
          window.alert('Coming Soon...');
        } else {
          var ct = window.open('/dealer/as/training/theme.asp?theme=' + escape(theme), 'cyber_training', 'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
          ct.resizeTo(800, 580);
          ct.moveTo((window.screen.width - 800) / 2, (window.screen.height - 580) / 2);
        }
      }

      function CyberTrainingModel(theme, model) {
        var ct = window.open('/dealer/as/training/model.asp?theme=' + escape(theme) + '&model=' + escape(model), 'cyber_training', 'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
		    ct.resizeTo(800, 580);
		    ct.moveTo((window.screen.width - 800) / 2, (window.screen.height - 580) / 2);
      }

      function CyberTrainingArticle(theme, model, article) {
        var ct = window.open('/dealer/as/training/article.asp?theme=' + escape(theme) + '&model=' + escape(model) + '&article=' + escape(article), 'cyber_training', 'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
		    ct.resizeTo(800, 580);
		    ct.moveTo((window.screen.width - 800) / 2, (window.screen.height - 580) / 2);
      }

/* default Homepage setting START */

function set_homepage(x, url) { 
    if (navigator.appVersion.indexOf('MSIE 3') != -1 || navigator.appVersion.indexOf('MSIE 4') != -1) { 
        confirm('Do you want to set your browser`s default home page DOMSS.com?'); 
        top.location = 'http://www.domss.com'; 
    } 
    else if (navigator.appVersion.indexOf('MSIE 5') != -1) { 
        x.style.behavior = 'url(#default#homepage)'; 
        x.setHomePage(url);    
        var ret; 
        ret = x.isHomePage(url); 
        if (ret==true) 
            open('http://www.domss.com','_top');// ½ÃÀÛÀ¸·Î µî·ÏÇÒ ÁÖ¼Ò¿Í Å¸°Ù 
	} 
} 

/* default Homepage setting  END */


function ExhibitionInvitation (exhibition, year, w, h){
  if (w=="" || h=="") {
    w = 700;
    h = 600;
  }
  window.open("/exhibition/" + exhibition + "/invitation" + year + ".html", "ExhibitionPopup", "width="+w+", height="+h+", top=0, left=0, , scrollbars=1, resizable=1")
    
}

// DIF2005 Accompiment
function ExhibitionAccompliment (exhibition, year){
  window.open("/exhibition/" + exhibition + "/Accompliment" + year + ".html", "AccomplimentPopup", "width=1090, height=550, scrollbars=0, resizable=0")
}

// Àü½ÃÈ¸ ÆË¾÷Ã¢ ¶ç¿ì±â
function ExhibitionPopup (exhibition, year, w, h){
  if (w=="" || h=="") {
    w = 300;
    h = 300;
  }
  window.open("/exhibition/" + exhibition + "/popup" + year + ".html", "ExhibitionPopup", "width="+w+", height="+h+", top=0, left=0")
    
}

// DIMF2003 »õÃ¢ ¸Å´º ¶ç¿ì±â
function dimf2003() {
	var cimt = window.open('/exhibition/dimf/dimf2003/main.html', 'dimf2003', 'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
	cimt.resizeTo(1024, 768);
	cimt.moveTo((window.screen.width - 1024) / 2, (window.screen.height - 768) / 2);
}

// CIMT2003 »õÃ¢
function CyberCIMT() {
  var cimt = window.open('/cimt/cimt.asp', 'cyber_CIMT', 'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
  cimt.resizeTo(800, 600);
  cimt.moveTo((window.screen.width - 800) / 2, (window.screen.height - 650) / 2);
}

// Exhibition Popup goes to the Exhibition Menu
  function gotoExhibition(exhibition) {
    window.opener.location.href = "/exhibition/" + exhibition;
    window.close();
  }

// EMO2003
function EMO2003() {
	var emo = window.open('/exhibition/emo/emo2003/main.asp', 'emo2003', 'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
	emo.resizeTo(1024, 788);
	emo.moveTo((window.screen.width - 1024) / 2, (window.screen.height - 788) / 2);
}


//E-Catalog ÆË¾÷Ã¢
function OpenEcatalog(model) {
  var top, left, width=1024, height=768;
  top = screen.height/2 - height/2;
  left = screen.width/2 - width/2;
  var TrueEBook = window.open("/customer/product/ecatalog/catalog.asp?model=" + escape(model), "TrueEBook",
  "left=" + left + ", " +
  "top=" + top + ", " +
  "width=" + width + ", " +
  "height=" + height + ", " +
  "toolbar=no, " +
  "location=no, " +
  "directories=no ," +
  "status=no ," +
  "menubar=no, " +
  "scrollbars=no, " +
  "resizable=no" );
  TrueEBook.focus();
}

function goMailing() {
  location.href = "/customer/main/account/account.asp"
	//window.open("/main/mailing/subscribe.asp", "mailing", "width=450, height=430, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=auto, resizable=0");
}

function systemNotice() {
  window.open("/main/service/notice.asp", "systemNotice", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0, width=414, height=414");
}

function OptimalSolution() {
  window.open("/main/company/osc/index.asp", "osc", " width=860, height=700,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");
}

function CIMT2005() {
  window.location.href = "/exhibition/cimt/cimt_2005.asp";
}

function PPTViewer(ppt, title) {
  var w = 810;
  var h = 640;
  var aw = (screen.width - w) / 2; 
  var ah = (screen.height - h) / 2; 

  window.open("/view-ppt/?ppt=" + ppt + "&title=" + title, "ppt", "width=" + w + ",height=" + h + ",top=" + ah + ",left=" + aw);
}

function OpenDMTSystem() {
    window.open("http://www.daewoomt.com/main/popup/dmt/realindex.asp", "DMTSystem", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0, width=850, height=600");
}

function Go_DimfTheme() {
  window.open("http://www.domss.com/exhibition/dimf/dimf2005", 'dimf2005_theme', 'fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0');
}











// Flash
function Flash(url, width, height, wmode) {
  wmode = (wmode) ? wmode : "transparent";

  var buffer;

  buffer =  "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" ";
  buffer += "codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" ";
  buffer += "width=" + width + " "; 
  buffer += "height=" + height + ">";
  buffer += "<param name=\"wmode\" value=" + wmode + " />";
  buffer += "<param name=\"movie\" value=" + url + " />";
  buffer += "<param name=\"quality\" value=\"high\" />";
  buffer += "<embed src=" + url + " ";
  buffer += "quality=\"high\" ";
  buffer += "wmode=" + wmode + " ";
  buffer += "type=\"application/x-shockwave-flash\" ";
  buffer += "pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" ";
  buffer += "width=" + width + " ";
  buffer += "height=" + height + ">";
  buffer += "</embed></object>";

  document.write(buffer);
}

// MediaPlayer
function MediaPlayer(id, url, width, height, parameter) {
  var clsid = "clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"; // WM ver. 7~10 Object ID
  var codebase = "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,0701";
  var param = Array();
  var names = Array();
  var value = Array();
  var parameters = "";

  param = parameter.split(","); // autostart=yes, uimode=none, valume=80
  
  for(var i = 0; i < param.length; i++) {
    var div = param[i].split("=");
    names = div[0].replace(/(^\s*)|(\s*$)/g, "");
    value = div[1].replace(/(^\s*)|(\s*$)/g, "");
    parameters += "<param name='" + names + "' value='" + value + "'>";
  }

  var buffer;

  buffer =  "<object classid=" + clsid + " codebase=" + codebase + " ";
  buffer += "id=" + id + " name=" + id + " ";
  buffer += "width=" + width + " height=" + height + ">";
  buffer += "<param name=\"url\" value=" + url + ">";
  buffer += parameters;
  buffer += "</object>";

  document.write(buffer);
}


/* Fixed Window */
function OpenFixedWindow(url, wName, width, height) {
  window.open(url, wName, "width=" + width + ", height=" + height + ", location=no, directories=no, menubar=no, toolbar=no, status=no, scrollbars=no, resizable=no");
}


/* Alert Coming Soon ***************************************** */
function ComingSoon() {
  window.alert("Coming Soon");
}


	////////////////////////////////////////////
	//main flach select
	////////////////////////////////////////////
	function MainGoUrl(n) {
        switch(n) {
          case 1:
			window.location.href = "/main/company/profile.asp"
            //window.open('/exhibition/imts/imts2008/promotion/main.asp','DNM','width=1040, height=780, fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
            break;    
		  case 2:
			window.location.href = "/customer/product/model/model.asp?model=1022"            
            break;
          case 3:
			window.location.href = "/customer/product/model/model.asp?model=2370"            
            break;             
        }
      }
////////////////////////////////////////////
//Set Cookis 1Day(survey)
////////////////////////////////////////////
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 ""; 
}

function SetCookie(name, value, expiredays)
{
	var todayDate = new Date();
	todayDate.setDate(todayDate.getDate() + expiredays);
	document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

function NoView(pop, expiredays) { 
	SetCookie(pop, "done" , expiredays); 
	self.close(); 
}

function Open_Popup(pop, width, height) {
  if (GetCookie(pop) != "done") { //SetCookie(pop, "done", 1)
    window.open("http://domss.doosaninfracore.com/mydomss/dealer/mysurvey/question.htm?url=" + pop , pop, "width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=2,resizable=0");
  }
}

