//vfnm prototype extension
//add your custom methods here

if (typeof Prototype == 'undefined')
	alert("Prototype needed!");
if (Prototype.Version < "1.6")
	alert("Minimum Prototype version is 1.6.0 you are using " + Prototype.Version+" please upgrade");
	

	
//this method will return the element as a string with all its atributes
//init as usual $($('objectname')).DomElementToString(); return string
Element.addMethods({  
  DomElementToString: function(element) {
	element = $(element);
	$clone = element.cloneNode(true);

	$container = document.createElement("div");
	$container.insert($clone);	

	$string = $container.innerHTML;		
	return $string;

	}
});
