function CheckAllFormData()
{
		          //If All right then is_ok=1
				  is_ok=1;
	
				  tmp1 = document.form_4371.ch_num;
				  if( trim(tmp1.value)!='' ) { document.getElementById('ch_num_text').style.color=''; }
				  else {
					is_ok=0;
					document.getElementById('ch_num_text').style.color='red';
					document.form_4371.ch_num.focus();
				  }
				  tmp1 = document.form_4371.bodymessg;
				  if( trim(tmp1.value)!='' ) { document.getElementById('bodymessg_text').style.color=''; }
				  else {
					is_ok=0;
					document.getElementById('bodymessg_text').style.color='red';
					document.form_4371.bodymessg.focus();
				  }
		
				  tmp1 = document.form_4371.question;
				  if( trim(tmp1.value)!='' ) { document.getElementById('question_text').style.color=''; }
				  else {
					is_ok=0;
					document.getElementById('question_text').style.color='red';
					document.form_4371.question.focus();
				  }
		
				  tmp1 = document.form_4371.email;
				  if( check_mail(tmp1.value) ) { document.getElementById('email_text').style.color=''; }
				  else {
					is_ok=0;
					document.getElementById('email_text').style.color='red';
					document.form_4371.email.focus();
				  }
				  
				  tmp1 = document.form_4371.fname;
				  if( trim(tmp1.value)!='' ) { document.getElementById('fname_text').style.color=''; }
				  else {
					is_ok=0;
					document.getElementById('fname_text').style.color='red';
					document.form_4371.fname.focus();
				  }  
		
				  if (is_ok==1) {
					document.form_4371.action.value='2'; document.form_4371.submit();
				  }
					else return false;
}

function trim(x)
{
  var ch,c
  ch=x.toString()
  c=ch.charAt(0)
  while (c==" ")
  { ch=ch.slice(1)
  c=ch.charAt(0)
  }
  c=ch.charAt(ch.length-1)
  while(c==" ")
  { ch=ch.slice(0,-1)
  c=ch.charAt(ch.length-1)
  }
  return ch;
}

function check_mail(email)
{ var re = new RegExp("^[\\w\\.-]+@[\\w\\.-]+\\.[A-Za-z]{2,}");
  return (re.test(email));
}