/*************************************************************************************************************************
* Funktion :	JavaScripts für die Xwire2 Application
*
* Erstellt :  30.01.2001 U.Eschler 
*-------------------------------------------------------------------------------------------------------------------------
* Änderungen:
* Datum   		Visum   Text
*	27.08.2001		ue		Alle funktionen für Xwire2 in diesem File vereint
*-------------------------------------------------------------------------------------------------------------------------
*/






/*************************************************************************************************************************
*	Funktion 		: openUrl(SubNavigation,DetailNavigation,mainFrame)
*	Bemerkungen	:	es werden 3 Parameter übergeben jeweils die neuen Framelocations der versch. Frames.	
*								wird als Framelocation 'no' übergeben, ändert das Frame nicht
*
*-------------------------------------------------------------------------------------------------------------------------
*/


	function openUrl(SubNavigation,DetailNavigation,mainFrame)
		{
		 if (SubNavigation != 'no')
		 	{
			parent.frames[1].location.href=SubNavigation
			}
		 if (DetailNavigation != 'no') 
		 	{
			parent.frames[2].location.href=DetailNavigation
			}
		 if (mainFrame != 'no') 
		 	{
			parent.frames[3].location.href=mainFrame
			}
		} 


		
		

/*************************************************************************************************************************
*	Funktion 		: div Funktionen zum Handeln zweier SelectBoxen und einer Auswahl
*	Bemerkungen	:	
*
*-------------------------------------------------------------------------------------------------------------------------
*/


	/* Funkion um ein selektierter Inhalt zu löschen */
	function deleteOption(object,index) 
		{
			object.options[index] = null;
		}
		
	/* Funkion um eine Option hinzuzufügen */	
	function addOption(object,text,value) 
		{
			var defaultSelected = true;
			var selected = true;
			var optionName = new Option(text, value, defaultSelected, selected)
			object.options[object.length] = optionName;
		}
		
	/* Die Funktion copySelected wird für das Verschieben der options einer SwappBox in die Andere*/	
		function copySelected(fromObject,toObject) {
		    for (var i=0, l=fromObject.options.length;i<l;i++) {
		        if (fromObject.options[i].selected)
		            addOption(toObject,fromObject.options[i].text,fromObject.options[i].value);
		    }
		    for (var i=fromObject.options.length-1;i>-1;i--) {
		        if (fromObject.options[i].selected)
		            deleteOption(fromObject,i);
		    }
				var xy = navigator.appVersion;
				xz = xy.substring(0,1);
				//if(navigator.appName == 'Netscape' && xz == 4)
				//{
				 //history.go(0);
				//}
		}
		


	/* Die Funktion markAll dient dazu alle Options einer SelectBox zu selectieren */
	function markAll(i, markObj)
		{
			for (var n=0; n < markObj.options.length; n++)
				{
					markObj.options[n].selected = true;
				}
		}	

		
		



