 
var xmlhttp;



function Bodypanel(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  
 document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';  		
  
var url="bodypanel.php";
url=url+"?pln_id="+str;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=showfile;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}



function BidDomain(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  
 document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';  		
  
var url="productbidding.php";
url=url+"?pln_id="+str;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=showfile;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

function BidDetail(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  
 document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';  		
  
var url="productdetail.php";
url=url+"?domain_id="+str;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=showproducts;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}


function BidDetailSuccess(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  
 document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';  		
  
var url="productdetail.php";
url=url+"?sucpro_id="+str+'&domain_id=' +str;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=showproducts;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

function Template(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  
 document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';  		
  
var url="detailportfolio.php";
url=url+"?temp_id="+str;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=showfile;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}


function Domainsreg(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  
  document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">'; 		
  
var url="domainpackages.php";
url=url+"?pln_id="+str;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=showfile;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}


function support(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  
  document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">'; 		
  
var url="support.php";
url=url+"?pln_id="+str;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=showfile;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}


function feed(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  
  document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">'; 		
  
var url="feedback.php";
url=url+"?pln_id="+str;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=showfile;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}




function detailpackage(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  
  document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">'; 		
  
var url="detailpackage.php";
url=url+"?pln_id="+str;

url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=showfile;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

function faqs(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  
  document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">'; 		
  
var url="faqs.php";
url=url+"?webbtn="+str;

url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=showfile;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

function contentspages(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  
 document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';  		
  
var url="contentpages.php";
url=url+"?webbtn="+str;
//alert(url);
//url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=showfile;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

function ContactUs(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  
 document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';  		
  
var url="contactus.php";
url=url+"?pln_id="+str;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=showfile;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}


function portfolio(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  
  document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">'; 		
  
var url="portfolio.php";
url=url+"?start="+str;
//alert(url);
//url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=showfile;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}


function Online(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';
   		
  
var url="enquiry.php";
url=url+"?webbtn="+str;
//alert(url);
//url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=showfile;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

function hid()
{
document.getElementById("subpanel").innerHTML='';
}

function showfile()
{
if (xmlhttp.readyState==4)
{


document.getElementById("boydpanel").innerHTML=xmlhttp.responseText;
setTimeout("hid()", 1000);

}
}



function CheckDomain(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
 document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">'; 
 var frmwebb=document.frmsearchposition;
 	 	var webname= frmwebb.domains.value;  		
  
var url="checkdomain.php";
url=url+"?domains="+webname;
//alert(url);
//url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=showdomain;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}


function showdomain()
{
if (xmlhttp.readyState==4)
{


document.getElementById("domainpanel").innerHTML=xmlhttp.responseText;
setTimeout("hid()", 1000);
}
}


function CheckSubs(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
 document.getElementById("subpanel2").innerHTML='<img src="images/please-wait.gif">'; 
 var frmwebb=document.frmsubemail;
 	 	var emailsub= frmwebb.subemail.value;  		
  
var url="subscribeemail.php";
url=url+"?subemail="+emailsub;
//alert(url);
//url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=showsubscribe;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}


function showsubscribe()
{
if (xmlhttp.readyState==4)
{


document.getElementById("subpanel2").innerHTML=xmlhttp.responseText;
setTimeout("hid()", 1000);
}
}


function SendRequest(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';
 var frmwebb=document.contacts;
 	 	var textname= frmwebb.textname.value;  
		var txtEmail= frmwebb.txtEmail.value;  
		var txtSubject= frmwebb.txtSubject.value;  
		var txt_content= frmwebb.txt_content.value;  
		var security_code= frmwebb.security_code.value;  
  
var url="sendrequest.php";
url=url+"?textname="+textname+'&txtEmail=' +txtEmail+'&txtSubject=' +txtSubject+'&txt_content=' +txt_content+'&security_code=' +security_code;

//alert(url);
//url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=showscurtyerror;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}


function SendCommetns(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';
 var frmwebb=document.feeds;
 	 	var textname= frmwebb.textname.value;  
		var txtEmail= frmwebb.txtEmail.value;  
		var txtSubject= frmwebb.txtSubject.value;  
		var txt_content= frmwebb.txt_content.value;  
		var security_code= frmwebb.security_code.value;  
  
var url="sendcomments.php";
url=url+"?textname="+textname+'&txtEmail=' +txtEmail+'&txtSubject=' +txtSubject+'&txt_content=' +txt_content+'&security_code=' +security_code;

//alert(url);
//url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=showscurtyerror;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);




}



function OnlineEnquiry(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';  
 var frmwebb=document.Enquiry;
 	 	var textname= frmwebb.textname.value;  
		var txtEmail= frmwebb.txtEmail.value;  
		var txtSubject= frmwebb.txtSubject.value;  
		var txt_content= frmwebb.txt_content.value;  
		var txtcomname= frmwebb.txtcomname.value;  
		var txttypebus= frmwebb.txttypebus.value;  
		var txtRef= frmwebb.txtRef.value; 
		var security_code= frmwebb.security_code.value;  
  
var url="sendquery.php";
url=url+"?textname="+textname+'&txtEmail=' +txtEmail+'&txtSubject=' +txtSubject+'&txt_content=' +txt_content+'&security_code=' +security_code+'&txtcomname=' +txtcomname+'&txttypebus=' +txttypebus+'&txtRef=' +txtRef;

//alert(url);
//url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=showscurtyerror;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}


function showscurtyerror()
{
if (xmlhttp.readyState==4)
{


document.getElementById("caperr").innerHTML=xmlhttp.responseText;
setTimeout("hid()", 1000);
}
}


function ProductsCat(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';
   		
  
var url="categoryproduct.php";
url=url+"?cat_id="+str;
//alert(url);
//url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=showproducts;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

function showproducts()
{
if (xmlhttp.readyState==4)
{


document.getElementById("catpro").innerHTML=xmlhttp.responseText;
setTimeout("hid()", 1000);
}
}

function ShowBidForm(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';
   		
  
var url="bidform.php";
url=url+"?cat_id="+str;
//alert(url);
//url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=showbidform;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}


function ShowBuyForm(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';
   		
  
var url="buyproductform.php";
url=url+"?cat_id="+str;
//alert(url);
//url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=showbidform;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}


function showbidform()
{
if (xmlhttp.readyState==4)
{


document.getElementById("bidfrm").innerHTML=xmlhttp.responseText;
setTimeout("hid()", 1000);
}
}


function SaveBidInformation(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';
 var frmwebb=document.bidform;
 	 	var textname= frmwebb.textname.value;  
		var txtEmail= frmwebb.txtEmail.value;  
		var txtPhone= frmwebb.txtPhone.value;  
		var txt_Location= frmwebb.txt_Location.value;  
		//var security_code= frmwebb.security_code.value;  
		var txt_bidprice= frmwebb.bidpro.value;  
		
  
var url="savebidinfo.php";
url=url+"?textname="+textname+'&txtEmail=' +txtEmail+'&txtPhone=' +txtPhone+'&txt_Location=' +txt_Location+'&pro_id=' +str+'&pro_bidprice=' +txt_bidprice;

//alert(url);
//url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=subbidform;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}


function SaveBuyNowInformation(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
  document.getElementById("subpanel").innerHTML='<img src="images/please-wait.gif">';
 var frmwebb=document.bidform;
 	 	var textname= frmwebb.textname.value;  
		var txtEmail= frmwebb.txtEmail.value;  
		var txtPhone= frmwebb.txtPhone.value;  
		var txt_Location= frmwebb.txt_Location.value;  
	//	var security_code= frmwebb.security_code.value;  
		var txt_bidprice= frmwebb.buynow.value;  
		
  
var url="savebuynowinfo.php";
url=url+"?textname="+textname+'&txtEmail=' +txtEmail+'&txtPhone=' +txtPhone+'&txt_Location=' +txt_Location+'&pro_id=' +str+'&pro_bidprice=' +txt_bidprice;

//alert(url);
//url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=subbidform;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}




function subbidform()
{
if (xmlhttp.readyState==4)
{


document.getElementById("bidfrmmsg").innerHTML=xmlhttp.responseText;
setTimeout("hid()", 1000);
}
}

function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  // code for IE6, IE5
  return new ActiveXObject("Microsoft.XMLHTTP");
  }
return null;
}





