function fPopUpCalendarDlg(ctrlobj)
{
	showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
	showy = event.screenY - event.offsetY + 18; // + deltaY;
	newWINwidth = 210 + 4 + 18;

	retval = window.showModalDialog("/date/CalendarDlg.asp", "", "dialogWidth:197px; dialogHeight:250px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no; "  );
	if( retval != null ){
		ctrlobj.value = retval;
	}else{
		//alert("canceled");
	}
}
function GetObj(objName){
	if(document.getElementById){
		return eval('document.getElementById("' + objName + '")');
	}else if(document.layers){
		return eval("document.layers['" + objName +"']");
	}else{
		return eval('document.all.' + objName);
	}
}
function tab070824(Id,bgImg){
	if(Id>1&&Id<=4){
		for(var i=2;i<=4;i++){
			GetObj("tab070824_"+i).style.display = "none";
		}
		GetObj("tab070824_"+Id).style.display = "block";
		GetObj("jiandian-bg2").style.background = "url("+bgImg+")";
	}
} function Mforbidden()
    {
   document.getElementById('yd').style.top=document.documentElement.scrollTop;
return (event.srcElement.tagName!="A" && event.srcElement.tagName!="IMG");
    }
function show_yd() {
	document.documentElement.scrollTop=160;
document.documentElement.style.overflow="hidden";
document.body.style.filter="alpha(opacity=30)"; 
   document.getElementById('yd').style.display='';
document.body.onclick=Mforbidden;
}
function shows_yd() {
document.documentElement.style.overflow="";
document.body.style.filter="alpha(opacity=100)"; 
   document.getElementById('yd').style.display='none';
document.body.onclick='none';

}
function show_ydjd(jd) {
	qq=document.documentElement.scrollTop;
	document.documentElement.scrollTop=0;
document.documentElement.style.overflow="hidden";
   document.getElementById('yd').style.display='';
   if (jd!=null ){document.getElementById('KS_jdmc').value=jd;}
}
function shows_ydjd() {
	document.documentElement.scrollTop=qq;
document.documentElement.style.overflow="";
   document.getElementById('yd').style.display='none';

}
