
function showBox(mesaj){  
    var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    
    var layer = document.createElement('div');
    layer.style.zIndex = 2;
    layer.id = 'layer';
    layer.style.position = 'fixed';//'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '.6';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=60)");
    document.body.appendChild(layer);  
    
    var div = document.createElement('div');
    div.style.zIndex = 3;
    div.id = 'box';
    div.style.position = (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) ? 'absolute' : 'fixed';
    div.style.top = '200px';
    div.style.left = (width / 2) - (400 / 2) + 'px';	
    div.style.height = '100px';
    div.style.width = '400px';
    div.style.backgroundColor = 'white';
    div.style.border = '2px solid silver';
    div.style.padding = '20px';
    div.style.fontFamily = 'Verdana';
    div.style.fontSize = '16px';
    div.style.fontWeight = 'bold';
    document.body.appendChild(div);  
    
    var p = document.createElement('p');
    p.innerHTML = "<b>" + mesaj + "</b>"; /*'<a href="as.comn" alt="asd">Gor</a>';  '<h1 style="color:red;">Digiturkwebtv.com</h1>';*/
    div.appendChild(p);
    
    var a = document.createElement('a');
    a.innerHTML = 'Pencereyi Kapat';
    a.href = 'javascript:void(0)';
    a.onclick = function() 
    {
      document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box'));
    };
    
    var getImg = document.createElement('img');
    getImg.src = 'images/close.jpg';
    getImg.setAttribute('alt','Kapat');
    getImg.onclick = function(){
    var url = window.location.href;
    if(url.indexOf('http://www.digiturkwebtv.com/MemberConfirmation.aspx') > -1 || url.indexOf('http://www.digiturkwebtv.com/CreateNewMember.aspx') > -1)
    {
    document.body.removeChild(document.getElementById('layer'));
    document.body.removeChild(document.getElementById('box'));
    window.location.href = 'http://www.digiturkwebtv.com/Login.aspx';
    }
    else
    {
     document.body.removeChild(document.getElementById('layer'));
     document.body.removeChild(document.getElementById('box'));
    }
    }
    div.appendChild(getImg);
  }
function redirectMainPage(){


}