var dragcar; dragelem = { name: \'foo\', rowid: \'1\', kw: \'50\', convoy: \'1\' }; if(dragelem.name.length > 0) {