var xmlHttp




function showResult(str, str1)
{
if (str.length==0)
  { 
  document.getElementById("subcategoy").innerHTML=""
  return
  }
  
 //bima 1 
xmlHttp=GetXmlHttpObject()
//elegxos bimatos 1
if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request")
  return
  } 

//url to make ajax request
var url="showResult.php"
//orismata tis php
url=url+"?VT_ANS_ID="+str
url=url+"&VT_QS_ID="+str1
url=url+"&sid="+Math.random()
//orismata tis php


//bima 2
xmlHttp.open("GET",url,true)

//bima 3 otan epistrafei response
xmlHttp.onreadystatechange=function() {
	//elegxos
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
	 //ti alazei to function
document.getElementById("subcategoy").innerHTML=xmlHttp.responseText; 
 } 
};

//bima 4
xmlHttp.send(null)

} 




function showVote(str)
{
if (str.length==0)
  { 
  document.getElementById("showVote").innerHTML=""
  return
  }
  
 //bima 1 
xmlHttp=GetXmlHttpObject()
//elegxos bimatos 1
if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request")
  return
  } 

//url to make ajax request
var url="showVote.php"
//orismata tis php
url=url+"?VT_QS_ID="+str
//orismata tis php


//bima 2
xmlHttp.open("GET",url,true)

//bima 3 otan epistrafei response
xmlHttp.onreadystatechange=function() {
	//elegxos
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
	 //ti alazei to function
document.getElementById("showVote").innerHTML=xmlHttp.responseText; 
 } 
};

//bima 4
xmlHttp.send(null)

} 




function showVoteVoting(str)
{
if (str.length==0)
  { 
  document.getElementById("showVoteVoting").innerHTML=""
  return
  }
  
 //bima 1 
xmlHttp=GetXmlHttpObject()
//elegxos bimatos 1
if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request")
  return
  } 

//url to make ajax request
var url="showVoteVoting.php"
//orismata tis php
url=url+"?VT_QS_ID="+str
//orismata tis php


//bima 2
xmlHttp.open("GET",url,true)

//bima 3 otan epistrafei response
xmlHttp.onreadystatechange=function() {
	//elegxos
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
	 //ti alazei to function
document.getElementById("showVoteVoting").innerHTML=xmlHttp.responseText; 
 } 
};

//bima 4
xmlHttp.send(null)

}




function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 // Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}
