
//在线开户用户使用,展开iframe中的内容
function resizeIframe() {
try{
	// Must launched on the body onload event handler for IE
	// Use document.documentElement if you are in Compat mode
	i = parent.document.getElementById(window.name)
	iHeight = document.body.scrollHeight
	if(iHeight<560) iHeight=560
	i.style.height = iHeight + 5 + "px"
}catch(e){}
}

function fPopUpCalendarDlg(ctrlobj)
{
	showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
	showy = event.screenY - event.offsetY + 18; // + deltaY;
	newWINwidth = 210 + 4 + 18;
        tt1="px; status:no; directories:yes;scrollbars:no;Resizable=no;"  ;
        tt2="dialogWidth:204px; dialogHeight:210px; dialogLeft:";
	retval = window.showModalDialog(appRoot+"/pub/CalendarDlg.htm", "", tt2+showx+"px; dialogTop:"+showy+tt1);
	if( retval != null ){
		ctrlobj.value = retval;
	}else{
		//alert("canceled");
	}
}
function KeyDown(){ 
//屏蔽鼠标右键、Ctrl+n、shift+F10、F5刷新、退格键
//alert("ASCII代码是："+event.keyCode);
	// Added by yxb 2006-07-10 屏蔽状态栏LINK信息
	shieldstatus();
	// Added End
	
	if(event.button!=1){
		return false;
	}
  if ((window.event.altKey)&&
      ((window.event.keyCode==37)||   //屏蔽 Alt+ 方向键 ←
       (window.event.keyCode==39))){  //屏蔽 Alt+ 方向键 →
     event.returnValue=false;
	 return false;
     }
  if ((event.keyCode==8)  ||                 //屏蔽退格删除键
      (event.keyCode==116)||                 //屏蔽 F5 刷新键
      (event.keyCode==112)||                 //屏蔽 F1 刷新键
      (event.ctrlKey && event.keyCode==82)){ //Ctrl + R
     event.keyCode=0;
     event.returnValue=false;
	 return false;
     }
  if ((event.ctrlKey)&&(event.keyCode==78))   //屏蔽 Ctrl+n
  {   event.returnValue=false;
	  return false;  
  }
  if ((event.shiftKey)&&(event.keyCode==121)) //屏蔽 shift+F10
  {   event.returnValue=false;
  	  return false;
  }
  if (window.event.srcElement.tagName == "a" && window.event.shiftKey) {
      window.event.returnValue = false;  //屏蔽 shift 加鼠标左键新开一网页
	  return false;	  
  }
  if ((window.event.altKey)&&(window.event.keyCode==115)){ //屏蔽Alt+F4
      return false;}
} 


// Modified by yxb 2006-07-10
// 抓取鼠标事件
if (window.Event) 
  document.captureEvents(Event.MOUSEUP); 
 
function nocontextmenu() 
{
 event.cancelBubble = true
 event.returnValue = false;
 
 return false;
}
 
function norightclick(e) 
{
 // Added by yxb 2006-07-10
 if(event.srcElement.tagName=="A" || event.srcElement.tagName=="a"){
    window.status=event.srcElement.innerText 
}
// Added End

 if (window.Event) 
 {
  if (e.which == 2 || e.which == 3)
   return false;
 } else if (event.button == 2 || event.button == 3) {
   event.cancelBubble = true
   event.returnValue = false;
   return false;
  }
 
}
 
// added by yxb 2006-07-10
// 用户点击链接时不显示状态栏LINK信息

//屏蔽浏览器状态栏信息
// This function is Added by yxb 2006-07-10
function shieldstatus(e){ 
 if(event.srcElement.tagName=="A" || event.srcElement.tagName=="a"){//如果触发函数的对象是链接 
	//设置状态栏的显示为链接的文本 
    window.status=event.srcElement.innerText 
	} 
}

document.oncontextmenu = nocontextmenu;  // for IE5+
document.onmousedown = norightclick;  // for all others

// Added by yxb 2006-07-10
document.onmouseover = shieldstatus;
document.onmousemove = shieldstatus;

document.onmouseout  = shieldstatus;
document.onmouseup  = shieldstatus;


 

