﻿function view(viewid){              
  if (viewid.style.display=="none")
     {
	 viewid.style.display="";
 }
    else
     {
	 viewid.style.display="none";
	 }
}
function resizepic(thispic)
{
if(thispic.width>600) thispic.width=600;
}

function resizepic900(thispic)
{
if(thispic.width>900) thispic.width=900;
}


<!--
function checkdataA() {

if(  addform.content.value =="" || addform.content.value.length<5 || addform.content.value.length>500) {
alert("\发表评论出错，下面是产生错误的可能原因：\n\n·内容必须大于5位字符，小于500位字符！")
document.addform.content.focus();
return false;
}
if( addform.CheckCode.value.length<5 || addform.CheckCode.value.length>7 ) {
alert("\发表评论出错，下面是产生错误的可能原因：\n\n·请输入6位验证码")
document.addform.CheckCode.focus();
return false;
}
return true;
}
function isNumberString (InString,RefString)
{
if(InString.length==0) return (false);
for (Count=0; Count < InString.length; Count++)  {
	TempChar= InString.substring (Count, Count+1);
	if (RefString.indexOf (TempChar, 0)==-1)  
	return (false);
}
return (true);
}
// -->
//验证码
function refreshimg(){document.all.checkcode.src='inc/CheckCode.asp?'+Math.random();}

