﻿function Include(filePath)
{
	document.write("<script type='text/javascript' src='"+filePath+"'></script>");
}
Include('/jscript/jquery.min.js');

function Goto()
{
	window.location.href = window.location.href.toLowerCase();
}

//选择框
function selectobj( obj , val )
 {
	obj.each(function(i){
		if($(this).val() == val)
		{
			obj[i].selected = true;
		}
	})
}

function show1()
{
	$('#dl1').css({'display':''});
	$('#dl2').css({'display':'none'});
}
function show2()
{
	$('#dl1').css({'display':'none'});
	$('#dl2').css({'display':''});
}

function checksubmit(txt, form)
{
	if($.trim(txt.val()) == '')
	{
		alert('不能为空。');
		txt[0].focus();
	}
	else
	{
		form.submit();
	}
}

function AutoScroll(obj){
        $(obj).find("ul:first").animate({
                marginTop:"-25px"
        },500,function(){
                $(this).css({marginTop:"0px"}).find("li:first").appendTo(this);
        });
}
