try
{
        parent.leftFrame.minut = 20*60;
}
catch(e){

}

function GoTo(url)
{
        window.location.href = url;
}


function onMenu(dname)
{
        var obj = document.getElementById(dname);
        
        if(obj.style.display == "")
        {
                DoItem(dname, 1);
                obj.style.display = "none";
        }else{
                DoItem(dname, 1);
                obj.style.display = "";       
        }
}

function DoItem(it, t)
{
        var obj = document.getElementById(it);
        if(obj==null)return;
        
        return;
        if(t==1)
        {
                for(var i=0; i<obj.HTMLElement.length; i++)
                {
                             alert(obj.HTMLElement[i].type);
                }
        }else{
        
        }
        ///////////
        return;
        
        if(t==1)
        {
                for(var i=0; i<=1000; i++)
                {
                        obj.style.filter="Alpha(Opacity=100, FinishOpacity=1, Style=1, StartX=100, StartY=0, FinishX=100, FinishY="+i/10+");"
                }
        }else{
                for(var i=1000; i<=1; i--)
                {
                        obj.style.filter="Alpha(Opacity=100, FinishOpacity=1, Style=1, StartX=100, StartY=0, FinishX=100, FinishY="+i/10+");"
                }
        }
}

function OnDiv(obj, t)
{
        if (t == 1)
        {
                obj.className = "menu_topic_o";
        }else{
                obj.className = "menu_topic";
        }
}

function allHidden()
{
        document.getElementById("z1").style.display = "none";
        document.getElementById("z3").style.display = "none";
        document.getElementById("z4").style.display = "none";
        document.getElementById("z6").style.display = "none";
        document.getElementById("z7").style.display = "none";
        document.getElementById("z8").style.display = "none";
        document.getElementById("z9").style.display = "none";
        document.getElementById("z10").style.display = "none";
        document.getElementById("z11").style.display = "none";
        document.getElementById("z12").style.display = "none";
}

function onMouseRow(obj, t)
{
        if (t == 1)
        {
                obj.style.background = "#D6D6D6";
                //obj.style.cursor = "hand";
        }else{
                obj.style.background = "#EFEFEF";
                obj.style.cursor = "default";
        }
}


function usereditform()
{
var forma=document.form1;
if (forma.UserQues.value==''){
alert('密码提示问题不能为空')
forma.UserQues.focus()
return false
}
if (forma.UserAnsw.value==''){
alert('密码回答答案不能为空')
forma.UserAnsw.focus()
return false
}
if (forma.UserMail.value==''){
alert('取回密码邮件设置不能为空')
forma.UserMail.focus()
return false
}
if (forma.BY.value==''){
alert('请选择生日年份')
forma.BY.focus()
return false
}
if (forma.BM.value==''){
alert('请选择生日月份')
forma.BM.focus()
return false
}
if (forma.BD.value==''){
alert('请选择生日日期')
forma.BD.focus()
return false
}
if (forma.Height.value==''){
alert('请输入你的身高')
forma.Height.focus()
return false
}
if (isNaN(forma.Height.value)){
alert('身高输入要为数字')
forma.Height.focus()
return false
}
if (forma.Weight.value==''){
alert('请输入你的体重')
forma.Weight.focus()
return false
}
if (isNaN(forma.Weight.value)){
alert('体重要为数字')
forma.Weight.focus()
return false
}
if (forma.BI0.value==''){
alert('请选择婚姻状况')
forma.BI0.focus()
return false
}
if (forma.BI1.value==''){
alert('请选择你的学历')
forma.BI1.focus()
return false
}
if (forma.BI2.value==''){
alert('请选择你的工作')
forma.BI2.focus()
return false
}
if (forma.BI3.value!=''){
  if (isNaN(forma.BI3.value)){
     alert('月薪要为数字')
     forma.BI3.focus()
     return false
  }
}
if (forma.BI4.value==''){
alert('请输入最少一个网络呼机')
forma.BI4.focus()
return false
}
if (forma.BI5.value==''){
alert('请输入你的电子邮件')
forma.BI5.focus()
return false
}
if (forma.Intro.value==''){
alert('请简短的写你的交友留言')
forma.Intro.focus()
return false
}
}
function selectAll()
{
	for(var d=0; d < document.form2.elements.length; d++)
	{
		if (document.form2.elements[d].type == "checkbox")
		{
			if (document.form2.elements[d].checked == false)
			{
				document.form2.elements[d].checked = true;
			}else{
				document.form2.elements[d].checked = false;
			}
		}
	}
}

<!--
function ShowImg(url)
{
var hplus = 30
if(window.navigator.userAgent.indexOf("SV1") != -1){hplus = hplus + 20;}
newwin = window.open("about:blank","","width=1,height=1,left=2,top=2")
newwin.document.write ('<html><title>View Image - 51windows.Net</title><head><meta http-equiv=Content-Type content="text/html; charset=gb2312"></head><body style="border:0px;margin:0px;" onkeydown=if(event.keyCode==27){window.close()}><center><img title="点击关闭窗口" onclick="window.close()" style="cursor:hand;" border="0" src="'+url+'" align="absmiddle" hspace="0" vspace="0" onload="self.resizeTo((this.offsetWidth+10),(this.offsetHeight+'+hplus+'));"></center></body></html>')
}
//-->

