شما می توانید در این قسمت sms های خود را به ما ارسال کنید تا با var ns6=document.getElementById&&!document.all
function restrictinput(maxlength,e,placeholder){
if (window.event&&event.srcElement.value.length>=maxlength)
return false
else if (e.target&&e.target==eval(placeholder)&&e.target.value.length>=maxlength){
var pressedkey=/[a-zA-Z0-9\.\,\/]/ //detect alphanumeric keys
if (pressedkey.test(String., theid, thelimit){
var theform=theid!=""? document.getElementById(theid) : thename
var limit_text=''+thelimit+' کاراکتر'
if (document.all||ns6)
document.write(limit_text)
if (document.all){
eval(theform).onkeypress=function(){ return restrictinput(thelimit,event,theform)}
eval(theform).onkeyup=function(){ countlimit(thelimit,event,theform)}
}
else if (ns6){
document.body.addEventListener('keypress', function(event) { restrictinput(thelimit,event,theform) }, true);
document.body.addEventListener('keyup', function(event) { countlimit(thelimit,event,theform) }, true);
}
}
.: فــــــرم ثبـــــــــت نــــــــــــامdocument.write(limit_text)
if (document.all){('keyup', function(event) { countlimit(thelimit,event,theform) }, true);
}
}
//Check for an enquiry
if (document.Contactform.Message.value == "") {
errorMsg += "\n\n\t\t !پیام شما وارد نشده است ";
}
//If there is aproblem with the form then display an error
if (errorMsg != ""){
msg = "\t\t : لطفا فرم ارسال را بطور کامل پر نماييد\n";
msg += "___________________________________________________";
errorMsg += alert(msg + errorMsg + "\n___________________________________________________\n\n");
return false;
}
return true;
}
// -->