﻿//window.ClearEvent=function()
//{
//event.cancelBubble=false;var sSrcTagName=event.srcElement.tagName.toLowerCase();
//return (sSrcTagName=="textarea" || sSrcTagName=="input" || sSrcTagName=="select");
//}
//window.ClearKey=function()
//{
//event.cancelBubble=false;var iKeyCode=event.keyCode;return !(iKeyCode==78 && event.ctrlKey);
//}
//with (window.document)
//{
//oncontextmenu=onselectstart=ondragstart=window.ClearEvent;onkeydown=window.ClearKey;
//}
//window.status="中国电力建设企业协会网上申报系统";
//var message="";

//function clickIE() {if (document.all) {(message);return false;}}
//function clickNS(e) {if 
//(document.layers||(document.getElementById&&!document.all)) {
//if (e.which==2||e.which==3) {(message);return false;}}}
//if (document.layers) 
//{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
//else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
//document.oncontextmenu=new Function("return false")


//if(navigator.appName=="Microsoft Internet Explorer")
//{
//    if(navigator.appVersion.match(/7./i)=='7.') 
//    {
//        if(screen.width>=1024)
//        {
//        }
//        else
//        {
//        alert("建议使用1024*768以上分辨率！");
//        }
//    }
//    else
//    {
//    alert("建议使用IE7.0浏览器！");
//    }
//}
//else
//{
//    alert("建议使用IE7.0浏览器！");
//}

function   textCounter(field,maxlimit)
{ 
    if  (document.getElementById(field).value.length > maxlimit)
    {
          alert('您输入的字符数超过了文本框的最大限制');
    }
}   
      


