﻿/***********************************/

window.onerror = function(){return true;}

/***********************************
document.onmousedown=function(e){

	if (typeof document.body.style.MozUserSelect!="undefined") {
		document.body.style.MozUserSelect="none";
	}

	if (document.all) {
		if (event.button==0||event.button==2) {
		}
	}


	if (e!=undefined) {
		if (e.which == 3) {
		}
	}

}

document.oncontextmenu = function(){return false;}
document.onselectstart = function(){return false;}
document.ondragstart   = function(){return false;}
document.oncopy        = function(){return false;}
document.onpaste       = function(){return false;}
document.oncut         = function(){return false;}

************************************/


function onloginPlatform(){
	var df = document.loginPlatform;
	var uid= df.uid.value;
	var pwd= df.pwd.value;
	if(uid=="" || pwd==""){
		alert('用户名或密码不能为空，请重新输入。');
	}else{
		alert('用户名或密码无效，请重新输入。');
	}
	return false;

}
 
function onSearch(){
     var df = document.searchForm;
     var word=df.Keyword.value;
     if(word=="" || word=="搜索" || word=="请输入关键字"){
        setSearchText("请输入关键字");
     return false;
     }
     df.searchContent.value=escape(word);
     return true;
 }
 
function setSearchText(word){
    var df = document.searchForm;
    df.Keyword.value=word;
}

function setDefaultText(){
    var df = document.searchForm;
    if(df.Keyword.value==""){
        setSearchText("搜索");
    }
}

