function validate_commerical_application(frm) 
{
	
	
	var sd_error = document.getElementById('calculator_error');
	var error = '';
	
	if (frm.address.value.length == 0)
    {
        error+="Please enter your Address<br/>";
    }
	
	if (frm.applicant_name.value.length == 0)
    {
        error+="Please enter your name<br/>";
    }
	
	if (frm.registered_address.value.length == 0)
    {
        error+="Please enter your Registered Address<br/>";    
    }
	
	if (frm.phone.value.length == 0)
    {
        error+="Please enter your Phone Number<br/>";   
    }

	if (frm.mobile.value.length == 0)
    {
        error+="Please enter your Mobile Phone Number<br/>";
    }

	if (frm.email_address.value.length == 0)
    {
        error+="Please enter an e-mail address<br/>";
      
    }

    if (frm.email_address.value.indexOf("@") == -1)
    {
        error+="Please enter a valid e-mail address.<br/>";       
    }
  //
  if (frm.company_name.value.length == 0)
    {
        error+="Please enter your Company Name<br/>";       
    }
	    if (frm.company_contact.value.length == 0)
    {
        error+="Please enter your Company Contact<br/>";        
    }

    if (frm.company_phone.value.length == 0)
    {
        error+="Please enter your Company Phone Number<br/>";       
    }

    if (frm.company_business_type.value.length == 0)
    {
        error+="Please enter your Type of Business<br/>";
 
    }

    if (frm.company_business_relationship.value.length == 0)
    {
        error+="Please enter the duration of Business Relationship<br/>";        
    }
//
  if (frm.company_name2.value.length == 0)
    {
        error+="Please enter your Company Name<br/>";
    }
	    if (frm.company_contact2.value.length == 0)
    {
        error+="Please enter your Company Contact<br/>";
    }

    if (frm.company_phone2.value.length == 0)
    {
        error+="Please enter your Company Phone Number<br/>";
    }

    if (frm.company_business_type2.value.length == 0)
    {
        error+="Please enter your Type of Business<br/>";
    }

    if (frm.company_business_relationship2.value.length == 0)
    {
        error+="Please enter the duration of Business Relationship<br/>";
    }
//
  if (frm.applicant.value.length == 0)
    {
        error+="Please enter Applicant / Director Name<br/>";
    }
	    if (frm.applicant_namea.value.length == 0)
    {
        error+="Please enter Applicant Name<br/>";
    }

    if (frm.applicant_address.value.length == 0)
    {
        error+="Please enter Applicant Address<br/>";
    }

    if (frm.applicant_phone.value.length == 0)
    {
        error+="Please enter your Applicant Phone Number<br/>";
    }

    if (frm.applicant_mobile.value.length == 0)
    {
        error+="Please enter your Applicant Mobile Phone Number<br/>";
    }
    if (frm.applicant_email.value.length == 0)
    {
        error+="Please enter your Applicant Phone Number<br/>"; 
    }
	

	if(error.length == 0)
	{
		frm.submit();
	}
	else
	{
		sd_error.innerHTML = "<p>"+error+"</p>";
		sd_error.style.display = 'block';
		
		window.scrollTo(0,0);
	
		return false;
	}
	
	
     
}
