function selectitem_9(count,count1)

{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }



var url="ajax_juvenile.php?q="+count+"&q1="+count1;   

xmlHttp.onreadystatechange=stateChanged

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

xmlHttp.send(null)

}



function selectitem_10(count,count1)

{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }



var url="ajax_military_divorce.php?q="+count+"&q1="+count1;   

xmlHttp.onreadystatechange=stateChanged

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

xmlHttp.send(null)

}



function selectitem_8(count,count1)

{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }



var url="ajax_seminar.php?q="+count+"&q1="+count1;   

xmlHttp.onreadystatechange=stateChanged

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

xmlHttp.send(null)

}







function selectitem_7(count,count1)

{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }



var url="ajax_probate.php?q="+count+"&q1="+count1;   

xmlHttp.onreadystatechange=stateChanged

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

xmlHttp.send(null)

}



function selectitem_6(count,count1)

{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }



var url="ajax_not_for_profit.php?q="+count+"&q1="+count1;   

xmlHttp.onreadystatechange=stateChanged

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

xmlHttp.send(null)

}



function selectitem_5(count,count1)

{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }



var url="ajax_civil_rights.php?q="+count+"&q1="+count1;   

xmlHttp.onreadystatechange=stateChanged

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

xmlHttp.send(null)

}



function selectitem_4(count,count1)

{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }



var url="ajax_family_divorce.php?q="+count+"&q1="+count1;   

xmlHttp.onreadystatechange=stateChanged

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

xmlHttp.send(null)

}





function selectitem_3(count,count1)

{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }



var url="ajax_criminal_defense.php?q="+count+"&q1="+count1;   

xmlHttp.onreadystatechange=stateChanged

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

xmlHttp.send(null)

}





function selectitem_2(count,count1)

{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }



var url="ajax_bankruptcy.php?q="+count+"&q1="+count1;   

xmlHttp.onreadystatechange=stateChanged

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

xmlHttp.send(null)

}



function selectitem_1(count,count1)

{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }



var url="ajax_personal_injury.php?q="+count+"&q1="+count1;   

xmlHttp.onreadystatechange=stateChanged

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

xmlHttp.send(null)

}









function select_gallery(count,count1)

{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }



var url="ajax_image_gallery.php?q="+count+"&q1="+count1;   

xmlHttp.onreadystatechange=stateChanged

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

xmlHttp.send(null)

}



 



















function selectitem(count,count1)

{

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }



var url="selectcount2.php?q="+count+"&q1="+count1;   //change.php

xmlHttp.onreadystatechange=stateChanged

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

xmlHttp.send(null)

}





function stateChanged() 

{ 

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

 { 

 document.getElementById("txtHint").innerHTML = "<font face='verdana' color='#496AED'>Loading...<div  style='height:293px;' align='center'><img src='images/loader.gif' alt='please wait, the content is still loading'/></div></font>"; 

setTimeout('loading()', 1000); 

 } 

}



function loading()

{

document.getElementById("txtHint").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 validate(objForm)

{

	if(objForm.fname.value.length=="0")

	  {

		alert("Please Enter  First Name ");

		objForm.fname.focus();

		return false;

	 }

if(objForm.lname.value.length=="0")

	  {

		alert("Please Enter  Last Name ");

		objForm.lname.focus();

		return false;

	 }	

	if(objForm.phone.value.length=="0")

	  {

		alert("Please Enter  Phone ");

		objForm.phone.focus();

		return false;

	 }	 

	 if(objForm.email.value.length=="0")

	  {

		alert("Please Enter Email.");

		objForm.email.focus();

		return false;

	 }

	 if(objForm.email.value.length!=0)



    {



      ValidRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;



        strEmail =objForm.email.value;







if (strEmail.search(ValidRegExp) == -1) 



{



alert("Email is not Valid");



objForm.email.focus();



return false;



    }



}

if(objForm.message.value.length=="0")

	  {

		alert("Please Enter  Comments ");

		objForm.message.focus();

		return false;

	 }	

 }

 

 function validate_search(objForm)

{

	if(objForm.s.value.length=="" || objForm.s.value=="search this site")

	  {

		alert("Please Enter  Keyword");

		objForm.s.focus();

		return false;

	 }

}
