﻿function debug(str){
    if(DEBUG){
        alert(str);
    }
}
function setStatus(str){
    window.status = str;
}
function hideElement(e){
    var element = null;
    if(typeof e == "string"){
        element = document.getElementById(e);
    }else{
        element = e;
    }
    
    if(element == null)
        throw "hideElement() : cannot find argument.";
        
    element.style.visibility = "hidden";
    element.style.display = "none";    
}
function showElement(e){
    var element = null;
    if(typeof e == "string"){
        element = document.getElementById(e);
    }else{
        element = e;
    }
    
    if(element == null)
        throw "showElement() : cannot find argument.";
        
    element.style.visibility = "visible";
    element.style.display = "";
}
function goBack(){
   window.history.back();
}
function tke(c,a,l,v){
    try{
        //alert("tke : " + c + " , " + a + " , " + l + " , " + v );return;
        pageTracker._trackEvent(c, a, l, v);
    }catch(err){}
}
function tke_url(c,a,v){
    tke(c,a,window.location.href,v);
}
