var xmlHttp
function submitForm(str,page,divcon)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
//var url="http://translation.2bscene.net/fileadmin/includes/" + page +".php";
//var url="http://www.d1190718.cp.blacknight.com/fileadmin/includes/" + page +".php";
var url="http://www.translation.ie/fileadmin/includes/" + page +".php";
url=url+"?sid="+Math.random();
url=url+"&"+str;
if (divcon=="thisForm") {
	xmlHttp.onreadystatechange=stateChanged 
} else if (divcon=="thisForm2") {
	xmlHttp.onreadystatechange=stateChanged2
} else {
	xmlHttp.onreadystatechange=stateChanged 
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged() 
{ 
//alert("'"+divcon+"' == 'thisForm'");
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("thisForm").innerHTML=xmlHttp.responseText 
 } 
}

function stateChanged2() 
{ 
//alert("'"+divcon+"' == 'thisForm'");
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("thisForm2").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;
}

function showthisdiv(div)
{
var thisdiv = document.getElementById(div);
thisdiv.style.display='';
}

function hidethisdiv(div)
{
var thisdiv = document.getElementById(div);
thisdiv.style.display='none';
}
