<!--
//字号大小
function fontZoom(size)
{
document.getElementById('letter_content').style.fontSize=size+'px';
document.getElementById('letter_content').style.lineHeight='180%';
}

//收藏
function addFav(url,title)
{
window.external.addFavorite(url,title+' - 倾城(中国旗袍文化研究网)');
}

//复制地址
function copyUrl(url)
{
window.clipboardData.setData('text',url);
alert('地址已保存到剪贴板，您可以使用Ctrl+V粘贴在QQ或MSN中。');
}

//检测评论表单
function checkForm()
{
	if (document.formComment.name.value=="")
	{
	alert("姓名必须填写！");
	document.formComment.name.focus();
	return false;
	}

	if (document.formComment.content.value=="")
	{
	alert("评论内容必须填写！");
	document.formComment.content.focus();
	return false;
	}

	if (document.formComment.content.value.length>100)
	{
	alert("评论内容不能超过100字！");
	document.formComment.content.focus();
	return false;
	}
	return true;
}



//缩小超限图片
function changeImgSize()
{

var imgs,imgWidth
imgs=document.getElementById('letter_content').getElementsByTagName('img')
for (var i=0;i<imgs.length;i++)
{
  imgWidth=imgs[i].width
  if (imgWidth>700)
  {
  imgs[i].width=700;
  imgs[i].height=(imgs[i].height/imgWidth)*700;
  }
}
}
//-->