﻿debugger;
var xmlDoc;
var	ICO="<IMG SRC='images/newico.gif' />";

function getHTTP(file)
{
try //Internet Explorer
{
 xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
 xmlDoc.async=false;
 xmlDoc.load(file);
}
catch(e)
{
 try //Firefox, Mozilla, Opera, etc.
 {
  xmlDoc=document.implementation.createDocument("","",null);
  xmlDoc.async=false;
  xmlDoc.load(file);
 }
 catch(e)
 {
  try //Google Chrome
  {
   var xmlhttp = new XMLHttpRequest();
   xmlhttp.open("GET",file,false);
   xmlhttp.send(null);
   xmlDoc = xmlhttp.responseXML.documentElement;
  }
  catch(e)
  {
   error=e.message;
  }
 }
}

}

function loadPG(div1)
{
var s ;
getHTTP("news.xml");
s =  "<a href='News.aspx' class=xx><marquee direction='up' scrollamount='1' scrolldelay='10' style='FONT-SIZE: 8pt; COLOR: red; "
            s +=  "FONT-FAMILY: arial; TEXT-ALIGN: left;  height: 175px;' onmouseover='this.stop()'          onmouseout='this.start()' "
            s +=  "behavior='scroll'>"
                  
   
   
   
var i;
for (i =0 ;i<xmlDoc.getElementsByTagName("detail").length;i++)
    {
    if (xmlDoc.getElementsByTagName("title")[i].childNodes[0].nodeValue.charAt(0)=="*")
        {s += ICO;}
    s += xmlDoc.getElementsByTagName("title")[i].childNodes[0].nodeValue + "<br/><hr height=1/>" ;
    }
s +=  "     </marquee><br/><div align=right>More-></a></div></a>"
div1.innerHTML=s;           
       

}


function getxml(div1)
{

var error = "";
getHTTP("news.xml");


var s ="<br/> <table border=0 cellpadding='0' cellspacing='0' style='width: 670px;padding-left: 20px;'><tr style='font-size: 10pt; color: red; font-family: Times New Roman'><td align='left' style='width: 70px'><b><u>Date</u></b></td><td align='left' style='width: 600px'><b><u>Description</u></b></td></tr>";
var i;

for (i =0 ;i<xmlDoc.getElementsByTagName("detail").length;i++)
{


s +="<tr style='font-size: 10pt; color: red; font-family: Times New Roman'><td >" + xmlDoc.getElementsByTagName("date")[i].childNodes[0].nodeValue + "</td><td>" ;

  if (xmlDoc.getElementsByTagName("title")[i].childNodes[0].nodeValue.charAt(0)=="*")
        {s += ICO;}
        
        
s += xmlDoc.getElementsByTagName("title")[i].childNodes[0].nodeValue + "</td></tr><tr class='hh'><td colspan='2' align=justify><p>" ;
s += xmlDoc.getElementsByTagName("descr")[i].childNodes[0].nodeValue + "</P></td></tr>" ;
}
s +="</table>";

div1.innerHTML =s;
}











                    
                            
                          
                            
             









