// JavaScript Document
var xmlHttp

function showUs(str)

{ 

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }

var url="getform.php"

url=url+"?p="+str

url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateChangedss 

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

}
function stateChangedss() 

{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

 { 
 document.getElementById("Hint").innerHTML=xmlHttp.responseText 
 } 

}



function callemail(str)
{ 

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }
alert("jai")
var url="callemail.php"

url=url+"?p="+str

url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateChangedsse

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

}
function stateChangedsse() 

{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

 { 
 alert(xmlHttp.responseText)
 document.getElementById("ems").innerHTML=xmlHttp.responseText 

 } 

}





function callfield(str1)

{ 

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }

var url="include/getform.php"

url=url+"?num="+str1

url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateforget 

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

}

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

function stat(str1,str2)

{ 

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }

var url="cheklogin.php"

url=url+"?username="+str1

url=url+"&password="+str2

url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateChan 

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

}

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

function stat2(str1,str2)

{ 

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }

var url="include/getform2.php"

url=url+"?name="+str1

url=url+"&email="+str2

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")
 { 
 document.getElementById("State2").innerHTML=xmlHttp.responseText 
 } 
}

function stat5(str1,st,str2,str3,str4,str5)

{ 

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }

var url="include/submit-quote.php"

url=url+"?name="+str1

url=url+"&how="+st

url=url+"&email="+str2

url=url+"&quantity="+str3

url=url+"&keyset="+str4

url=url+"&urlset="+str5

url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateChanges 

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

}



function stateChanges() 

{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

 { 
document.getElementById("ct").innerHTML=xmlHttp.responseText 

 } 

}


function stat9(str1,str2,str3,str4,str5)

{ 

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }

var url="sendmail2.php"

url=url+"?name="+str1

url=url+"&email="+str2

url=url+"&fname="+str3

url=url+"&femail="+str4

url=url+"&content="+str5



url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=tellfriend 

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

}



function tellfriend() 

{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

 { 

 document.getElementById("fr").innerHTML=xmlHttp.responseText 

 } 

}




function empshowUs(str)

{ 

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }

var url="../getform.php"

url=url+"?l="+str

url=url+"&tb=employer"

url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateChangeds 

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

}
function stateChangeds() 

{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

 { 

 document.getElementById("Hint2").innerHTML=xmlHttp.responseText 

 } 

}


function discount(str)

{ 

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }

var url="getform.php"

url=url+"?d="+str

url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateCh

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

}
function stateCh() 

{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

 { 

 document.getElementById("dis").innerHTML=xmlHttp.responseText 

 } 

}


function chpas(str1,str2,str3)

{ 

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }

var url="uploadimage_ajax.php"

url=url+"?oldpass="+str1

url=url+"&newpass="+str2

url=url+"&cpass="+str3

url=url+"&sid="+Math.random()

xmlHttp.onreadystatechange=stateCh

xmlHttp.open("GET",url,true)

xmlHttp.send(null)

}
function stateCh() 

{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

 { 

 document.getElementById("changepass").innerHTML=xmlHttp.responseText 

 } 

}

//For got password

function forgpas(str1)

{ 
xmlHttp=GetXmlHttpObject()
 
 if(xmlHttp==null)
 {
alert("Browser does not support HTTP Request");
return
 }

var url="fetchpassword.php"

url=url+"?email="+str1
url=url+"&sid="+Math.random()


xmlHttp.onreadystatechange=forgotstate

xmlHttp.open("GET",url,true)

xmlHttp.send(null)
}

function forgotstate() 

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

}


function addcmt(str,str1,str2)
{
xmlHttp=GetXmlHttpObject()
 
 if(xmlHttp==null)
 {
alert("Browser does not support HTTP Request");
return
 }


var url='member/addcomment.php'
url=url+'?cmt='+str
url=url+'&memberid='+str1
url=url+'&act='+str2
url=url+'&sid='+Math.random()
xmlHttp.onreadystatechange=statComment
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function statComment()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState=='complete')
{
document.getElementById('addcomment').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;

}

