function showcontent(str)
{

xmlhttp = false;

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  if (xmlhttp.overrideMimeType) {
	xmlhttp.overrideMimeType('text/xml');
	}
  }
else if (window.ActiveXObject)
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("maincontent").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET", "webcontent.php?sid="+str, true);
xmlhttp.send(null);
}

function showmrifaq(faq)
{
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	for (i=1;i<=30;i++) {
	if (faq == i) {
    document.getElementById("faq"+i).innerHTML=xmlhttp.responseText;
    }
	if (faq == i+"r") {
    document.getElementById("faq"+i).innerHTML=xmlhttp.responseText;
    }
	}
	}
  }
xmlhttp.open("GET", "mri_faq.php?qid="+faq, true);
xmlhttp.send();
}

function showctfaq(faq)
{

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	for (i=1;i<=15;i++) {
	if (faq == i) {
    document.getElementById("faq"+i).innerHTML=xmlhttp.responseText;
    }
	if (faq == i+"r") {
    document.getElementById("faq"+i).innerHTML=xmlhttp.responseText;
    }
	}
	}
  }
xmlhttp.open("GET", "ct_faq.php?qid="+faq, true);
xmlhttp.send();
}

function showpetfaq(faq)
{

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	for (i=1;i<=15;i++) {
	if (faq == i) {
    document.getElementById("faq"+i).innerHTML=xmlhttp.responseText;
    }
	if (faq == i+"r") {
    document.getElementById("faq"+i).innerHTML=xmlhttp.responseText;
    }
	}
	}
  }
xmlhttp.open("GET", "pet_faq.php?qid="+faq, true);
xmlhttp.send();
}

function shownmfaq(faq)
{

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	for (i=1;i<=15;i++) {
	if (faq == i) {
    document.getElementById("faq"+i).innerHTML=xmlhttp.responseText;
    }
	if (faq == i+"r") {
    document.getElementById("faq"+i).innerHTML=xmlhttp.responseText;
    }
	}
	}
  }
xmlhttp.open("GET", "nm_faq.php?qid="+faq, true);
xmlhttp.send();
}
