﻿var xmlHttp
var LName
function DoEmail(EmailAddress)
{ 
 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 
var url="../FrontAjax/email.php?EmailAddress="+EmailAddress
//url=url+"?UserName="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)

}

 

function stateChanged() 
{ 
     if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
     { 
       // eval("document.getElementById('scmbcat').value=xmlHttp.responseText");
		document.getElementById('msg').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 insert(sscatid,scatid,chkpara)
{ 
 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 
 
var url="../Ajax/group.php?sscatid="+sscatid+"&scatid="+scatid+"&chkpara="+chkpara
//url=url+"?UserName="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged1 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)

}

 

function stateChanged1() 
{ 
     if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
     { 
       // eval("document.getElementById('scmbcat').value=xmlHttp.responseText");
		document.getElementById('msg').innerHTML = xmlHttp.responseText;
      } 
}


function displayimage(pictureid)
{ 
 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
 
 
var url="../FrontAjax/dspimg.php?pictureid="+pictureid;
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged2 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)

}

 

function stateChanged2() 
{ 
     if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
     { 
       // eval("document.getElementById('scmbcat').value=xmlHttp.responseText");
		document.getElementById('dspimage').innerHTML = xmlHttp.responseText;
      } 
}


function displaylargeimage(sscatid)
{ 
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		 alert ("Browser does not support HTTP Request")
		 return
	 } 
	var url="../FrontAjax/dsplargeimg.php?sscatid="+sscatid;
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged3 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function stateChanged3() 
{ 
     if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
     { 
		document.getElementById('dspimage').innerHTML = xmlHttp.responseText;
     } 
}