﻿$(function(){
//DD_belatedPNG.fix('*');
});

function tabTog(n)
{
$(".h_txt4b1b a").eq(n).css({background:"url("+ImageFolder+"bt02.gif) no-repeat 0px 0px",color:"#f6e5ce",fontWeight:"bold"}).siblings().css({background:"url("+ImageFolder+"bt02.gif) no-repeat 0px -42px",color:"#282828",fontWeight:"bold"});
$(".h_txt4b2bb").eq(n).show().siblings().hide();
$(".h_txt4b1b a").each(function(i){
	   $(this).mouseover(function(){
		   $(this).css({background:"url("+ImageFolder+"bt02.gif) no-repeat 0px 0px",color:"#f6e5ce",fontWeight:"bold"}).siblings().css({background:"url("+ImageFolder+"bt02.gif) no-repeat 0px -42px",color:"#282828",fontWeight:"bold"});
		   $(".h_txt4b2bb").eq(i).show().siblings().hide();
		   });
	   });
}

//加入收藏夹  格式 <a href="javascript:addFav()" class="navf2">添加收藏</a> 
function  addFav() {   
             if  (document.all) {   
                window.external.addFavorite(document.location.href, document.title);   
            }   
             else   if  (window.sidebar) {   
            window.sidebar.addPanel(document.title, document.location.href,  "" );   
            }   
        }   
		  
function TextBoxDefTxt(o,s){
	o.value=s;
	o.onfocus=function(){if(o.value==s){o.value=''}}
	o.onblur=function(){if(o.value==''){o.value=s}}
}

/**
 * 检查输入的邮箱格式是否正确
 * 输入:str  字符串
 * 返回:true 或 flase; true表示格式正确
 */
function checkEmail(str){
    if (str.match(/[A-Za-z0-9_-]+[@](\S*)(net|com|cn|org|cc|tv|[0-9]{1,3})(\S*)/g) == null) {
        return false;
    }
    else {
        return true;
    }
}
