// 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 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 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;

}



//Added by Manish 01-11-08

function pstrength(str)

{ 

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }

var url="getformpass.php"

url=url+"?p="+str

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

xmlHttp.onreadystatechange=PassStrength 

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

xmlHttp.send(null)

}
function PassStrength() 

{ 

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

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

 } 

}

//for emp registration
function emppstrength(str)

{ 

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }

var url="../getformpass.php"

url=url+"?p="+str

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

xmlHttp.onreadystatechange=EmpPassStrength 

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

xmlHttp.send(null)

}
function EmpPassStrength() 

{ 

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

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

 } 

}
//End manish