function CancelRightMouseDown()
{
     if(event.button==2)
		{	
			if(!window.RightMouseDownFun){//如果不存在右键事件处理函数，禁止右键快捷菜单
				//alert(location.href);//测试用
				//location.reload();
				document.oncontextmenu=Function("return false;");
			}
			else RightMouseDownFun();
		}
}

function NewWin(URL,Option)
{
	window.open(URL,"","directories=no,localtion=no, menubar=no, status=no,toolbar=no,scrollbars=yes,Resizeable=no,"+Option);
	//window.open(URL,"",Option);
}

function ShowDlg(FileName,WINname,WINwidth,WINheight){
	
	var features =
		'dialogWidth:'  + WINwidth  + 'px;' +
		'dialogHeight:' + WINheight + 'px;' +
		'directories:no; localtion:no; menubar:no; status=no; toolbar=no;scrollbars:yes;Resizeable=no;help=no';
		
	//return window.showModelessDialog(FileName, WINname , features );	
	window.showModelessDialog(FileName, WINname , features );	
}

document.onmousedown=CancelRightMouseDown;
document.onselect=new Function("return false;");

if(!(top.location.href=="http://www.tongxinyuan.com"||top.location.href=="http://www.tongxinyuan.com/")) 
top.location.href="about:blank";