var xmlHttp


function maakprodaccvooralleprodingroep(artID){
if(confirm("zker weten?")){
  xmlHttp=GetXmlHttpObject()
  if (xmlHttp==null)
   {
   alert ("Browser does not support HTTP Request")
   return
   }
  var url="pages/meerinfotabs.php"
  url=url+"?actie=maakprodaccvooralleprodingroep"
  url=url+"&artID="+artID
  xmlHttp.onreadystatechange=stateChangedMI 
  xmlHttp.open("GET",url,true)
  xmlHttp.send(null)
}
}

function removeacc(accID, artID){
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="pages/meerinfotabs.php"
url=url+"?actie=removeacc"
url=url+"&artID="+artID
url=url+"&accID="+accID
xmlHttp.onreadystatechange=stateChangedMI 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)

}

function showtab(tab, artID, cmtgeb)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="pages/meerinfotabs.php"
url=url+"?actie="+tab
url=url+"&artID="+artID
url=url+"&cmtgeb="+cmtgeb
xmlHttp.onreadystatechange=stateChangedMI 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function accvankeyw(keyw, artID){
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="pages/meerinfotabs.php"
url=url+"?actie=zoekopkeyword"
url=url+"&keyw="+keyw
url=url+"&artID="+artID
xmlHttp.onreadystatechange=stateChangedMI 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function accvangroep(keyw, artID){
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="pages/meerinfotabs.php"
url=url+"?actie=zoekopgroepkeyword"
url=url+"&keyw="+keyw
url=url+"&artID="+artID
xmlHttp.onreadystatechange=stateChangedMI 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function addAccessoire(artID, accID){
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="pages/meerinfotabs.php"
url=url+"?actie=addacc"
url=url+"&artID="+artID
url=url+"&accID="+accID
xmlHttp.onreadystatechange=stateChangedMI 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}


function addAccessoireAancompleteGroep(artID, groepid){
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="pages/meerinfotabs.php"
url=url+"?actie=addAccessoireAancompleteGroep"
url=url+"&artID="+artID
url=url+"&groepid="+groepid
xmlHttp.onreadystatechange=stateChangedMI 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}








function stateChangedMI() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("inhoud1").innerHTML=xmlHttp.responseText 
 } 
}

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;
}
