window["MzBrowser"] ={};
(function()
{
if(MzBrowser.platform) return;
var ua = window.navigator.userAgent;
MzBrowser.platform = window.navigator.platform;
MzBrowser.firefox = ua.indexOf("Firefox") > 0;
MzBrowser.opera = typeof(window.opera) == "object"
MzBrowser.ie = ! ("MSIE") > 0;
MzBrowser.mozilla = window.navigator.product == "Gecko";
MzBrowser.netscape = window.navigator.vendor == "Netscape"; safari = ua.indexOf("Safari") > - 1;
if(MzBrowser.firefox) var re = /Firefox(s|/)(d (.d )?)/
else if( MzBrowser.ie) var re = /MSIE( )(d (.d )?)/
else if(MzBrowser.opera) var re = /Opera(s|/)(d (.d )?)/ ;
else if(MzBrowser.netscape) var re = /Netscape(s|/)(d (.d )?)/
else if(MzBrowser.safari) var re = /Version(/)( d (.d )?)/
else if(MzBrowser.mozilla) var re = /rv(:)(d (.d )?)/
if("정의되지 않음" != typeof(re ) && re.test(ua))
MzBrowser.version =parseFloat(RegExp.$2)
}
)();
function upLoadKey(e, object)
{
if((document.all) ? true : false)
{
window.event.keyCode == 9 ? (window.event.returnValue = true) : (window.event.returnValue = false);
}
else
{
if(object.value == "" && typeof e.which == "number")e.preventDefault();
if(object.value != "") object.blur();
}
}
함수 버전(객체)
{
if(MzBrowser.firefox && MzBrowser.version == 2)object.blur();
}
functionclearValue(id)
{
var up = (typeof id == "string") ? document.getElementById(id) : id;
if (typeof up != "object")는 null을 반환합니다.
var tt = document.createElement("span");
tt.id = "__tt__";
up.parentNode.insertBefore(tt, up);
var tf = document.createElement("form");
tf.appendChild(위);
document.getElementsByTagName("body")[0].appendChild(tf);
tf.reset();
tt.parentNode.insertBefore(up, tt);
tt.parentNode.removeChild(tt);
tt = null;
tf.parentNode.removeChild(tf);
}
// 页face代码