var xmlHttp;
function selectcount(count,count1)

{



 xmlHttp=GetXmlHttpObject4()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }

var url="http://localworkmarketing.com/wp-content/themes/local/selectcount.php?q1="+count+"&q="+count1;



xmlHttp.onreadystatechange=stateChanged4 

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

xmlHttp.send(null)

}

function stateChanged4() 

{ 

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

 { 

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

 } 

}
function GetXmlHttpObject4()

{

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;

}



var xmlHttp;
function selectimage(count,count1)

{



 xmlHttp=GetXmlHttpObject5()

if (xmlHttp==null)

 {

 alert ("Browser does not support HTTP Request")

 return

 }

var url="http://localhost/wordpress_e1/wp-content/themes/esso/selectimage.php?q1="+count+"&q="+count1;



xmlHttp.onreadystatechange=stateChanged5 

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

xmlHttp.send(null)

}

function stateChanged5() 

{ 

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

 { 

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

 } 

}
function GetXmlHttpObject5()

{

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.name.value.length==0 || objForm.name.value=="Name")

    {

        alert("Please Enter Name");

        objForm.name.focus();

        return false;

    }

if(objForm.contact.value.length==0 || objForm.contact.value=="Contact")

    {

        alert("Please Enter Contact");

        objForm.contact.focus();

        return false;

    }

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

    {

        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 Address is not valid ");

objForm.email.focus();

return false;

    }

}
if(objForm.message.value.length==0 ||  objForm.message.value=="Message")

    {

        alert("Please Enter Message");

        objForm.message.focus();

        return false;

    }
}
