//javascript document
function checkForm(frm){	
	if(Trim(frm.txtCompName.value)==""){
		alert("Please provide a company name");
		frm.txtCompName.focus();
		return false;		
	}
	if(Trim(frm.txtContactPerson.value)==""){
		alert("Please provide a contact person name");
		frm.txtContactPerson.focus();
		return false;		
	}
	if(Trim(frm.txtAddress1.value)==""){
		alert("Please provide a address1");
		frm.txtAddress1.focus();
		return false;		
	}

	if(frm.cmbCountry.selectedIndex==0){
		alert("Please provide a country name");
		frm.cmbCountry.focus();
		return false;		
	}

	if(Trim(frm.txtURL.value)==""){
		alert("Please provide the URL");
		frm.txtURL.focus();
		return false;		
	}

	if(Trim(frm.txtEmail.value)==""){
		alert("Please provide an email address");
		frm.txtEmail.focus();
		return false;		
	}
	if(CheckEmail(frm.txtEmail.value)==false){
		alert("Please provide a valid email address");
		frm.txtEmail.focus();
		return false;		
	}

	if(Trim(frm.txtPhone.value)==""){
		alert("Please provide a phone no.");
		frm.txtPhone.focus();
		return false;		
	}

	if(Trim(frm.txtDescription.value)==""){
		alert("Please provide some description");
		frm.txtDescription.focus();
		return false;		
	}

	if(Trim(frm.txtProducts.value)==""){
		alert("Please provide products info");
		frm.txtProducts.focus();
		return false;		
	}

	if(Trim(frm.cmbCategory.selectedIndex)==0){
		alert("Please select a category");
		frm.cmbCategory.focus();
		return false;		
	}

	return true;
}