x6.uniqueId
Generates a random number between 1 and 1,000,000 that is
not being used as the ID for any DOM object. Useful for
generating unique and content-free Id's for DOM objects.
Example usage would be:
var x = document.createElement('div');
x.id = x6.uniqueId();
id - returns the id
uniqueId: function() {
var retval = 0;
while( $('#'+retval).length > 1 || retval==0) {
var retval=Math.floor(Math.random()*1000000);
}
return retval;
},