
<!--  
var  flag=false;  
function  DrawImage(ImgD){  
 var  image=new  Image();  
 image.src=ImgD.src;  
 if(image.width>400)
 {  
 ImgD.width=400;  
 ImgD.height=(image.height*400)/image.width;  
 }else
 {  
 ImgD.width=image.width;  
 ImgD.height=image.height;  
 }  
 ImgD.alt=image.width+"ˇÁ"+image.height +"px";  
 
} 
//-->  

function searchform(theForm)
{
	
  if (theForm.keyword.value=="") {
    window.alert("Please input keywords!");
    theForm.keyword.focus();
    return (false);
  }	
 
}


function msgform(theForm)
{
	
	if (theForm.email.value=="") {
    window.alert("Please fill in right email address!");
    theForm.email.focus();
    return (false);
  }
   if(theForm.email.value.length!=0)
  {
    if (theForm.email.value.charAt(0)=="." ||        
         theForm.email.value.charAt(0)=="@"||       
         theForm.email.value.indexOf('@', 0) == -1 || 
         theForm.email.value.indexOf('.', 0) == -1 || 
        theForm.email.value.lastIndexOf("@")==theForm.email.value.length-1 || 
         theForm.email.value.lastIndexOf(".")==theForm.email.value.length-1)
     {
      alert("Please fill in right email addressŁˇ");
      theForm.email.focus();
      return false;
      }
   }
  
	var telephone=theForm.tel.value;
    for(i=0;i<telephone.length;i++)
	   {
		char=telephone.charAt(i);		
		if(!('0'<=char&&char<='9'||char=='-'))
		   {		
			  alert("Please fill in right telephone number!");
		      theForm.tel.focus();
			  return false;
		    }
	    } 
		
	var mobile=theForm.mobile.value;
    for(i=0;i<mobile.length;i++)
	   {
		char=mobile.charAt(i);		
		if(!('0'<=char&&char<='9'||char=='-'))
		   {		
			  alert("Please fill in right mobile number!");
		      theForm.mobile.focus();
			  return false;
		    }
	    } 	
	
	
			  
  if (theForm.content.value=="") {
    window.alert("Message cannot be blank!");
    theForm.content.focus();
    return (false);
  }	
  
 if (theForm.getcode.value=="") {
    window.alert("Verification code cannot be blank!");
    theForm.getcode.focus();
    return (false);
  }	
 
	
}