function incubationForm()
{
appName = document.forms[0].applicantsName;
email = document.forms[0].emailID;
phone = document.forms[0].phoneNo;
mailAddress = document.forms[0].mailingAddr;
founderNames = document.forms[0].founderName;
bussIdea = document.forms[0].businessIdea;
industry = document.forms[0].industryFocus;
comments = document.forms[0].othersComments;

if (appName.value == '' || appName.length == '0')
	{
		alert("Please enter Applicant's Full Name");
		appName.focus();
		return false;
	}
	else if(appName.value.charCodeAt(0)==32)
	{
		alert("First character of Applicant's Name should not be a space");
		appName.focus();
		appName.select();
		return false;
	}
	else if(validateFirstName(appName)==false)
	{
		alert(" Applicant's Name accepts only Alphabets");
		appName.select();
		appName.focus();
		return false;
	}
	else if(ValidateMaxMin(appName,0,30)==false)
	{
		alert("Applicant's Name cannot exceed more than 30 characters");
		appName.select();
	 	appName.focus(); 
	 	return false; 
	}
	
	if(email.value == '' || email.length == 0)
	{
		alert("Please enter your Email-Id");
		email.focus();
		return false;
	}						
	else if(isValidEmail(email.value)==false)
	{
		alert("Invalid Email-Id");
		email.select();
		email.focus(); 
	 	return false; 
	}
	else if(ValidateMaxMin(email,0,50)==false)
	{
		alert("Email-Id should not exceed more than 50 characters");
		email.select();
	 	email.focus(); 
	 	return false; 
	}
	
	if(phone.value == '' || phone.length == '0'){
	alert("Please enter your Phone Number");
	phone.select();
	phone.focus();
	return false;
	}
	else if(phone.value.charCodeAt(0)==32)
	{
		alert("First character of Phone Number should not be space");
		phone.select();
		phone.focus();
		return false;
	}
	else if(IsNumeric(phone)==false)
	{
		alert("Phone number accepts only numbers");
			phone.select();
			 phone.focus();
			 return false;
	}
	else if(ValidateMaxMin(phone,10,15)==false)
	{
			alert("Phone Number should be between 10 to 15 characters");
			phone.select();
			phone.focus();
			return false;
	}
	
	if (mailAddress.value == '' || mailAddress.length == '0')
	{
		alert("Please enter your Mailing Address");
		mailAddress.focus();
		return false;
	}
	else if(ValidateMaxMin(mailAddress,0,100)==false)
	{
		alert("Mailing Address cannot exceed more than 100 characters");
		mailAddress.select();
	 	mailAddress.focus(); 
	 	return false; 
	}
	
	
	if (founderNames.value == '' || founderNames.length == '0')
	{
		alert("Please enter Founder and Team members names");
		founderNames.focus();
		return false;
	}
	else if(founderNames.value.charCodeAt(0)==32)
	{
		alert("First character of Name should not be space");
		founderNames.select();
		founderNames.focus();
		return false;
	}
	else if(ValidateMaxMin(founderNames,0,100)==false)
	{
		alert("Founder and Team members names cannot exceed more than 100 characters");
		founderNames.select();
	 	founderNames.focus(); 
	 	return false; 
	}
	
	if (bussIdea.value == '' || bussIdea.length == '0')
	{
		alert("Please enter the Business Idea");
		bussIdea.focus();
		return false;
	}
	else if(ValidateMaxMin(bussIdea,0,500)==false)
	{
		alert("Business Idea cannot exceed more than 500 characters");
		bussIdea.select();
	 	bussIdea.focus(); 
	 	return false; 
	}
	
	if (industry.value == '' || industry.length == '0')
	{
		alert("Please enter the Industry Focus");
		industry.focus();
		return false;
	}
	else if(ValidateMaxMin(industry,0,100)==false)
	{
		alert("Industry Focus cannot exceed more than 100 characters");
		industry.select();
	 	industry.focus(); 
	 	return false; 
	}
	
	if (comments.value == !'' || comments.length > '0'){
	if(ValidateMaxMin(comments,0,1000)==false)
	{
		alert("Comments cannot exceed more than 1000 characters");
		comments.select();
	 	comments.focus(); 
	 	return false; 
	}
	}
	return true;
	
}


function ianApplyForm()
{
appName = document.forms[0].applicantsName;
email = document.forms[0].emailID;
phone = document.forms[0].phoneNo;
mailAddress = document.forms[0].mailingAddr;
founderNames = document.forms[0].founderName;
bussIdea = document.forms[0].businessIdea;
industry = document.forms[0].industryFocus;
comments = document.forms[0].othersComments;
fundingAmt = document.forms[0].fundingAmt;
attachment1 = document.forms[0].attFilePath1;
attachment2 = document.forms[0].attFilePath2;
attachment3 = document.forms[0].attFilePath3;

if (appName.value == '' || appName.length < '0' )
	{
		alert("Please enter Applicant's Full Name");
		// appName.focus();
		return false;
	}
	else if(appName.value.charCodeAt(0)==32)
	{
		alert("First character of Applicant's Name should not be a space");
		appName.focus();
		appName.select();
		return false;
	}
	else if(validateFirstName(appName)==false)
	{
		alert(" Applicant's Name accepts only Alphabets");
		appName.select();
		appName.focus();
		return false;
	}
	else if(ValidateMaxMin(appName,0,30)==false)
	{
		alert("Applicant's Name cannot exceed more than 30 characters");
		appName.select();
	 	appName.focus(); 
	 	return false; 
	}
	
	if(email.value == '' || email.length == 0)
	{
		alert("Please enter your Email-Id");
		email.focus();
		return false;
	}						
	else if(isValidEmail(email.value)==false)
	{
		alert("Invalid Email-Id");
		email.select();
		email.focus(); 
	 	return false; 
	}
	else if(ValidateMaxMin(email,0,50)==false)
	{
		alert("Email-Id should not exceed more than 50 characters");
		email.select();
	 	email.focus(); 
	 	return false; 
	}
	
	if(phone.value == '' || phone.length == '0'){
	alert("Please enter your Phone Number");
	phone.select();
	phone.focus();
	return false;
	}
	else if(phone.value.charCodeAt(0)==32)
	{
		alert("First character of Phone Number should not be space");
		phone.select();
		phone.focus();
		return false;
	}
	else if(IsNumeric(phone)==false)
	{
		alert("Phone number accepts only numbers");
			phone.select();
			 phone.focus();
			 return false;
	}
	else if(ValidateMaxMin(phone,10,15)==false)
	{
			alert("Phone Number should be between 10 to 15 characters");
			phone.select();
			phone.focus();
			return false;
	}
	
	if (mailAddress.value == '' || mailAddress.length == '0')
	{
		alert("Please enter your Mailing Address");
		mailAddress.focus();
		return false;
	}
	else if(ValidateMaxMin(mailAddress,0,100)==false)
	{
		alert("Mailing Address cannot exceed more than 100 characters");
		mailAddress.select();
	 	mailAddress.focus(); 
	 	return false; 
	}
	
	
	if (founderNames.value == '' || founderNames.length == '0')
	{
		alert("Please enter Founder and Team members names");
		founderNames.focus();
		return false;
	}
	else if(founderNames.value.charCodeAt(0)==32)
	{
		alert("First character of Name should not be space");
		founderNames.select();
		founderNames.focus();
		return false;
	}
	else if(ValidateMaxMin(founderNames,0,100)==false)
	{
		alert("Founder and Team members names cannot exceed more than 100 characters");
		founderNames.select();
	 	founderNames.focus(); 
	 	return false; 
	}
	
	
	if(fundingAmt.value == '' || fundingAmt.length == '0'){
	alert("Please enter Funding amount required ");
	phone.select();
	phone.focus();
	return false;
	}
	else if(fundingAmt.value.charCodeAt(0)==32)
	{
		alert("First character of Funding amount required should not be space");
		phone.select();
		phone.focus();
		return false;
	}
	
 if (bussIdea.value == '' || bussIdea.length == '0')
	{
		alert("Please enter the Business Idea");
		bussIdea.focus();
		return false;
	}
	else if(ValidateMaxMin(bussIdea,0,500)==false)
	{
		alert("Business Idea cannot exceed more than 500 characters");
		bussIdea.select();
	 	bussIdea.focus(); 
	 	return false; 
	}
	
	if (industry.value == '' || industry.length == '0')
	{
		alert("Please enter the Industry Focus");
		industry.focus();
		return false;
	}
	else if(ValidateMaxMin(industry,0,100)==false)
	{
		alert("Industry Focus cannot exceed more than 100 characters");
		industry.select();
	 	industry.focus(); 
	 	return false; 
	}
	
	if (comments.value == !'' || comments.length > '0'){
	if(ValidateMaxMin(comments,0,1000)==false)
	{
		alert("Comments cannot exceed more than 1000 characters");
		comments.select();
	 	comments.focus(); 
	 	return false; 
	}
	}

if((attachment1.value == '' || attachment1.length == '0') && (attachment2.value == '' || attachment2.length == '0') && (attachment3.value == '' || attachment3.length == '0')){
	alert("Note: you have not uploaded any attachments. IAN requires an \'elevator pitch\' / short summary of your business idea and a slide presentation to process your application. Refer to the section \"Upload required documents\" on this form to download the format.");
	return false;
	}
	return true;
	
}


function validateMentoringForm()
{
//alert("%%%%");
appName = document.forms[0].applicantsName;
email = document.forms[0].emailID;
phone = document.forms[0].mobile;
mentorCity = document.forms[0].mentorCity;
mentorNeed = document.forms[0].mentorNeed;
mentorDesc = document.forms[0].mentorDesc;
enterprise = document.forms[0].enterprise;
businessIdea = document.forms[0].businessIdea;
fundingAmt = document.forms[0].fundingAmt;
teamSize = document.forms[0].teamSize;
industryFocus = document.forms[0].industryFocus;
enterpriseGoals = document.forms[0].enterpriseGoals;
longTermGoal = document.forms[0].longTermGoal;
profile = document.forms[0].profile;


    if (appName.value < 0 || appName.value == '')
	{
		alert("Please enter Name");
		// appName.focus();
		return false;
	}
	else if(appName.value.charCodeAt(0)==32)
	{
		alert("First character of  Name should not be a space");
		appName.focus();
		appName.select();
		return false;
	}
	
	if(phone.value == '' || phone.length == '0'){
	alert("Please enter your Mobile Number");
	phone.select();
	phone.focus();
	return false;
	}
	else if(phone.value.charCodeAt(0)==32)
	{
		alert("First character of Mobile Number should not be space");
		phone.select();
		phone.focus();
		return false;
	}
	else if(IsNumeric(phone)==false)
	{
		alert("Mobile number accepts only numbers");
			phone.select();
			 phone.focus();
			 return false;
	}
	else if(ValidateMaxMin(phone,10,15)==false)
	{
			alert("Mobile Number should be between 10 to 15 characters");
			phone.select();
			phone.focus();
			return false;
	}

	if(email.value == '' || email.length == 0)
	{
		alert("Please enter your Email-Id");
		email.focus();
		return false;
	}						
	else if(isValidEmail(email.value)==false)
	{
		alert("Invalid Email-Id");
		email.select();
		email.focus(); 
	 	return false; 
	}
	else if(ValidateMaxMin(email,0,50)==false)
	{
		alert("Email-Id should not exceed more than 50 characters");
		email.select();
	 	email.focus(); 
	 	return false; 
	}
	
	if( mentorCity.value == 0 || mentorCity.value == '0'  )
	{
	alert("Please select Preferred City");
	return false;
	}
	
	if( mentorNeed.value == 0 || mentorNeed.value == '0'  )
	{
	alert("Please describe your mentoring need ");
	return false;
	}
	
	if( mentorDesc.value == 0 || mentorDesc.value == '0'  )
	{
	alert("Please fill your mentoring need");
	return false;
	}else if(ValidateMaxMin(mentorDesc,0,663)==false)
	{
			alert("Mentoring need / Business challenge cannot be more than 100 words");
			mentorDesc.select();
			mentorDesc.focus();
			return false;
	}
	
	if(enterprise.value == 0 || enterprise.value == '0'  )
	{
	alert("Please select your enterprise");
	return false;
	}
	
	if( businessIdea.value == 0 || businessIdea.value == '0'  )
	{
	alert("Please select years in business");
	return false;
	}
	
	if( fundingAmt.value == 0 || fundingAmt.value == '0'  )
	{
	alert("Please select revenue size");
	return false;
	}
	
	if( teamSize.value == 0 || teamSize.value == '0'  )
	{
	alert("Please select people employed");
	return false;
	}
	
	if( industryFocus.value == 0 || industryFocus.value == '0'  )
	{
	alert("Please select Industry Sector");
	return false;
	}
	
	if(ValidateMaxMin(enterpriseGoals,0,633)==false)
	{
			alert("Short term goals for your Enterprise in terms of growth cannot be more than 100 words");
			enterpriseGoals.select();
			enterpriseGoals.focus();
			return false;
	}
	
	if(ValidateMaxMin(longTermGoal,0,663)==false)
	{
			alert("Long term goals for your Enterprise in terms of growth cannot be more than 100 words");
			longTermGoal.select();
			longTermGoal.focus();
			return false;
	}
	
	if(ValidateMaxMin(profile,0,1360)==false)
	{
			alert("Your Corporate cum Personal Profile cannot be more than 200 words");
			profile.select();
			profile.focus();
			return false;
	}
	return true;
}
