function item_add(FORM,ACTION) {
	var oForm = document.forms[FORM];
	oForm.ACTION.value = ACTION;
	oForm.action = "?module=_module_2";
	
	if		(ACTION == 'ADD')	{
			if (oForm.section_name.value == "")						{ alert('Please select section first!'); oForm.section_name.focus(); 	
			}	
			else if	(isEmpty(oForm.company_name.value))				{ alert('Company name MUST be at least 3 characters long!'); oForm.company_name.focus(); 
			}				
			else if	(oForm.company_name.value.length > 50)			{ alert('Company name cannot be longer than 50 characters!'); oForm.company_name.focus(); 
			}			
			else if	(isEmpty(oForm.creator_name.value))				{ alert('Your name MUST be at least 3 characters long!'); oForm.creator_name.focus(); 
			}
			else if	(isEmpty(oForm.email.value))					{ alert('Please provide your EMAIL address!'); oForm.email.focus(); 
			}			
			else if	(oForm.email.value.length > 100) 				{ alert('Email address cannot be longer than 100 characters!'); oForm.email.focus(); 
			}
			else if	(!isEmail(oForm.email.value))	 				{ alert('Please provide correct email address!'); oForm.email.focus(); 
			}
			else if	(isEmpty(oForm.description.value))				{ alert('Please fill out description field!'); oForm.description.focus(); 
			}	
			else if	(!oForm.conditions.checked)						{ alert('You have to agree with terms and conditions to submit this form!'); oForm.conditions.focus(); 
			}				
			else {
			oForm.submit();	
			}
	}
	else if	(ACTION == 'CANCEL')	{
			oForm.submit(); 
	}
}

