<!---Script functions--->
<!-- For checking Post your Ideas-->
function checkIdeasval(){
	document.idea.txtind_name.value = trimSpaces(document.idea.txtind_name.value);
	 if(document.idea.txtind_name.value.length <= 0){
		 alert("Please enter the Name of the individual/individuals");
		 document.idea.txtind_name.focus();
		 return false;
	 }
	  document.idea.txttech_desc.value = trimSpaces(document.idea.txttech_desc.value);
	 if(document.idea.txttech_desc.value.length <= 0){
		 alert("Please your Idea/ Technology/ Product");
		 document.idea.txttech_desc.focus();
		 return false;
	 }
	 	document.idea.txt_unique.value = trimSpaces(document.idea.txt_unique.value);
	 if(document.idea.txt_unique.value.length <= 0){
		 alert("Please enter how your idea is unique");
		 document.idea.txt_unique.focus();
		 return false;
	 }
	  	document.idea.txt_interact.value = trimSpaces(document.idea.txt_interact.value);
	 if(document.idea.txt_interact.value.length <= 0){
		 alert("Please enter how is the Interaction with Lumenteck");
		 document.idea.txt_interact.focus();
		 return false;
	 }
	    document.idea.txt_email.value = trimSpaces(document.idea.txt_email.value);
	 if(document.idea.txt_email.value.length <= 0){
		 alert("Please enter the Email Address");
		 document.idea.txt_email.focus();
		 return false;
	 }	 
	if(document.idea.txt_email.value.length > 0) {
		if(!checkEmail(document.idea.txt_email.value)) {
		document.idea.txt_email.select();
		return false;}
	  }	 
}
<!--  FOR CHECKING CONTACT US FORM ENTRIES-->
function checkContactVal(){
   document.contact.nam.value = trimSpaces(document.contact.nam.value);
	 if(document.contact.nam.value.length <= 0){
		 alert("Please enter the Name");
		 document.contact.nam.focus();
		 return false;
	 }
   document.contact.com.value = trimSpaces(document.contact.com.value);
	 if(document.contact.com.value.length <= 0){
		 alert("Please enter the Email Address");
		 document.contact.com.focus();
		 return false;
	 }	 
	if(document.contact.com.value.length > 0) {
		if(!checkEmail(document.contact.com.value)) {
		document.contact.com.select();
		return false;}
	  }	 
   document.contact.feed.value = trimSpaces(document.contact.feed.value);
	 if(document.contact.feed.value.length <= 0){
		 alert("Please enter the FeedBack");
		 document.contact.feed.focus();
		 return false;
	 }	 
 } 
 //BMI power profiler snap shot
function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}
