
function validate()


{

 if(document.f1.email.value=="")
{
alert("Enter your Email ID.");
document.f1.email.focus();
return false;
}

else if(document.f1.jobcategory.value=="")
{
alert("Select Job Category");
document.f1.jobcategory.focus();
return false;
}
else if(document.f1.expyrs.value=="")
{
alert("Select Work Experience");
document.f1.expyrs.focus();
return false;
}

else if(document.f1.sname.value=="")
{
alert("Enter your name");
document.f1.sname.focus();
return false;
}
else if(document.f1.address.value=="")
{
alert("Enter your Postal Address");
document.f1.address.focus();
return false;
}
else if(document.f1.tel.value==""||isNaN(document.f1.tel.value))
{
alert("Enter the contact number as digits");
document.f1.tel.focus();
return false;
}
else if(document.f1.gender.value=="")
{
alert("Select Gender");
document.f1.gender.focus();
return false;
}

else if(document.f1.dobdate.value=="")
{
alert("Select Date of Birth");
document.f1.dobdate.focus();
return false;
}

else if(document.f1.dobmonth.value=="")
{
alert("Select Month");
document.f1.dobmonth.focus();
return false;
}

else if(document.f1.dobyear.value=="")
{
alert("Select Year");
document.f1.dobyear.focus();
return false;
}



else if(document.f1.resume.value=="")
{
alert("Select your resume.");
document.f1.resume.focus();
return false;
}



else 
{
	if(/.*\.(pdf)|(doc)$/.test(document.f1.resume.value))

{
	if(document.f1.resume.value.indexOf("'")!=-1)
		{
			alert("File Name should not contains any (') symbol")
			return false;
		}
		else
		{
			document.f1.upload.disabled = 'false';
			return true;
		}

}
else
{
alert("Select a Valid file with extension PDF or Doc");
document.f1.resume.focus();
return false;
}




}
}



/*================*/


function ppnos (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='Number';
    }
    else if(str==1 && val.value=='Number')
    {
        val.value='';
    }	
}




function issue (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='Issued at';
    }
    else if(str==1 && val.value=='Issued at')
    {
        val.value='';
    }	
}


function issue (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='Issued at';
    }
    else if(str==1 && val.value=='Issued at')
    {
        val.value='';
    }	
}


function issuedt (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='Issue Date';
    }
    else if(str==1 && val.value=='Issue Date')
    {
        val.value='';
    }	
}


function expiry (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='Expiry Date';
    }
    else if(str==1 && val.value=='Expiry Date')
    {
        val.value='';
    }	
}




function degreea (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='a. Certificate / Diploma / Degree';
    }
    else if(str==1 && val.value=='a. Certificate / Diploma / Degree')
    {
        val.value='';
    }	
}


function insta (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='a. Institute';
    }
    else if(str==1 && val.value=='a. Institute')
    {
        val.value='';
    }	
}







function yrcompa (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='a. Year Completed';
    }
    else if(str==1 && val.value=='a. Year Completed')
    {
        val.value='';
    }	
}




function degreeb (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='b. Certificate / Diploma / Degree';
    }
    else if(str==1 && val.value=='b. Certificate / Diploma / Degree')
    {
        val.value='';
    }	
}


function instb (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='b. Institute';
    }
    else if(str==1 && val.value=='b. Institute')
    {
        val.value='';
    }	
}







function yrcompb (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='b. Year Completed';
    }
    else if(str==1 && val.value=='b. Year Completed')
    {
        val.value='';
    }	
}




function degreec (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='c. Certificate / Diploma / Degree';
    }
    else if(str==1 && val.value=='c. Certificate / Diploma / Degree')
    {
        val.value='';
    }	
}


function instc (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='c. Institute';
    }
    else if(str==1 && val.value=='c. Institute')
    {
        val.value='';
    }	
}







function yrcompc (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='c. Year Completed';
    }
    else if(str==1 && val.value=='c. Year Completed')
    {
        val.value='';
    }	
}



function compname (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='Name';
    }
    else if(str==1 && val.value=='Name')
    {
        val.value='';
    }	
}


function comploc (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='Location';
    }
    else if(str==1 && val.value=='Location')
    {
        val.value='';
    }	
}

function desig (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='Designation';
    }
    else if(str==1 && val.value=='Designation')
    {
        val.value='';
    }	
}



function ctc (val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='Current CTC';
    }
    else if(str==1 && val.value=='Current CTC')
    {
        val.value='';
    }	
}

function work(val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='Working Since';
    }
    else if(str==1 && val.value=='Working Since')
    {
        val.value='';
    }	
}



function relnamea(val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='a. Name';
    }
    else if(str==1 && val.value=='a. Name')
    {
        val.value='';
    }	
}



function relnameb(val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='b. Name';
    }
    else if(str==1 && val.value=='b. Name')
    {
        val.value='';
    }	
}


function rela(val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='a. Relationship';
    }
    else if(str==1 && val.value=='a. Relationship')
    {
        val.value='';
    }	
}




function relb(val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='b. Relationship';
    }
    else if(str==1 && val.value=='b. Relationship')
    {
        val.value='';
    }	
}


function reldepta(val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='a. Department';
    }
    else if(str==1 && val.value=='a. Department')
    {
        val.value='';
    }	
}

function reldeptb(val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='b. Department';
    }
    else if(str==1 && val.value=='b. Department')
    {
        val.value='';
    }	
}


function reldesiga(val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='a. Designation';
    }
    else if(str==1 && val.value=='a. Designation')
    {
        val.value='';
    }	
}


function reldesigb(val,str)
{
	if(str==0 && val.value=='')
	{
	    val.value='b. Designation';
    }
    else if(str==1 && val.value=='b. Designation')
    {
        val.value='';
    }	
}




/*================================*/


function oncustomerchange(val)
{
	if(val=='Yes')
	{
		if(document.getElementById('relationshipchoice').style.display=="none")
		{
			document.getElementById('relationshipchoice').style.display="block";
			
		}
		else
		{
		}
	}
	else
	{
	
		document.getElementById('relationshipchoice').style.display="none";
	
	}
}