	//onload="DrawImage(this,80,80,0)" 图片自适应
	function DrawImage(ImgD,intLargeImgWidth,intLargeImgHeight,intAltFlag)
	{
		var image = new Image();
		image.src = ImgD.src;

		if (image.width > 0 && image.height > 0)
		{
			flag = true;
			if (image.width/image.height >= intLargeImgWidth/intLargeImgHeight)
			{
				if (image.width > intLargeImgWidth)
				{  
					ImgD.width = intLargeImgWidth;
					ImgD.height = (image.height * intLargeImgWidth)/image.width;
				} 
				else
				{
					ImgD.width = image.width;  
					ImgD.height = image.height;
				}

				if (intAlfFlag = 0 )
				{
					ImgD.alt = "Actual size:" + image.width + "×" + image.height + ",点击查看原始图";
				}
			}
			else
			{
				if (image.height > intLargeImgHeight)
				{  
					ImgD.height = intLargeImgHeight;
					ImgD.width = (image.width * intLargeImgHeight)/image.height;     
				}
				else
				{
					ImgD.width = image.width;  
					ImgD.height = image.height;
				}
				
				if (intAltFlag = 0 )
				{
					ImgD.alt = "Actual size:" + image.width + "×" + image.height+ ",点击查看原始图";
				}
			}
		}
	}
	
	
	function isEmail(vEMail)
	{
		var regInvalid=/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/;
		var regValid=/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/;
		return (!regInvalid.test(vEMail)&&regValid.test(vEMail));
	}
	
	 
	  /* MOUSER滑过变色 开始 */
		function MMouseON(t)
		{
			t.style.backgroundColor='#E7E9E9';
			return;
		}
	
		function MMouseOFF(t)
		{
			t.style.backgroundColor='';
			return;
		}	
		/* MOUSER滑过变色 结束 */