function qry() 
	{
		var sql="select * from jobpost "
		var and="where"
		//var sql="select * from jobpost where"
		//var and="0"
		if(document.frmsrchemp.txtskills.value!="") 
			{
				/*if(and=="0") 
					{
						sql=sql+ " skills like '%" + document.frmsrchemp.txtskills.value + "%'"
						and="1"
					}
				else 
					{
						sql=sql+ " and skills like '%" + document.frmsrchemp.txtskills.value + "%'"
						and="1"
					}  */
					sql=sql+  " skills like '%" + document.frmsrchemp.txtskills.value + "%'"
			}
		if(document.frmsrchemp.txtindustry.value!=""||document.frmsrchemp.txtoindustry.value!="") 
			{
				/*if(and=="0") 
					{
						sql=sql+ " industry like '%" + document.frmsrchemp.txtindustry.value + "%'"
						and="1"
					}
				else 
					{
						sql=sql+ " and industry like '%" + document.frmsrchemp.txtindustry.value + "%'"
						and="1"
					} */
				  sql=sql+ " and industry like '%" + document.frmsrchemp.txtindustry.value + "%'"
			}
		if(document.frmsrchemp.txtfuncarea.value!=""||document.frmsrchemp.txtofuncarea.value!="") 
			{
				/*if(and=="0") 
					{
						sql=sql+ " functionalarea like '%" + document.frmsrchemp.txtfuncarea.value + "%'"
						and="1"
					}
				else 
					{
						sql=sql+ " and functionalarea like '%" + document.frmsrchemp.txtfuncarea.value + "%'"
						and="1"
					} */
					    sql=sql+ " and functionalarea like '%" + document.frmsrchemp.txtfuncarea.value + "%'"
			}
		if(document.frmsrchemp.txtexp.value!="") 
			{
				/*if(and=="0") 
					{
						sql=sql+ " val(experience) <=" + document.frmsrchemp.txtexp.value  
						and="1"
					}
				else 
					{
						sql=sql+ " and val(experience) <=" + document.frmsrchemp.txtexp.value 
						and="1"
					}	*/
						sql=sql+ " and val(experience) <=" + document.frmsrchemp.txtexp.value 
			}
		if(document.frmsrchemp.txtdegree.value!="") 
			{
				/*if(and=="0") 
					{
						sql=sql+ " education like '%" + document.frmsrchemp.txtdegree.value + "%' "
						and="1"
					}
				else 
					{
						sql=sql+ " and (degree like '%" + document.frmsrchemp.txtdegree.value + "%' " 
						and="1"
					}  */
					    sql=sql+ " and (degree like '%" + document.frmsrchemp.txtdegree.value + "%' " 
			}
		if(document.frmsrchemp.txtpreflocation.value!=""||document.frmsrchemp.txtopreflocation.value!="") 
			{
				/*if(and=="0") 
					{
						sql=sql+ " location like '%" + document.frmsrchemp.txtpreflocation.value + "%' "
						and="1"
					}
				else
					{
						sql=sql+ " and location like '%" + document.frmsrchemp.txtpreflocation.value + "%' "
						and="1"
					}  */
					    sql=sql+ " and location like '%" + document.frmsrchemp.txtpreflocation.value + "%' "
			}			
		if(document.frmsrchemp.txtodegree.value!="") 
			{
				/*if(and=="0") 
					{
						sql=sql+ " education like '%" + document.frmsrchemp.txtodegree.value + "%' "
						and="1"
					}
				else 
					{
						sql=sql+ " and (degree like '%" + document.frmsrchemp.txtodegree.value + "%' " 
						and="1"
					}  */
					sql=sql+ " education like '%" + document.frmsrchemp.txtodegree.value + "%' "
			}		 
		if(and=="0") 
			{
				alert("Please Enter atleast one crieteria")
				return false
			}
}

function enable1()
	{
		if(document.frmsrchemp.txtdegree.value=="") 
			{
				document.frmsrchemp.txtodegree.disabled=false
			}	
		else
			{
				document.frmsrchemp.txtodegree.value=""
				document.frmsrchemp.txtodegree.disabled=true
			}
	}