Thank you Pedro,
I did the uncheking boxes, I hope that at list the error massage woul'nt show now.
This is the only code I have added:
function def(){
document.getElementById("lookupfieldname").setAttribute("defaulttype", "2");
// default type - contact entity
}
Do you think it can be related?
Thank you again.