function LinkCss()
{
	var css = "ff";
	if (navigator.appName.indexOf("Microsoft Internet Explorer") == 0 && navigator.appVersion.indexOf("MSIE 7.0") > 0)
	{
		css = "ie";
	}
	document.write('<link rel="stylesheet" href="css/' + css + '.1.css" type="text/css">');
}

function onkpNums(obj, e, dots, limit)
{
    if (obj.value.length == limit)
    {
        return false;
    }
    var key = window.event ? e.keyCode : e.which;
    if (dots && (key == 44 || key == 46))
    {
        return true;
    }
    if (key == 8 || key == 0)
    {
        return true;
    }
    var keychar = String.fromCharCode(key);
    reg = /\D/;
    return !reg.test(keychar);
}

function Limit(field, maxlen)
{
    if (field.value.length > maxlen)
    {
        field.value = field.value.substring(0, maxlen);
    }
}
