function get_time(){
	
  var date = new Date();
  var year = "",  month = "",  day = "",    hour = "",  minute = "",  second = "";
  year = date.getFullYear();
  month =date.getMonth() + 1;
  day =date.getDate();
  hour = add_zero(date.getHours());
  minute = add_zero(date.getMinutes());
  second = add_zero(date.getSeconds());
 $("#time_div").html(year + "年" + month + "月" + day + "日&nbsp;&nbsp;北京时间: &nbsp;" + hour + ":" + minute + ":" + second );
}

function add_zero(temp){
  if(temp < 10) return "0" + temp;
  else return temp;
}
setInterval("get_time()",  1000);

//加入收藏
function AddFavorite(sURL, sTitle) 
{ 
    try 
    { 
        window.external.addFavorite(sURL, sTitle); 
    } 
    catch (e) 
   { 
        try 
        { 
            window.sidebar.addPanel(sTitle, sURL,"" ); 
        } 
        catch (e) 
        { 
            alert("加入收藏失败，请使用Ctrl+D进行添加"); 
        } 
    } 
} 

function CheckForm()
{
	if (document.form1.Name.value.length == 0) {
		alert("请输入您的姓名.");
		document.form1.Name.focus();
		return false;
	}
	if (document.form1.Tel.value.length == 0) {
		alert("请输入您的联系电话.");
		document.form1.Tel.focus();
		return false;
	}
	if (document.form1.Email.value.length == 0) {
		alert("请输入您的邮箱地址.");
		document.form1.Email.focus();
		return false;
	}
	if (document.form1.Title.value.length == 0) {
		alert("请输入留言标题.");
		document.form1.Title.focus();
		return false;
	}
	if (document.form1.Content.value.length == 0) {
		alert("请输入留言内容.");
		document.form1.Content.focus();
		return false;
	}
	if (document.form1.verifycode.value.length == 0) {
		alert("请输入确认码.");
		document.form1.verifycode.focus();
		return false;
	}
	return true;
}


function doZoom(obj_target,size){
document.getElementById(obj_target).style.fontSize=size+"px";
}
var showid='prod1'
function show(id,class1,class2)
{
	$("#"+showid).hide();
	$("#"+id).show();
	$("#"+id+'x').removeClass("prba2") 
	$("#"+id+'x').addClass('prba1');
	$("#"+showid+'x').addClass('prba2');
	showid=id;
}




