// JavaScript Document
function jobValidate(frm){
	
	//alert(document.getElementById('salaryNegotiable2').checked);
	//return false;
	
	if(frm.title.value==""){
		alert("Please insert job title.");
		frm.title.focus();
		return false;
	}
	
 	if(frm.description.value==""){
		alert("Please insert description.");
		frm.description.focus();
		return false;
	}
	
		/*var sal=document.getElementById('salaryNegotiable2');
	if(sal.value=="")
	{
		alert("hiii")
	}*/
	if(document.getElementById('salaryNegotiable2').checked){
	 
	 //alert(document.getElementById('salaryNegotiable2').checked);
	 var from=document.getElementById('salaryfrom');
	// alert(from.value);
	 if(from.value=="0")
	 {
		 alert("Please select the salary ");
		 return false;
	 }
	 var To=document.getElementById('salaryto');
	 //alert(To.value);
	 if(To.value=="0")
	 {
		 alert("Please select the salary");
		 return false;
	 }
							   
	}

	if(frm.industry.selectedIndex=='0'){
		alert("Please select any industry.");
		frm.industry.focus();
		return false;
	}


/*	if(frm.specialization.value==""){
		alert("Please insert specialization field.");
		frm.specialization.focus();
		return false;
	}
*/
 	if(frm.qualification.selectedIndex=="0"){
		alert("Please select qualification.");
		frm.qualification.focus();
		return false;
	}
	
	if(frm.companyname.value==""){
		alert("Please insert company name.");
		frm.companyname.focus();
		return false;
	}
	
	 if(frm.country.selectedIndex=="0"){
		alert("Please select country.");
		frm.country.focus();
		return false;
	}

	if(frm.state.selectedIndex=='0'){
		alert("Please select any state.");
		frm.state.focus();
		return false;
	}
	
	if(frm.city.value==""){
		alert("Please insert city name.");
		frm.city.focus();
		return false;
	}
	if(frm.address.value==""){
		alert("Please insert address.");
		frm.address.focus();
		return false;
	}


return true;	
 }
 



function salaryNegotiableChk() {
	
if(document.getElementById("salaryNegotiable1").checked)
	{
		document.getElementById("salaerySpecified").style.display	=	"none";
	}
if(document.getElementById("salaryNegotiable2").checked)
	{
		document.getElementById("salaerySpecified").style.display	=	"";
	}
}



function deleteJob(jobId,baseurl) {
	
if(confirm("Are you sure for delete this job ? "))
{
	window.location.href=baseurl+'index.php/jobcontroller/deleteJob/'+jobId;
	}
}

function reject()
{
	if(confirm("Are You Sure For Reject This Seeker For Futher Processes."))
	{
		return true;
	}
	else{
		return false;
		}

}



