//////baidu.com google.com！如果从搜索引擎过来
//t=s.replace("com","net"); 
//document.location.href = "/";//用这个值，重定向到另一个页面
//setTimeout("document.location.href = t;",3000) 
//s=String(window.location.href); //作用，取得当前URL


//function bookmark(){
//window.external.AddFavorite("http://www.gongkao.net/", "中国最大-公务员考试试题-资料网站！")}

//s=String(document.referrer); //作用，取得来源URL
//if (s.indexOf("baidu.com")>0){
//window.alert("您将从百度搜索页面，来访问……\n\n中国最大-公务员考试试题-资料网站！\n\n立即收藏，方便下次访问。");
//bookmark();}

//if (s.indexOf("sogou.com")>0){
//window.alert("您将从搜狗搜索页面，来访问……\n\n中国最大-公务员考试试题-资料网站！\n\n立即收藏，方便下次访问。");
//bookmark();}

//if (s.indexOf("google.cn")>0){
//window.alert("您将从谷歌搜索页面，来访问……\n\n中国最大-公务员考试试题-资料网站！\n\n立即收藏，方便下次访问。");
//bookmark();}

//if (s.indexOf("soso.com")>0){
//window.alert("您将从S0S0搜索页面，来访问……\n\n中国最大-公务员考试试题-资料网站！\n\n立即收藏，方便下次访问。");
//bookmark();}

//s1=String(window.location.href); //作用，取得当前URL
//if (s1.indexOf("gongkao.net")>0){}else{
//document.write('<form name="myform" action="http://www.gongkao.net/" method="post"></form> ');
//document.myform.submit()}


//////窗口最大化显示！
//top.window.moveTo(0,0);
//if (document.all) {
//top.window.resizeTo(screen.availWidth,screen.availHeight);
//}
//else if (document.layers||document.getElementById) {
//if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
//top.window.outerHeight = screen.availHeight;
//top.window.outerWidth = screen.availWidth;
//}
//}
//////复制内容，自动加版权！
document.oncopy = function ()
	{  
	    setTimeout(function (){var text = clipboardData.getData("text");  
	            if (text)  
	            {  
	                text = text + "\r\n该文章转载自公考网："+location.href;  
	                clipboardData.setData("text", text);  
	            }  
	        },  100  
	    )  
	}  
//////<input title="点击复制文章网址，发给QQ/MSN好友共享" type=button value="点击复制文章网址，发给QQ/MSN好友共享" onClick="copyToClipBoard('09年山东公务员考试昨日结束 外地考生超四成')">
function copyToClipBoard(title,url)
	{
		var clipBoardContent = ''; 
		clipBoardContent += document.title;
		clipBoardContent += "\r\n" + location.href;
		window.clipboardData.setData("Text",clipBoardContent);
	}

//loading！onclick=loading();
document.writeln("<div id='loading' style='display:none;'>网页正加载中，请稍后……</div>");
function loading(){
  document.loading.style.display='block';
  setTimeout("document.loading.style.display='none';",3000);
}

//<script type="text/javascript">
//点击按钮弹出居中遮罩图层
//判断浏览器ie6创建的div样式和非ie6创建的div样式
//创建div
function showdiv(idname){
var isIE = (document.all) ? true : false;
var isIE6 = isIE && ([/MSIE (\d)\.0/i.exec(navigator.userAgent)][0][1] == 6);
var newbox=document.getElementById(idname);
newbox.style.zIndex="9999";
newbox.style.display="block"
newbox.style.position = !isIE6 ? "fixed" : "absolute";
newbox.style.top =newbox.style.left = "50%";
newbox.style.marginTop = - newbox.offsetHeight / 2 + "px";
newbox.style.marginLeft = - newbox.offsetWidth / 2 + "px";
var layer=document.createElement("div");
layer.id="layer";
layer.style.width=layer.style.height="100%";
layer.style.position= !isIE6 ? "fixed" : "absolute";
layer.style.top=layer.style.left=0;
layer.style.backgroundColor="#000";
layer.style.zIndex="9998";
layer.style.opacity="0.6";
document.body.appendChild(layer);
var sel=document.getElementsByTagName("select");

for(var i=0;i<sel.length;i++){
sel[i].style.visibility="hidden";}

function layer_iestyle(){
layer.style.width=Math.max(document.documentElement.scrollWidth, document.documentElement.clientWidth) + "px";
layer.style.height= Math.max(document.documentElement.scrollHeight, document.documentElement.clientHeight) + "px";}

function newbox_iestyle(){
newbox.style.marginTop = document.documentElement.scrollTop - newbox.offsetHeight / 2 + "px";
newbox.style.marginLeft = document.documentElement.scrollLeft - newbox.offsetWidth / 2 + "px";}

if(isIE){layer.style.filter ="alpha(opacity=60)";}
if(isIE6){
layer_iestyle();
newbox_iestyle();
window.attachEvent("onscroll",function(){newbox_iestyle();})
window.attachEvent("onresize",layer_iestyle)} 

 layer.onclick=function(){newbox.style.display="none";layer.style.display="none";for(var i=0;i<sel.length;i++){sel[i].style.visibility="visible";}}
newbox.onclick=function(){newbox.style.display="none";layer.style.display="none";for(var i=0;i<sel.length;i++){sel[i].style.visibility="visible";}}
}

document.writeln("<style>");
document.writeln(".hidden{display:none;}");
document.writeln("#area{font:100% 黑体;FONT-SIZE:15pt;width:680px; height:200px;padding:4px 10px 10px;background-color:#FFFFFF;border:6px solid #05549d;color:#333333;line-height:24px;text-align:left;}");
document.writeln("</style>");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("<div id='area' style='display:none;'><a href='/session.asp?Action=area&areaID=' style='TEXT-DECORATION:none;'>※</a>请选择公务员考试区域：<a href='/session.asp?Action=area&areaID=1'>中央机关公务员</a>　地方机关公务员　<div id='line' style='margin:5px;'></div>");
document.writeln("【华北地区】 <a href='/session.asp?Action=area&areaID=2'>北京市</a>　<a href='/session.asp?Action=area&areaID=4'>天津市</a>　<a href='/session.asp?Action=area&areaID=17'>河北省</a>　<a href='/session.asp?Action=area&areaID=20'>山西省</a>　<a href='/session.asp?Action=area&areaID=24'>内蒙古自治区</a><br>");
document.writeln("【东北地区】 <a href='/session.asp?Action=area&areaID=32'>辽宁省</a>　<a href='/session.asp?Action=area&areaID=19'>吉林省</a>　<a href='/session.asp?Action=area&areaID=31'>黑龙江省</a><br>");
document.writeln("【华东地区】 <a href='/session.asp?Action=area&areaID=3'>上海市</a>　<a href='/session.asp?Action=area&areaID=11'>江苏省</a>　<a href='/session.asp?Action=area&areaID=10'>浙江省</a>　<a href='/session.asp?Action=area&areaID=26'>安徽省</a>　<a href='/session.asp?Action=area&areaID=8'>福建省</a>　<a href='/session.asp?Action=area&areaID=21'>江西省</a>　<a href='/session.asp?Action=area&areaID=12'>山东省</a><br>");
document.writeln("【中南地区】 <a href='/session.asp?Action=area&areaID=16'>河南省</a>　<a href='/session.asp?Action=area&areaID=15'>湖北省</a>　<a href='/session.asp?Action=area&areaID=14'>湖南省</a>　<a href='/session.asp?Action=area&areaID=6'>广东省</a>　<a href='/session.asp?Action=area&areaID=9'>海南省</a>　<a href='/session.asp?Action=area&areaID=30'>广西自治区</a><br>");
document.writeln("【西南地区】 <a href='/session.asp?Action=area&areaID=5'>重庆市</a>　<a href='/session.asp?Action=area&areaID=13'>四川省</a>　<a href='/session.asp?Action=area&areaID=18'>贵州省</a>　<a href='/session.asp?Action=area&areaID=29'>云南省</a>　<a href='/session.asp?Action=area&areaID=25'>西藏自治区</a><br>");
document.writeln("【西北地区】 <a href='/session.asp?Action=area&areaID=27'>陕西省</a>　<a href='/session.asp?Action=area&areaID=28'>甘肃省</a>　<a href='/session.asp?Action=area&areaID=33'>青海省</a>　<a href='/session.asp?Action=area&areaID=22'>宁夏自治区</a>　<a href='/session.asp?Action=area&areaID=23'>新疆自治区</a><br>");
document.writeln("【港 澳 台】 台湾省　香港行政区　澳门行政区<br>");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("</div>");
//</script>
