function openScript(url, width, height) {
var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=yes,status=no' );
}
function openwin(page,size)
{
window.open(page,"newuser","toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,"+ size);
}
public function HtmlOut(str)
'将文字转化为它的源代码格式
dim guest
if isnull(str) or str="" then
htmlOut=str
exit function
end if
guest=str
guest=Replace(Guest," "," ")
guest=Replace(Guest," ","`nbsp;")
Guest=server.htmlencode(Guest)
guest=Replace(Guest,"`nbsp;"," ")
guest=Replace(Guest,vbcrlf,"")
HtmlOut=guest
end function
%>
function checkform()
{
if(document.form.name.value==0){
alert('请填写姓名! Name?');
document.form.name.focus();
return false;}
if(document.form.said.value==0){
alert('发表的话题不能为空! Content?');
document.form.said.focus();
return false;}
if(document.form.name.value.length>8){
alert('姓名请控制在8个字内! Name document.form.name.focus();
return false;}
if(document.form.said.value.length>5000){
alert('发表的话题请控制在5000个字内 Content document.form.said.focus();
return false;}
if(document.form.mail.value.length>100){
alert('电子邮件请控制在100个字内! Mail document.form.mail.focus();
return false;}
if(document.form.url.value.length>100){
alert('主页地址请控制在100个字内! Homepage document.form.url.focus();
return false;}
}
function passw()
{
if (document.formp.password_m.value !=null && document.formp.repassword_m.value !=null && document.formp.password_m.value.length < 5 && document.formp.repassword_m.value.length < 5)
{
alert("没有输入密码或密码少于5位");
document.formp.password_m.focus();
return false;
}
if (document.formp.password_m.value != document.formp.repassword_m.value)
{
alert("两次密码输入不符");
document.formp.repassword_m.focus();
return false;
}
return true;
}