﻿function show_id(num){
	for(var id = 1;id<=3;id++)
	{
		var iin="iin_con"+id;
		if(id==num)
		document.getElementById(iin).style.display="block";
		else
		document.getElementById(iin).style.display="none";
	}
}
function click_id(tid){
  var len = 0;
  len = document.getElementById("menubox").getElementsByTagName('li').length;
  for(i=0;i<len;i++){
	document.getElementById("menubox").getElementsByTagName('li')[i].className=''; 
	document.getElementById("menubox").getElementsByTagName('span')[i].className=''; 
  }
  document.getElementById("t"+tid).className='atli';
  document.getElementById("tt"+tid).className='atspan';
  show_id(tid);
}

function show_id2(num){
	for(var id = 4;id<=8;id++)
	{
		var iin="iin_2con"+id;
		if(id==num)
		document.getElementById(iin).style.display="block";
		else
		document.getElementById(iin).style.display="none";
	}
}
function click_id2(tid){
  var len = 0;
  len = document.getElementById("menubox2").getElementsByTagName('li').length;
  for(i=0;i<len;i++){
	document.getElementById("menubox2").getElementsByTagName('li')[i].className=''; 
	document.getElementById("menubox2").getElementsByTagName('span')[i].className=''; 
  }
  document.getElementById("t"+tid).className='atli';
  document.getElementById("tt"+tid).className='atspan';
  show_id2(tid);
}

function show_id3(num){
	for(var id = 9;id<=14;id++)
	{
		var iin="iin_3con"+id;
		if(id==num)
		document.getElementById(iin).style.display="block";
		else
		document.getElementById(iin).style.display="none";
	}
}
function click_id3(tid){
  var len = 0;
  len = document.getElementById("menubox3").getElementsByTagName('li').length;
  for(i=0;i<len;i++){
	document.getElementById("menubox3").getElementsByTagName('li')[i].className=''; 
	document.getElementById("menubox3").getElementsByTagName('span')[i].className=''; 
  }
  document.getElementById("t"+tid).className='atli';
  document.getElementById("tt"+tid).className='atspan';
  show_id3(tid);
}

function show_id4(num){
	for(var id = 40;id<=42;id++)
	{
		var iin="iin_4con"+id;
		if(id==num)
		document.getElementById(iin).style.display="block";
		else
		document.getElementById(iin).style.display="none";
	}
}
function click_id4(tid){
  var len = 0;
  len = document.getElementById("menubox4").getElementsByTagName('li').length;
  for(i=0;i<len;i++){
	document.getElementById("menubox4").getElementsByTagName('li')[i].className=''; 
	document.getElementById("menubox4").getElementsByTagName('span')[i].className=''; 
  }
  document.getElementById("t"+tid).className='atli4';
  document.getElementById("tt"+tid).className='atspan4';
  show_id4(tid);
}

  function AlertWindow(url)
  {
    var wth=window.screen.width; 
    var hth=window.screen.heigth;
    var lefth;
    var topth;
	  hth=300;
	  wth=600;
	  lefth =(window.screen.width-wth)/2;
	  topth=(window.screen.height-hth)/2;
    var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,fullscreen=no,scrollbars=no,resizable=no,left="+lefth+",top="+topth;
    oth = oth+",width="+wth+",height="+hth ;
    var newwin=window.open(url,"newwin",oth);
    newwin.focus();
}