<!--
function check_tdate(odate){ 
 var checkArray= new Array() ;
 //nowArray    = odate.split(" ");
 checkArray    = odate.split("-"); 
 checkDate   = new  Date(checkArray[0],checkArray[1],checkArray[2]);
 
 var nowTime   = new Date();// 现在时间
 var the_year  = nowTime.getYear(); 
 var the_month = nowTime.getMonth() + 1; 
 var the_day   = nowTime.getDate();
 nowTime    = new  Date(the_year,the_month,the_day); 
 
 var thesecond = 24 * 60 * 60 *1000 ; 
 var diffTime    = (nowTime - checkDate)/thesecond;//计算天数
 if (diffTime>0)
 {
 myreturn = '<div id=alert><span class=f14>本信息已经过期!可选择以下操作:</span><br />·点击查看最新<a href=http://www.520746.com>永州生活网</a>信息<br />·<a href=http://www.520746.com/post.html>免费发布生活</a>信息</div>'; //
 }
 else if (diffTime==0)
 {
 myreturn = '今天到期了啊';
 }
 else
  {
 diffTime=0-diffTime;
 myreturn = '还有'+diffTime+'天';
 }
 //alert(myreturn); 
document.write(''+myreturn+'')
}

//手机
function callclip(param)
{
    var txt = document.body.createTextRange();
    txt.moveToElementText(cresult);
    txt.select();
    txt.execCommand('Copy');
}

function DrawImage(ImgD,FitWidth,FitHeight){
	var image=new Image();
	image.src=ImgD.src;
	if(image.width>0 && image.height>0){
		if(image.width/image.height>= FitWidth/FitHeight){
			if(image.width>FitWidth){
				ImgD.width=FitWidth;
				ImgD.height=(image.height*FitWidth)/image.width;
			}else{
				ImgD.width=image.width;
				ImgD.height=image.height;
			}
		} else{
			if(image.height>FitHeight){
				ImgD.height=FitHeight;
				ImgD.width=(image.width*FitHeight)/image.height;
			}else{
				ImgD.width=image.width;
				ImgD.height=image.height;
			}
		}
	}
}

function ShowTel ()
{
  document.getElementById("ShowTel").style.display = "none";
}

function CreateInitAjax ()
{
    if ( window.ActiveXObject ) { xmlHttp = new ActiveXObject ( "Microsoft.XMLHTTP" ) ; }

    if ( window.XMLHttpRequest ) { xmlHttp = new XMLHttpRequest ( ) ; }

    return xmlHttp ;
}

function MyOnchange ( Url , ObjShow )
{
    var Ajax = CreateInitAjax () ;
	document.getElementById("ShowTel").style.display = "block";
	document.getElementById("ShowTel").innerHTML="<ul><li>正在加载，请稍候</li></ul>";
    Ajax.open ( "GET" , Url , true ) ;
    Ajax.onreadystatechange = function ( ) { if ( Ajax.readyState == 4 && Ajax.status == 200 ) ObjShow.innerHTML = Ajax.responseText ; }
    Ajax.send ( null ) ;
}

// -->
