function rssNews()
{
    xmlDoc=loadXMLDoc("rss.xml");

    var x=xmlDoc.getElementsByTagName("item");
    //for (i=0;i<=3;i++)
    for (i=0;i<x.length;i++)
    { 
        document.write("<a href='");
        document.write(x[i].getElementsByTagName("link")[0].childNodes[0].nodeValue);
        document.write("'>");
//        document.write("' target='_blank'>");
        document.write(x[i].getElementsByTagName("title")[0].childNodes[0].nodeValue);
//        document.write("</a>");
            document.write("</a> &raquo;<br>");
            document.write(x[i].getElementsByTagName("description")[0].childNodes[0].nodeValue);
        document.write("<br/><br/>");
    }
}

function rssNewsHm()
{
    xmlDoc=loadXMLDoc("rss.xml");

    var x=xmlDoc.getElementsByTagName("item");
    for (i=0;i<=2;i++)
    //for (i=0;i<x.length;i++)
    { 
        document.write("<a href='");
        document.write(x[i].getElementsByTagName("link")[0].childNodes[0].nodeValue);
        document.write("'>");
//        document.write("' target='_blank'>");
        document.write(x[i].getElementsByTagName("title")[0].childNodes[0].nodeValue);
        document.write("</a> &raquo;");
//            document.write("</a> &raquo;<br>");
//            document.write(x[i].getElementsByTagName("description")[0].childNodes[0].nodeValue);
        document.write("<br/><br/>");
    }
}


//Degrees START
function magstim200()
{
    xml=loadXMLDoc("magstimProducts.xml");
    xsl=loadXMLDoc("magstim200.xsl");
    // code for IE
    if (window.ActiveXObject)
      {
      magstim200=xml.transformNode(xsl);
      //document.getElementById("example").innerHTML=ex;
      document.write(magstim200);
      }
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
      {
      xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet(xsl);
      resultDocument = xsltProcessor.transformToFragment(xml,document);
      document.getElementById("magstim200").appendChild(resultDocument);
      }
}

function magstim2002()
{
    xml=loadXMLDoc("magstimProducts.xml");
    xsl=loadXMLDoc("magstim2002.xsl");
    // code for IE
    if (window.ActiveXObject)
      {
      magstim2002=xml.transformNode(xsl);
      //document.getElementById("example").innerHTML=ex;
      document.write(magstim2002);
      }
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
      {
      xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet(xsl);
      resultDocument = xsltProcessor.transformToFragment(xml,document);
      document.getElementById("magstim2002").appendChild(resultDocument);
      }
}

function magstim2002comp()
{
    xml=loadXMLDoc("magstimProducts.xml");
    xsl=loadXMLDoc("magstim2002comp.xsl");
    // code for IE
    if (window.ActiveXObject)
      {
      magstim2002comp=xml.transformNode(xsl);
      //document.getElementById("example").innerHTML=ex;
      document.write(magstim2002comp);
      }
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
      {
      xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet(xsl);
      resultDocument = xsltProcessor.transformToFragment(xml,document);
      document.getElementById("magstim2002comp").appendChild(resultDocument);
      }
}

function bistim2()
{
    xml=loadXMLDoc("magstimProducts.xml");
    xsl=loadXMLDoc("bistim2.xsl");
    // code for IE
    if (window.ActiveXObject)
      {
      bistim2=xml.transformNode(xsl);
      //document.getElementById("example").innerHTML=ex;
      document.write(bistim2);
      }
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
      {
      xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet(xsl);
      resultDocument = xsltProcessor.transformToFragment(xml,document);
      document.getElementById("bistim2").appendChild(resultDocument);
      }
}

function bistim2comp()
{
    xml=loadXMLDoc("magstimProducts.xml");
    xsl=loadXMLDoc("bistim2comp.xsl");
    // code for IE
    if (window.ActiveXObject)
      {
      bistim2comp=xml.transformNode(xsl);
      //document.getElementById("example").innerHTML=ex;
      document.write(bistim2comp);
      }
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
      {
      xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet(xsl);
      resultDocument = xsltProcessor.transformToFragment(xml,document);
      document.getElementById("bistim2comp").appendChild(resultDocument);
      }
}

function bistim()
{
    xml=loadXMLDoc("magstimProducts.xml");
    xsl=loadXMLDoc("bistim.xsl");
    // code for IE
    if (window.ActiveXObject)
      {
      bistim=xml.transformNode(xsl);
      //document.getElementById("example").innerHTML=ex;
      document.write(bistim);
      }
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
      {
      xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet(xsl);
      resultDocument = xsltProcessor.transformToFragment(xml,document);
      document.getElementById("bistim").appendChild(resultDocument);
      }
}

function rapid()
{
    xml=loadXMLDoc("magstimProducts.xml");
    xsl=loadXMLDoc("rapid.xsl");
    // code for IE
    if (window.ActiveXObject)
      {
      rapid=xml.transformNode(xsl);
      //document.getElementById("example").innerHTML=ex;
      document.write(rapid);
      }
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
      {
      xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet(xsl);
      resultDocument = xsltProcessor.transformToFragment(xml,document);
      document.getElementById("rapid").appendChild(resultDocument);
      }
}

function rapidSuper()
{
    xml=loadXMLDoc("magstimProducts.xml");
    xsl=loadXMLDoc("rapid_super.xsl");
    // code for IE
    if (window.ActiveXObject)
      {
      rapidSuper=xml.transformNode(xsl);
      //document.getElementById("example").innerHTML=ex;
      document.write(rapidSuper);
      }
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
      {
      xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet(xsl);
      resultDocument = xsltProcessor.transformToFragment(xml,document);
      document.getElementById("rapidSuper").appendChild(resultDocument);
      }
}

function rapid2()
{
    xml=loadXMLDoc("magstimProducts.xml");
    xsl=loadXMLDoc("rapid2.xsl");
    // code for IE
    if (window.ActiveXObject)
      {
      rapid2=xml.transformNode(xsl);
      //document.getElementById("example").innerHTML=ex;
      document.write(rapid2);
      }
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
      {
      xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet(xsl);
      resultDocument = xsltProcessor.transformToFragment(xml,document);
      document.getElementById("rapid2").appendChild(resultDocument);
      }
}

function rapid2comp()
{
    xml=loadXMLDoc("magstimProducts.xml");
    xsl=loadXMLDoc("rapid2comp.xsl");
    // code for IE
    if (window.ActiveXObject)
      {
      rapid2comp=xml.transformNode(xsl);
      //document.getElementById("example").innerHTML=ex;
      document.write(rapid2comp);
      }
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
      {
      xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet(xsl);
      resultDocument = xsltProcessor.transformToFragment(xml,document);
      document.getElementById("rapid2comp").appendChild(resultDocument);
      }
}

function rapidSuper2()
{
    xml=loadXMLDoc("magstimProducts.xml");
    xsl=loadXMLDoc("rapid_super2.xsl");
    // code for IE
    if (window.ActiveXObject)
      {
      rapidSuper2=xml.transformNode(xsl);
      //document.getElementById("example").innerHTML=ex;
      document.write(rapidSuper2);
      }
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
      {
      xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet(xsl);
      resultDocument = xsltProcessor.transformToFragment(xml,document);
      document.getElementById("rapidSuper2").appendChild(resultDocument);
      }
}

function rapidSuper2comp()
{
    xml=loadXMLDoc("magstimProducts.xml");
    xsl=loadXMLDoc("rapid_super2comp.xsl");
    // code for IE
    if (window.ActiveXObject)
      {
      rapidSuper2comp=xml.transformNode(xsl);
      //document.getElementById("example").innerHTML=ex;
      document.write(rapidSuper2comp);
      }
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
      {
      xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet(xsl);
      resultDocument = xsltProcessor.transformToFragment(xml,document);
      document.getElementById("rapidSuper2comp").appendChild(resultDocument);
      }
}


function rapidSuper2Plus1()
{
    xml=loadXMLDoc("magstimProducts.xml");
    xsl=loadXMLDoc("rapid_super2plus1.xsl");
    // code for IE
    if (window.ActiveXObject)
      {
      rapidSuper2Plus1=xml.transformNode(xsl);
      //document.getElementById("example").innerHTML=ex;
      document.write(rapidSuper2Plus1);
      }
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
      {
      xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet(xsl);
      resultDocument = xsltProcessor.transformToFragment(xml,document);
      document.getElementById("rapidSuper2Plus1").appendChild(resultDocument);
      }
}

function rapidSuper2Plus1comp()
{
    xml=loadXMLDoc("magstimProducts.xml");
    xsl=loadXMLDoc("rapid_super2plus1comp.xsl");
    // code for IE
    if (window.ActiveXObject)
      {
      rapidSuper2Plus1comp=xml.transformNode(xsl);
      //document.getElementById("example").innerHTML=ex;
      document.write(rapidSuper2Plus1comp);
      }
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
      {
      xsltProcessor=new XSLTProcessor();
      xsltProcessor.importStylesheet(xsl);
      resultDocument = xsltProcessor.transformToFragment(xml,document);
      document.getElementById("rapidSuper2Plus1comp").appendChild(resultDocument);
      }
}



