
function checkform()
{
  if(form1.title.value=='')
  {
     alert('Please you to fill in the title');
	 form1.title.focus();
	 return false;
	 }
  if(form1.content.value=='')
  {
     alert('Please you to fill in the content');
	 form1.content.focus();
	 return false;
	 }
 if (form1.name.value=='')
  {
     alert('Please fill in the your name');
	 form1.name.focus();
	 return false;
	 }
 if (form1.email.value=='')
  {
     alert('Please you to fill in the e-mail');
	 form1.email.focus();
	 return false;
	 }
if(document.form1.email.value.charAt(0)=="." ||        
       document.form1.email.value.charAt(0)=="@"||       
       document.form1.email.value.indexOf("@", 0) == -1 || 
       document.form1.email.value.indexOf(".", 0) == -1 || 
       document.form1.email.value.lastIndexOf("@")==document.form1.email.value.length-1 || 
       document.form1.email.value.lastIndexOf(".")==document.form1.email.value.length-1)
	 {
      alert("The e-amil form is wrong");
      document.form1.email.focus();
      return false;
     } 
return true;
}
function showsub(id)
{
whichEl = eval("sub" + id);
if (whichEl.style.display == "none")
{
eval("sub" + id + ".style.display=\"\";");
}
else
{
eval("sub" + id + ".style.display=\"none\";");
}
}
