try
x.attachEvent=("onclick",function(){selectemployee('form1','people'+count,'operator'+count,'','../../')});