//首页div变幻
function changeDiv(objID, cla, childs)
{
    var obj = $(objID);
    var objDiv = $('.'+childs);
    obj.parent().children().each(function(i){
        if(this == objID)
        {
            $(this).addClass(cla);
            objDiv.eq(i).css({display:'block'});
        }
        else
        {
            $(this).removeClass(cla);
            objDiv.eq(i).css({display:'none'});
        }
    });
}

//表单验证
function checkorder() {
    if (document.order.lyname.value==""){
		window.alert("请您填写联系人 ！");
		document.order.lyname.focus();
		return false;
	}

    if (document.order.phone.value==""){
		window.alert("请您填写联系电话 ！");
		document.order.phone.focus();
		return false;
	}

    if (document.order.email.value==""){
		window.alert("请您填写电子邮箱 ！");
		document.order.email.focus();
		return false;
	}

    if (document.order.address.value==""){
		window.alert("请您填写详细地址 ！");
		document.order.address.focus();
		return false;
	}

    if (document.order.title.value==""){
		window.alert("请您填写主题 ！");
		document.order.title.focus();
		return false;
	}

    if (document.order.text.value==""){
		window.alert("请您填写内容 ！");
		document.order.text.focus();
		return false;
	}

    return true;
}
//弹出层显示网页大图
function showBigs(types, contents)
{
    showWin(types,contents,'',600,500);
}
function showHddenObj(thisObj, showObj, allObj)
{
    $(thisObj).parent().children("h2").removeClass("h2First");
    $(thisObj).addClass("h2First");
    $(allObj).css({display:"none"});
    $(showObj).css({display:"block"});
}