	function LatinToArabic()	{		theForm = self.document.input;		theValue = theForm.latin.value;				theNumber = 0;		theTempValue = 0;		theNewValue = 0;				for(i=0;i<theValue.length;i++)		{			switch (theValue[i])			{				case 'M': theNewValue = 1000; break;				case 'D': theNewValue = 500; break;				case 'C': theNewValue = 100; break;				case 'L': theNewValue = 50; break;				case 'X': theNewValue = 10; break;				case 'V': theNewValue = 5; break;				case 'I': theNewValue = 1; break;				default:					alert('Falsche Zahlzeichen verwendet!');					return;							}	// switch						if (theTempValue == 0)				{}			else if (theTempValue >= theNewValue)			{				isMore = (theTempValue == theNewValue);								theNumber = theNumber + theTempValue;			}	// else if			else if (isMore)			{				alert('Falsche Zahlzeichen verwendet!');				return;			}	// else if			else										theNumber = theNumber - theTempValue;							theTempValue = theNewValue;		}	// for				theForm.arabic.value = theNumber + theTempValue;	}	// LatinToArabic	function ArabicToLatin()	{		theForm = self.document.input;		x = parseInt(theForm.arabic.value);				if ((x < 1)||(x >= 4000))		{			alert('Bitte nur Zahlen zwischen 0 und 4000 eingeben!');			return;		}	// if				the1000er = Math.floor(x/1000);		the100er = Math.floor((x%1000)/100);		the10er = Math.floor((x%100)/10);		the1er = x%10;				switch(the1000er)		{			case 1: theNumber = "M"; break;			case 2: theNumber = "MM"; break;			case 3: theNumber = "MMM"; break;			default: theNumber = ""; break;		}	// switch		switch(the100er)		{			case 1: theNumber += "C"; break;			case 2: theNumber += "CC"; break;			case 3: theNumber += "CCC"; break;			case 4: theNumber += "CD"; break;			case 5: theNumber += "D"; break;			case 6: theNumber += "DC"; break;			case 7: theNumber += "DCC"; break;			case 8: theNumber += "DCCC"; break;			case 9: theNumber += "CM"; break;		}	// switch		switch(the10er)		{			case 1: theNumber += "X"; break;			case 2: theNumber += "XX"; break;			case 3: theNumber += "XXX"; break;			case 4: theNumber += "XL"; break;			case 5: theNumber += "L"; break;			case 6: theNumber += "LX"; break;			case 7: theNumber += "LXX"; break;			case 8: theNumber += "LXXX"; break;			case 9: theNumber += "XC"; break;		}	// switch				switch(the1er)		{			case 1: theNumber += "I"; break;			case 2: theNumber += "II"; break;			case 3: theNumber += "III"; break;			case 4: theNumber += "IV"; break;			case 5: theNumber += "V"; break;			case 6: theNumber += "VI"; break;			case 7: theNumber += "VII"; break;			case 8: theNumber += "VIII"; break;			case 9: theNumber += "IX"; break;		}	// switch				theForm.latin.value = theNumber;			}	// ArabicToLatin
