// JavaScript Document

function showlist(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("catlist").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("catlist").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/catlist.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
function showcitylist(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("citylist").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("citylist").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/states.php?ciid="+str

  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
function get_data(str,act)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("detaillist").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("detaillist").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/detaillist.php?cid="+str+"&act="+act
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
  
function increment_parent(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("listing").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("listing").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/incr_listing.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
  
function decrement_parent(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("listing").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("listing").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/decr_listing.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
  
  function get_category_detail(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("category_detail").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("category_detail").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/category_detaillist.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
function get_image_detail(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("image_detail").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("image_detail").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/image_detaillist.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
}


function get_portfolio_detail(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("image_detail").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("image_detail").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/portfolio_detaillist.php?pid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
}
function get_photo_portfolio_detail(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("image_detail").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("image_detail").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/photo_portfolio_detaillist.php?pid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
}


function get_news_detail(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("news_detail").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("news_detail").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/news_detaillist.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
  
function aesc_order1(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("listing").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("listing").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/aesc_listing.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
  function desc_order1(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("listing").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("listing").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/desc_listing.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  function get_user_detail(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("login_list").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("login_list").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/login_detaillist.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
function checkfile(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  
  
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("chkfilename").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("chkfilename").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	
	
	
	var url="middle/checkfile.php?fid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
function get_price_detail(str)
{
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("price_detail").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("price_detail").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/price_detaillist.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
function get_user_detail_pass(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("login_list").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("login_list").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/login_passlist.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
  
function get_lib_detail(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("library_detail").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("library_detail").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/library_detaillist.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
  
  function get_client_detail(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("client_detail").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("client_detail").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/client_detaillist.php?txtconfigureid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
  
  
function get_newsletter_detail(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("news_detail").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("news_detail").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/news_letter_detaillist.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
  
  function get_sub_detail(str)
{
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("subscribtion_detail").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("subscribtion_detail").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/subscription_detaillist.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  
   function get_image(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("image_detail").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("image_detail").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/img_list.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
}
function get_box_data(str,act)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("detaillist").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("detaillist").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/box_detaillist.php?cid="+str+"&act="+act
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
} 

function get_message_log(val)
{
	var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("login_list").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("login_list").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/messagelog_detaillist.php?cid="+val;
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);

	
	
}

function get_video(id,pid,title){
	
		var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("vid_detail").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
	//	 document.getElementById("ambdiv").innerHTML="<img src='admin/images/circleicon.gif' align='middle' > ";
	 }
	
    }
 var url= '<object width="620" height="307"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id='+id+'&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id='+id+'&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="620" height="307"></embed></object>';
	document.getElementById("ambdiv").innerHTML=url;	
	document.getElementById("vid_title").innerHTML=title;
	//alert(document.getElementById("ambdiv").innerHTML);
	//alert(document.getElementById("ambdiv").innerHTML);
	//alert('hi');
	url='middle/wed_port_detail.php?id='+pid;
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
	
}


	
function get_video_client(id){

		var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("ambdiv").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("ambdiv").innerHTML="<img src='admin/images/circleicon.gif' align='middle' > ";
	 }
    }
	var url= '<object width="510" height="299"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id='+id+'&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id='+id+'&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="510" height="299"></embed></object>';
	document.getElementById("ambdiv").innerHTML=url;

	
}
	
function get_mono_client(mid){

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("ambdiv").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("ambdiv").innerHTML="<img src='admin/images/circleicon.gif' align='middle' > ";
	 }
    }
	
	var url= '<div id="monoSlideshow">Hi</div>'+"\n"+'<script type="text/javascript"> '+"\n"+'var so = new SWFObject("monoslideshow.swf", "SOmonoSlideshow", "280", "260", "7", "#ffffff");'+"\n"+'so.addVariable("dataFile", "client_slideshow'+mid+'.xml");'+"\n"+'so.addVariable("showAlbumsButton", "false");'+"\n"+'so.write("monoSlideshow");'+"\n"+'</script>';
	document.getElementById("ambdiv").innerHTML=url;
	//alert(document.getElementById("ambdiv").innerHTML);

}
  function get_client_configure_detail(str)
{
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("login_list").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("login_list").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/client_configure_detaillist.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
  function get_client_configure_detail_pass(str)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.getElementById("login_list").innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 document.getElementById("login_list").innerHTML="<img src='images/circleicon.gif' align='middle' > ";
	 }
    }
	var url="middle/client_passlist.php?cid="+str
	
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
