function ck()
{
  if (document.myform.t1.value=="")
  {
    alert("姓名不能为空！");
	document.myform.t1.focus();
	return false;
  }
  if (document.myform.t4.value=="")
  {
    alert("主题不能为空！");
	document.myform.t4.focus();
	return false;
  }
  if (document.myform.t5.value=="")
  {
    alert("留言内容不能为空！");
	document.myform.t5.focus();
	return false;
  }
  return true;  
}
function ck1()
{
	if (document.myform.t1.value=="")
  {
    alert("姓名不能为空！");
	document.myform.t1.focus();
	return false;
  }
  if (document.myform.t2.value=="")
  {
    alert("年龄不能为空！");
	document.myform.t2.focus();
	return false;
  }
  if (document.myform.t7.value=="")
  {
    alert("约定时间不能为空！");
	document.myform.t7.focus();
	return false;
  }
  if (document.myform.t8.value=="")
  {
    alert("联系方式不能为空！");
	document.myform.t8.focus();
	return false;
  }
  return true;  
}
var   flag=false;   
  function   DrawImage(ImgD){   
  var   image   =   new   Image();   
  image.src   =   ImgD.src;   
  if(image.width>0   &&   image.height>0){   
  flag   =   true;   
          if(image.width/image.height   >=   500/500){   
            if(image.width>500){       
            ImgD.width   =   500;   
            ImgD.height   =   (image.height*500)/image.width;   
            }else{   
            ImgD.width   =   image.width;       
            ImgD.height   =   image.height;   
            }   
            ImgD.alt   =   image.width+"×"+image.height;   
            }   
          else{   
            if(image.height>500){       
            ImgD.height   =   500;   
            ImgD.width   =   (image.width*500)/image.height;             
            }else{   
            ImgD.width   =   image.width;       
            ImgD.height   =   image.height;   
            }   
            ImgD.alt   =   image.width+"×"+image.height;   
            }   
          }   
  }    