function onssubmit()
{

	document.theform.submit();
}

function check_key(){

   if(document.form1.sear.value==''){
      alert("Please input keywords");
	 return false;
   }
    return true;
}

 function emailCheck() {

         var chkbox_count=0;


topic=document.theform.topic.value;
if(topic=='')
{alert("Please input Topic!");
return false;
}

details=document.theform.details.value;
if(details=='')
{alert("Please input Details!");
return false;
}

         for (var i=0; i <= document.theform.elements.length - 1; i++) {

				  var elemname = eval("document.theform.elements[" + i + "].name")
 ;
                 if (elemname != "") {
                         if (document.theform.elements[i].checked) {
                                 chkbox_count = chkbox_count + 1;
                         }
                 }
         }

		 if (chkbox_count > 5 ) {
                 alert(" maximum of 5 allowed");
                 return false;
         }
         if (chkbox_count == 0) {
                 alert(" select 1 to 5 companies to email");
                 return false;
         }
		 

return true;
}