/*

var omitformtags=["input", "textarea", "select"];
function disableselect(e){for (i = 0; i < omitformtags.length; i++){if (omitformtags[i]==(e.target.tagName.toLowerCase()))return;}return false}
function reEnable(){return true}document.write('<div style="position:absolute;visibility:visible;top:-3000px;left:-3000px;"><form name="_hiddenFrom"><input type="text" value="喔喔!你按Ctrl-A喔!" name="_hiddenText"></form></div>');
if (typeof document.onselectstart=="undefined"){document.onmousedown=disableselect;document.onmouseup=reEnable;}else{document.onmousedown=new Function("return false");document.onmouseup=new Function("return false");}
document.onselectstart=new Function("return false");document.onselect=new Function("return false");document.oncontextmenu=new Function("return false");onload=document._hiddenFrom._hiddenText.focus();
*/


/*



*/

//990917,frank,add
//新的鎖右鍵
function clickIE4(){
        if (event.button==2){
                return false;
        }//end if
}//end func

function clickNS4(e){
        if (document.layers||document.getElementById&&!document.all){
                if (e.which==2||e.which==3){
                        return false;
                }//end if
        }//end if
}//end func

function OnDeny(){
        if(event.ctrlKey || event.keyCode==78 && event.ctrlKey || event.altKey || event.altKey && event.keyCode==115){
                return false;
        }//end if
}


if (document.layers){
        document.captureEvents(Event.MOUSEDOWN);
        document.onmousedown=clickNS4;
        document.onkeydown=OnDeny();
}else if (document.all&&!document.getElementById){
        document.onmousedown=clickIE4;
        document.onkeydown=OnDeny();
}//end if

//會造成google的產品內頁跑版
document.oncontextmenu=new Function("return false");

function disableselect(e){
//return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

function key(event){ 
	event=event || window.event;

	if(event.shiftKey){
		return false;
	}
	//禁止shift
	
	if(event.altKey){
		return false;
	}
	//禁止alt
	
	if(event.ctrlKey){
		return false;
	}
	//禁止ctrl

}

document.onkeydown=key;
