removed not necessary error alert (which caused a problem in IE)