function newact(){ 
  var xmlhttp=false;  
  try { 
    xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); 
  } catch (e) { 
    try { 
      xmlhttp = new 
      ActiveXObject('Microsoft.XMLHTTP'); 
    } catch (E) { 
      xmlhttp = false; 
    } 
  } 
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') { 
    xmlhttp = new XMLHttpRequest();  
  } 
  ala=Math.random();
  var url = 'Scripts/act_2.php?rand='+ala;  
  xmlhttp.open('GET', url, true);  
  xmlhttp.onreadystatechange=function() {  
    if (xmlhttp.readyState==4) {  
      var content = xmlhttp.responseText; 
      if( content ){ 
        switch(content){  
         default :
		 document.getElementById('a2').style.display = 'none';
		 document.getElementById('a2').innerHTML = content;
		 fade('a2');
		 document.getElementById('a2').style.display = '';
		 break; 
        } 
      } 
    } 
  } 
  xmlhttp.send(null) 
  return; 
} 

function show_color(id){ 
 document.getElementById('colord').innerHTML = '<img src="/images/zv-loader.gif" border="0" vspace="10" hspace="10">'; 
 show_color_line(id);
  var xmlhttp=false; 
  try { 
    xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');  
  } catch (e) { 
    try { 
      xmlhttp = new 
      ActiveXObject('Microsoft.XMLHTTP'); 
    } catch (E) { 
      xmlhttp = false; 
    } 
  } 
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') { 
    xmlhttp = new XMLHttpRequest(); 
  } 
  ala=Math.random();
  var url = '../../Scripts/show_color.php?id='+id+'&rand='+ala;  
  xmlhttp.open('GET', url, true); 
  xmlhttp.onreadystatechange=function() {  
    if (xmlhttp.readyState==4) {  
      var content = xmlhttp.responseText;  
      if( content ){ 
		 document.getElementById('colord').innerHTML = content;
      } 
    } 
  } 
  xmlhttp.send(null) // Зануляване на XMLHttpRequest 
  return; 
} 

function show_color_line(id){ 
 document.getElementById('zv_lenta').innerHTML = '<img src="/images/zv-loader.gif" border="0" >'; 
  var xmlhttp=false; 
  try { 
    xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');  
  } catch (e) { 
    try { 
      xmlhttp = new 
      ActiveXObject('Microsoft.XMLHTTP'); 
    } catch (E) { 
      xmlhttp = false; 
    } 
  } 
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') { 
    xmlhttp = new XMLHttpRequest(); 
  } 
  ala=Math.random();
  var url = '../../Scripts/show_color_lenta.php?id='+id+'&rand='+ala;  
  xmlhttp.open('GET', url, true); 
  xmlhttp.onreadystatechange=function() {  
    if (xmlhttp.readyState==4) {  
      var content = xmlhttp.responseText;  
      if( content ){ 
		 document.getElementById('zv_lenta').innerHTML = content;
      } 
    } 
  } 
  xmlhttp.send(null) // Зануляване на XMLHttpRequest 
  return; 
} 


function winEdgeFunc(id){ 
  var xmlhttp=false; 
  try { 
    xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');  
  } catch (e) { 
    try { 
      xmlhttp = new 
      ActiveXObject('Microsoft.XMLHTTP'); 
    } catch (E) { 
      xmlhttp = false; 
    } 
  } 
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') { 
    xmlhttp = new XMLHttpRequest(); 
  } 
  ala=Math.random();
  var url = '../../Scripts/show_dk_info.php?id='+id+'&rand='+ala;  
  xmlhttp.open('GET', url, true); 
  xmlhttp.onreadystatechange=function() {  
    if (xmlhttp.readyState==4) {  
      var content = xmlhttp.responseText;  
      if( content ){ 
		 document.getElementById('dk_info').innerHTML = content;
      } 
    } 
  } 
  xmlhttp.send(null) 
  return; 
} 

