//title
fieldlimiter.setup({
thefield: document.getElementById("title"),
maxlength: 90,
statusids: ["title-limit"],
onkeypress:function(maxlength, curlength){
if (curlength<maxlength)
this.style.border="1px solid #8C8C8C"
else
this.style.border="1px solid red"
}
})

//post
fieldlimiter.setup({
thefield: document.getElementById("post"),
maxlength: 1500,
statusids: ["post-limit"],
onkeypress:function(maxlength, curlength){
if (curlength<maxlength)
this.style.border="1px solid #8C8C8C"
else
this.style.border="1px solid red"
}
})

//autor
fieldlimiter.setup({
thefield: document.getElementById("autor"),
maxlength: 50,
statusids: ["autor-limit"],
onkeypress:function(maxlength, curlength){
if (curlength<maxlength)
this.style.border="1px solid #8C8C8C"
else
this.style.border="1px solid red"
}
})

//email
fieldlimiter.setup({
thefield: document.getElementById("email"),
maxlength: 32,
statusids: ["email-limit"],
onkeypress:function(maxlength, curlength){
if (curlength<maxlength)
this.style.border="1px solid #8C8C8C"
else
this.style.border="1px solid red"
}
})

//contacts
fieldlimiter.setup({
thefield: document.getElementById("contacts"),
maxlength: 400,
statusids: ["contacts-limit"],
onkeypress:function(maxlength, curlength){
if (curlength<maxlength)
this.style.border="1px solid #8C8C8C"
else
this.style.border="1px solid red"
}
})
