//	----------------------------------------------------------------------------------------
//	IE anker BUGfix: Product_box
//	----------------------------------------------------------------------------------------
function gotoUrlIE(url)
{
	IE = (document.all) ? 1 : 0
    if (IE) {
        gotoUrl(url);
    }
}
//	----------------------------------------------------------------------------------------
//	FLASH-ELEMENT FUNKTION (IE update) /AYA:27.06.2006
//	----------------------------------------------------------------------------------------

function CreateFlashControl(DivID, strHtml)
{
	var d = document.getElementById(DivID);
  	d.innerHTML = strHtml;
}
//	----------------------------------------------------------------------------------------
//	S Y S T E M F U N K T I O N E N
//	----------------------------------------------------------------------------------------


   // Eine Liste aller geöffneten Popups
   var PopupList = new Array();

   //
   // öffnen eines Fensters.
   //
	function js_popup(str_url, str_name, str_window, int_width, int_height, int_x, int_y, str_features)
	   	{
	    str_features = str_features + ',width=' + int_width + ',height=' + int_height;

		if (int_x=='false')
	   	  str_features = str_features + ',left=' + (screen.width/2 - int_width/2) + ',top=' + (screen.height/2 - int_height/2);
	    else
	   	  str_features = str_features + ',left=' + int_x + ',top=' + int_y;

		if (PopupList[str_window] && PopupList[str_window].closed == false)
			{
			obj_window = PopupList[str_window];
			obj_window.location.href = str_url;
			obj_window.resizeTo(int_width, int_height);
			}
		else
			{
			obj_window = window.open(str_url, str_window, str_features);
			PopupList[str_window] = obj_window;
			}
		obj_window.focus();
		}

   //
   // Rahmen um ein Feld an oder aus schalten.
   //
	function js_rahmen()
		{
		var element = window.event.srcElement;
		element.className = (element.className == 'rahmen_aus' ? 'rahmen_an' : 'rahmen_aus');
		}

   //
   // Macht alle Seitenobjekte für die Maus unselektierbar.
   //
	function js_make_unselect()
		{
		for (i=0; i < document.all.length; i++)
				document.all(i).unselectable = "on";
		}

   //
   // Hebt die Funktion js_make_unselect() fï¿½r gewï¿½nschte Objekte wieder auf.
   //
	function js_make_select(id)
		{
		eval(id).unselectable = "off";
		}

   //
   // Aktiviert oder deaktiviert eine Checkbox.
   //
	function js_checkbox_switch(name)
		{
		document.form.elements[name].checked = !document.form.elements[name].checked;
		}

   //
   // Aktiviert oder deaktiviert alle Checkboxen.
   //
	function js_checkboxen_alle(name)
		{
		for (var x = 0; x < document.forms[0].elements.length; x++)
			{
			var obj = document.forms[0].elements[x];

			if (obj.name != name)
				obj.checked = document.form.elements[name].checked;
			}
		}

   //
   // öffnet zwei Fenster gleichzeitig.
   //
	function js_zwei_frames(url_1, f_1, url_2, f_2)
	   {
	   	parent.frames[f_1].location.href=url_1;
	    parent.frames[f_2].location.href=url_2;
	   }


	/*
	 * Erzeugt JavaScript E-Mail-Links
	 */
	 function js_email_javascript(prefix, user, host, suffix)
	 	{
	 	document.write(prefix+user+'@'+host+suffix);
	 	}

