function Shop800psb(jumpto) {
  location.href= jumpto;
  return false;
}


function Shop800AjaX(csvAid)
{
 object='csvA'+csvAid;
 AJaXEcho=object;
 url='http://www.shop800.de/AjaX.php?csvAid='+csvAid;

 div = document.getElementById(AJaXEcho);
 div.innerHTML = 'speichern';
 div.style.color ='red';
 Shop800AjaXDo(csvAid);
}


function Shop800AjaXDo(csvAid)
{
 object='csvA'+csvAid;
 AJaXEcho=object;
 url='http://www.shop800.de/AjaX.php?csvAid='+csvAid;
  
      //erstellen des requests
      var req = null;

    try{
        req = new XMLHttpRequest();
    }
    catch (ms){
        try{
            req = new ActiveXObject("Msxml2.XMLHTTP");
        } 
        catch (nonms){
            try{
                req = new ActiveXObject("Microsoft.XMLHTTP");
            } 
            catch (failed){
                req = null;
            }
        }  
    }

    if (req == null)
          alert("Error creating request object!");
      
//pushContent('readMeta','öffnen: '+ decodeURI(url) );
      //anfrage erstellen (GET, url ist localhost,
      //request ist asynchron      
      //req.open("GET", 'http://linuxwin.de/wallpaper/linux/', true);
      req.open("GET", url, true);
//pushContent('readMeta','öffnen: geöffnet');

    //Beim abschliessen des request wird diese Funktion ausgeführt
    req.onreadystatechange = function(){            
        switch(req.readyState) {
                case 4:
                if(req.status!=200) {
                    alert("Fehler:"+req.status); 
                }else{    
                    //alert(req.responseText);
                    //schreibe die antwort in den div container mit der id content 

                    //pushContent(AJaXEcho,req.responseText);
                    div = document.getElementById(AJaXEcho);
                    div.innerHTML = req.responseText;
                    div.style.color ='yellow';
                    //AJaXEcho=req.responseText;
                }
                break;
        
                default:
                    return false;
                break;     
            }
        };

      req.setRequestHeader("Content-Type",
                          "application/x-www-form-urlencoded");
    req.send(null);
    return false;
}



















































function clearText(thefield)
{
  if (thefield.defaultValue==thefield.value)
  thefield.value = ""
}
function bb(text)
{
    var a; 
    a = document.AutoringTool.ATX.value; 
    document.AutoringTool.ATX.value= a + text;
    document.AutoringTool.ATX.focus();
}
function bb_link()
{
    var a, url, site; 
    a    = document.AutoringTool.ATX.value; 
    url  = prompt("Adresse für den Link:", "http://");
    site = prompt("Name für den Link:", "");
    document.AutoringTool.ATX.value= a + '<a href="' + url + '">' + site + '</a>';
    document.AutoringTool.ATX.focus();
}
function bb_img()
{
    var a, url, site; 
    a    = document.AutoringTool.ATX.value; 
    url  = prompt("Adresse von dem Bild:", "http://");
    document.AutoringTool.ATX.value= a + '<img src="' + url + '">';
    document.AutoringTool.ATX.focus();
}
function bbcode_link()
{
    var a, url, site; 
    a    = document.AutoringTool.ATX.value; 
    url  = prompt("Adresse für den Link:", "http://");
    site = prompt("Name für den Link:", "");
    if ( site )
      document.AutoringTool.ATX.value= a + "\n" + '[url=' + url + ']' + site + '[/url]';
    else
      document.AutoringTool.ATX.value= a + "\n" + '[url]' + url + '[/url]';
    document.AutoringTool.ATX.focus();
}
function bbcode_img()
{
    var a, url, site; 
    a    = document.AutoringTool.ATX.value; 
    url  = prompt("Adresse von dem Bild:", "http://");
    document.AutoringTool.ATX.value= a + "\n" + '[img]' + url + '[/img]';
    document.AutoringTool.ATX.focus();
}
