function open_window(win_name,win_height,win_width){
window.open(win_name,"openner","height="+win_height+",width="+win_width+",toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no")
}

function na_select_form (fname, type_name) 
{
  document.forms[fname].elements[type_name].select()
  document.forms[fname].elements[type_name].focus()
}

function check()

{
if(document.userinfo.manager.value=="")
{
alert("用户名为空");
return false;
}

if(document.userinfo.newpin.value=="")
{
alert("密码不能为空");
return false;
}

if((document.userinfo.newpin.value)!=(document.userinfo.repassword.value))
{
alert("密码不匹配");
return false;
}

if(document.userinfo.content.value=="")
{
alert("签名不能为空");
return false;
}

if(document.userinfo.qq.value=="")
{
alert("QQ不能为空");
return false;
}
if(document.userinfo.email.value=="")
{
alert("EMAIL不能为空");
return false;
}
}


function ChgFontSize(n)
{
var styTxt=document.all('SPN_Content');
if(styTxt)styTxt.style.fontSize=n+'pt';
}

function button_form()
{
top.location=('index.asp?classid='+classid.value)
}

function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD")
source=source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}
