function toggle(o)
{	
	if(typeof(o)=='string') o=document.getElementById(o); 
	if(o.style.display=='none')
		o.style.display = '';
	else o.style.display = 'none';
}

function toggleBit(o)
{	
	o=document.getElementById('preview'); 
	o.style.value = 0;
}

function compareArrayIsEqual(arr1,arr2)
{
	if(arr1==null|arr2==null) return false;
	
	if(arr1.length==null|arr.length==null) return false;//kein array
	
	if(arr1.length!=arr2.length) return false;
	
	for(var i=0;i<arr1.length;i++)
	{
		if(arr1[i]!=arr2[i]) return false;
	}
	
	return true;
}