function chg_news_tab(getdiv) {
	document.all.newstab[0].style.display = "none";
	document.all.newstab[1].style.display = "none";
	document.all.newstab[getdiv].style.display = "block";
}

function chg_solution_tab(getdiv) {
	document.all.solutiontab[0].style.display = "none";
	document.all.solutiontab[1].style.display = "none";
	document.all.solutiontab[2].style.display = "none";
	document.all.solutiontab[3].style.display = "none";
	document.all.solutiontab[getdiv].style.display = "block";

	document.all.solution_img[0].style.display = "none";
	document.all.solution_img[1].style.display = "none";
	document.all.solution_img[2].style.display = "none";
	document.all.solution_img[3].style.display = "none";
	document.all.solution_img[getdiv].style.display = "block";
}

function IMG(obj,kind){
var xsrc = obj.src;
	if (kind == 'on') obj.src = xsrc.replace("_off.gif", "_on.gif");
	else obj.src = xsrc.replace("_on.gif", "_off.gif");
}

function __ws__(id) {
	document.write(id.text);
	id.id='';
}

function OpenSubMenu(strMenuMenuName) {
	var objSubMenu = document.getElementById(strMenuMenuName+'_sub');
  
	if(objSubMenu.style.display == 'none') {
		objSubMenu.style.display = 'block';
	} else if(objSubMenu.style.display = 'block') {
		objSubMenu.style.display = 'none';
	}
}


var tab= new Array()			
for (i=0 ; i < 10 ; i++){ tab[i] = ""}
function tabview(N,IDN){
	if (tab[N] != "" && tab[N] != IDN ) {					
		document.getElementById(tab[N]).style.display ="none"
	}				
	document.getElementById(IDN).style.display =""
	tab[N] = IDN
}


function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}

function abc(){ 
  newopen = window.open('/main/quick_request.asp','_blank','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=200,height=200');
  return 
} 

function openAlbum(page) 
{ 
var screen_width = 1024 - 10; 
var screen_height = 768 - 30; 

strFeatures = "left=0,top=0,width=" + screen_width + ",height=" + screen_height + ","; 
strFeatures += "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"; 

windowname=window.open( "http://www.albummania.co.kr/gallery/view.asp?seq=53457&path=070214111900&page="+page+"&flip=0", "NoticeJavaVM", strFeatures ); 
windowname.focus(); 
return; 
} 

function openCatalog(url) 
{ 
var screen_width = 1024 - 10; 
var screen_height = 768 - 30; 

strFeatures = "left=0,top=0,width=" + screen_width + ",height=" + screen_height + ","; 
strFeatures += "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"; 

windowname=window.open( url, "NoticeJavaVM", strFeatures ); 
windowname.focus(); 
return; 
} 

function mailCatalog(cname) 
{ 
var screen_width = 700; 
var screen_height = 650; 

strFeatures = "left=0,top=0,width=" + screen_width + ",height=" + screen_height + ","; 
strFeatures += "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"; 

windowname=window.open( "/customs/catalog_mailer.asp?cname="+cname, "NoticeJavaVM", strFeatures ); 
windowname.focus(); 
return; 
} 

function getCookie(name) {
  var from_idx = document.cookie.indexOf(name+'=');
  if (from_idx != -1) { 
    from_idx += name.length + 1
    to_idx = document.cookie.indexOf(';', from_idx) 
      if (to_idx == -1) {
      to_idx = document.cookie.length
      }
    return unescape(document.cookie.substring(from_idx, to_idx))
   }
 }
 
  
