﻿function check()
{
if(document.getElementById("ctl00_ContentPlaceHolder1_txtUserName").value=="")
{
 alert("请输入您的姓名");
 document.getElementById("ctl00_ContentPlaceHolder1_txtUserName").focus();
 return false;
}
if(document.getElementById("ctl00_ContentPlaceHolder1_txtTitle").value=="")
{
 alert("请输入标题");
 document.getElementById("ctl00_ContentPlaceHolder1_txtTitle").focus();
 return false;
}
if(document.getElementById("ctl00_ContentPlaceHolder1_txtContent").value=="")
{
 alert("请输入内容");
 document.getElementById("ctl00_ContentPlaceHolder1_txtContent").focus();
 return false;
}
return true;
}


function save()
{
    window.external.AddFavorite('http://www.xzgeely.com/','鑫众捷泰汽车有限公司');
}

function showsub(tname,cur,tabnumber)
{
	for (i = 0;i<tabnumber;i++)
	{
		document.getElementById(tname+"_"+i).style.display = "none";
	}
	document.getElementById(tname+"_"+cur).style.display ="block";
}
      
        function play_images(pics, links, texts,picwidth,picheight,textheight)
        {
            var focus_width = picwidth;
            var focus_height = picheight;
            var text_height = textheight;
            var swf_height = focus_height + text_height;
            
            document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
            document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://xzgeely.com/js/flashplayer.swf"><param name="quality" value="high"><param name="bgcolor" value="#F5F5F5">');
            document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
            document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
            document.write('<embed wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F5F5F5" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
            document.write('</object>');
        } 
function menuclear()
{ if (event.toElement.tagName!="FONT")
   {
      menu1.style.display='none';         
   }
}
function hide()
{menu1.style.display='none';}

function displaySubMenu(li) {
            var subMenu = li.getElementsByTagName("ul")[0];
            subMenu.style.display = "block";
            document.getElementById("t").style.display="none";
            document.getElementById("s").style.display="block";
            document.getElementById('menu1').style.display='none'
        }
        function hideSubMenu(li) {
            var subMenu = li.getElementsByTagName("ul")[0];
            subMenu.style.display = "none";
            document.getElementById("t").style.display="block";
            document.getElementById("s").style.display="none";
        }