//------------------------------------------------------------------------------
// Div ¸ðµÎ Ãà¼Ò,Æîħ
//------------------------------------------------------------------------------
function AllDisplay()
{
var obj = document.all;
if(document.all.displayMode.value == "N") { // ¸ðµÎÃà¼Ò
for(var i = 0; i < obj.tags('div').length; i++){
if(document.getElementById('div'+(i+1)) != null) {
document.getElementById('div'+(i+1)).style.display = "none";
document.getElementById('tree'+(i+1)).src = "image/plus.bmp";
document.all.displayMode.value = "Y";
document.getElementById('div_all').innerHTML =
"
¸ðµÎÈ®´ë";
}
}
} else { // ¸ðµÎÆîħ
for(var i = 0; i < obj.tags('div').length; i++){
if(document.getElementById('div'+(i+1)) != null) {
document.getElementById('div'+(i+1)).style.display = "block";
document.getElementById('tree'+(i+1)).src = "image/mina.bmp";
document.all.displayMode.value = "N";
document.getElementById('div_all').innerHTML =
"
¸ðµÎÃà¼Ò";
}
}
}
}
//------------------------------------------------------------------------------
// Ãà¼Ò/Æîħ
//------------------------------------------------------------------------------
function styleDisplay(type)
{
var obj = document.getElementById("div"+type);
var treeObj = document.getElementById("tree"+type);
if(obj) {
if(obj.style.display == "") {
obj.style.display = "none";
treeObj.src = "image/plus.bmp";
} else {
obj.style.display = "";
treeObj.src = "image/mina.bmp";
}
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// ClipBoard¿¡ ÀúÀå
//------------------------------------------------------------------------------
function SaveToClipBoard(name)
{
var obj = document.getElementById(name);
if(obj) {
window.clipboardData.setData('Text', obj.innerText);
alert("Ŭ¸³º¸µå¿¡ ÀúÀåµÇ¾ú½À´Ï´Ù.");
}
}
//------------------------------------------------------------------------------
function GoMain()
{
var host = location.host;
var hostname = "http://" + host + "/tutorial/index_s.html"
if(hostname == parent.parent.location.href) {
parent.parent.parent.location.href = "http://www.smartmap.co.kr/newmap/tutorial.html";
} else {
parent.parent.location.href = "http://www.talmap.co.kr/tutorial/";
}
}