var isIE = (navigator.appName.indexOf('Explorer') >0); // Is browser IE???

function inArray(array,needle){ // Find needle in an array
	for (Index in array){
		if(array[Index] == needle){ 
			return true;
		}
	}	
	return false;
}
function Debug(Value){
	DebugWindow = window.open("","debug","width=400,height=400,resizable=no,scrollbars=yes");
	DebugWindow.document.writeln(Value);
}
