function text1_in(str) {
     d = document.getElementById("text1");
     d.innerHTML= '';
     d.innerHTML= str;
}

function text2_in(str) {
     d = document.getElementById("text2");
     d.innerHTML= '';
     d.innerHTML= str;
}

function text3_in(str) {
     d = document.getElementById("text3");
     d.innerHTML= '';
     d.innerHTML= str;
}

function text4_in(str) {
     d = document.getElementById("text4");
     d.innerHTML= '';
     d.innerHTML= str;
}


function Content_Buttons_Cancel_Edit()
{
	document.Content_Buttons.Content_Action.value = "cancel_edit";
	document.Content_Buttons.submit();
}

function Content_Buttons_Save()
{
	if (isHTMLMode) {
		alert("Please uncheck 'HTML'");
		return;
	}

	oDiv.innerHTML=oDiv.innerHTML.replace(/title=\"Sprache.*?\"/gi,"");
  oDiv.innerHTML=oDiv.innerHTML.replace(/onclick=object_selected=this;/gi,"");
	oDiv.innerHTML=oDiv.innerHTML.replace(/ondblclick=selectededit\(\);/gi,"");


  if (document.Content_Buttons.EDITARTICLE_freigeben_ab)
	{
	 datum=document.Content_Buttons.freigeben_ab_datum_jahr.options[document.Content_Buttons.freigeben_ab_datum_jahr.selectedIndex].value;
	 datum=datum+"-"+document.Content_Buttons.freigeben_ab_datum_monat.options[document.Content_Buttons.freigeben_ab_datum_monat.selectedIndex].value;
	 datum=datum+"-"+document.Content_Buttons.freigeben_ab_datum_tag.options[document.Content_Buttons.freigeben_ab_datum_tag.selectedIndex].value;
	 datum=datum+" "+document.Content_Buttons.freigeben_ab_uhrzeit.options[document.Content_Buttons.freigeben_ab_uhrzeit.selectedIndex].value;
	 document.Content_Buttons.EDITARTICLE_freigeben_ab.value=datum;

	 datum=document.Content_Buttons.entsperren_ab_datum_jahr.options[document.Content_Buttons.entsperren_ab_datum_jahr.selectedIndex].value;
	 datum=datum+"-"+document.Content_Buttons.entsperren_ab_datum_monat.options[document.Content_Buttons.entsperren_ab_datum_monat.selectedIndex].value;
	 datum=datum+"-"+document.Content_Buttons.entsperren_ab_datum_tag.options[document.Content_Buttons.entsperren_ab_datum_tag.selectedIndex].value;
	 datum=datum+" "+document.Content_Buttons.entsperren_ab_uhrzeit.options[document.Content_Buttons.entsperren_ab_uhrzeit.selectedIndex].value;
	 document.Content_Buttons.EDITARTICLE_entsperren_ab.value=datum;
	}

	if (document.Content_Buttons.Content_Edited_Article.value == -1) 
	{
		if (document.Content_Buttons.Content_Menu[0].checked)
		{
			hid_save();
    			document.Content_Buttons.Content_Action.value = "save_content";
    			document.Content_Buttons.EDITARTICLE_content.value = oDiv.innerHTML;
    			document.Content_Buttons.submit();
		}
		else 
		if  (document.Content_Buttons.Content_Menu_Name.value != '')
		{	
			hid_save();
    			document.Content_Buttons.Content_Action.value = "save_content";
    			document.Content_Buttons.EDITARTICLE_content.value = oDiv.innerHTML;
    			document.Content_Buttons.submit();
		}
		else alert('Please type a menu item name!');
	}
	else
	{
		hid_save();
		document.Content_Buttons.Content_Action.value = "save_content";
		document.Content_Buttons.EDITARTICLE_content.value = oDiv.innerHTML;
		document.Content_Buttons.submit();
	}
		
}

function Content_Buttons_Add()
{
	document.Content_Buttons.Content_Action.value = "add";
	document.Content_Buttons.submit();
}

function Content_Buttons_Save_As()
{
	document.Content_Buttons.Content_Action.value = "save_as";
	document.Content_Buttons.submit();
}

function Content_Buttons_Edit()
{
	document.Content_Buttons.Content_Action.value = "edit";
	document.Content_Buttons.submit();
}

function Content_Buttons_Delete()
{
	document.Content_Buttons.Content_Action.value = "delete";
	document.Content_Buttons.submit();
}


function Content_Buttons_History(article_id, app_path)
{
		window.open(app_path + 'ghosts/history.php?HISTORY_SECTION=article&HISTORY_ID=' + article_id);
}
//This are functions for box processing

function Content_Boxes_Buttons_History(box_id, app_path)
{
		window.open(app_path + 'ghosts/history.php?HISTORY_SECTION=box&HISTORY_ID=' + box_id);
}

function Content_Boxes_Buttons_Cancel_Edit()
{
	document.Content_Boxes_Buttons.Content_Boxes_Action.value = "cancel_edit";
	document.Content_Boxes_Buttons.submit();
}



function Content_Boxes_Buttons_Save()
{
 if (isHTMLMode) {
	alert("Please uncheck 'HTML'");
	return;
 }

oDiv.innerHTML=oDiv.innerHTML.replace(/title=\"Sprache.*?\"/gi,"");
oDiv.innerHTML=oDiv.innerHTML.replace(/onclick=object_selected=this;/gi,"");
oDiv.innerHTML=oDiv.innerHTML.replace(/ondblclick=selectededit\(\);/gi,"");


 hid_save();
 oDiv.innerHTML=oDiv.innerHTML.replace(/title=\"Sprache.*?\"/gi,"");

 ext_int_check();

 document.Content_Boxes_Buttons.BOXEDIT_article_id.value = "";
 document.Content_Boxes_Buttons.BOXEDIT_url.value = "";

 if (document.Content_Boxes_Buttons.BOXEDIT_box_type.selectedIndex == 0)	{
	document.Content_Boxes_Buttons.BOXEDIT_article_id.value = document.Content_Boxes_Buttons.BOXEDIT_article_id_show.value;
 }
 else {
	document.Content_Boxes_Buttons.BOXEDIT_url.value = document.Content_Boxes_Buttons.BOXEDIT_url_show.value;
 }

 document.Content_Boxes_Buttons.Content_Boxes_Action.value = "save_content";
 document.Content_Boxes_Buttons.BOXEDIT_description.value = oDiv.innerHTML;



 document.Content_Boxes_Buttons.submit();
}




function Content_Boxes_Buttons_Add()
{
	document.Content_Boxes_Buttons.Content_Boxes_Action.value = "add";
	document.Content_Boxes_Buttons.Content_Boxes_Edited_Box.value = "-1";
	document.Content_Boxes_Buttons.submit();
}


function Content_Boxes_Buttons_Delete($deleted_box)
{
	document.Content_Boxes_Buttons.Content_Boxes_Action.value = "delete";
	if ($deleted_box == '') $deleted_box = -1;
	document.Content_Boxes_Buttons.Content_Boxes_Edited_Box.value = $deleted_box;
	document.Content_Boxes_Buttons.submit();
}
function Content_Boxes_Buttons_Edit($edited_box)
{
	document.Content_Boxes_Buttons.Content_Boxes_Action.value = "edit";
	if ($edited_box == '') $edited_box = -1;
	document.Content_Boxes_Buttons.Content_Boxes_Edited_Box.value = $edited_box;
	document.Content_Boxes_Buttons.submit();
}

function Content_Boxes_Buttons_Search_Article()
{
	new_new3333=window.open("/ghosts/article_search.php?spezial_js=Content_Boxes_Buttons_Search_Article_Set",'new_new3333', 'directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=1,toolbar=0,width=980,height=650,left=10,top=30');
	new_new3333.focus();
}

function Content_Boxes_Buttons_Search_Article_Set(id)
{
  document.Content_Boxes_Buttons.BOXEDIT_article_id_show.value = id;
	int_box_link();
}

function Content_Boxes_Buttons_pdf()
{
	var props = 'status=yes,scrollBars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,width=800,height=500,top=100,left=100';
	select_doc = window.open('/ghosts/file.php?js_str=Content_Boxes_Buttons_pdf_now', 'select_doc', props);
	select_doc.focus();
}

function Content_Boxes_Buttons_pdf_now(url)
{
  url=url.replace(/\/\//gi, "\/");
  url=url.replace(/\/\//gi, "\/");
  url=url.replace(/\/\//gi, "\/");
  url=url.replace(/\/\//gi, "\/");

	document.Content_Boxes_Buttons.BOXEDIT_url_show.value=url;
	document.Content_Boxes_Buttons.BOXEDIT_article_id_show.value="";
	int_box_link();
}

function Content_Boxes_Buttons_Change_Box_Type()
{
	if (document.Content_Boxes_Buttons.BOXEDIT_box_type.selectedIndex > 0) {
		document.Content_Boxes_Buttons.BOXEDIT_box_link.value = 'http://' + document.Content_Boxes_Buttons.BOXEDIT_box_link.value;
	}
}

//This are functions for list processing

function Content_Lists_Buttons_Search_Article()
{
	document.Content_Lists_Buttons.elements['Content_Lists_list_item_type'].options[0].selected=true;

	new_new3333=window.open("/ghosts/article_search.php?spezial_js=Content_Lists_Buttons_Search_Article_Set",'new_new3333', 'directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=1,toolbar=0,width=980,height=650,left=10,top=30');
	new_new3333.focus();
}

function Content_Lists_Buttons_Search_Article_Set(id)
{
	document.Content_Lists_Buttons.Content_Lists_list_item_linkto.value = id;
	save_list_item();
}

function itemtype_ch()
{
	document.Content_Lists_Buttons.elements['Content_Lists_list_item_type'].options[2].selected=true;
	var props = 'status=yes,scrollBars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,width=800,height=500,top=100,left=200';
	select_doc = window.open('/ghosts/file.php?js_str=itemtype_ch_now', 'select_doc', props);
	select_doc.focus();
}

function itemtype_ch_now(url){
if (document.Content_Lists_Buttons.elements['Content_Lists_list_item_type'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_item_type'].selectedIndex].value=="3")
   {  
		  url=url.replace(/\/\//gi, "\/");
		  url=url.replace(/\/\//gi, "\/");
  		url=url.replace(/\/\//gi, "\/");
  		url=url.replace(/\/\//gi, "\/");
    document.Content_Lists_Buttons.Content_Lists_list_item_linkto.value=url;

		save_list_item();

   }
}

function Content_Lists_Buttons_History(list_id, app_path)
{
		window.open(app_path + 'ghosts/history.php?HISTORY_SECTION=list&HISTORY_ID=' + list_id);
}


function Content_Lists_Buttons_Cancel_Edit()
{
	document.Content_Lists_Buttons.Content_Lists_Action.value = "cancel_edit";
	document.Content_Lists_Buttons.submit();
}

function Content_Lists_Buttons_Save()
{
	hid_save();

	for(var i=0;i<document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].length;i++)
	{
			document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].options[i].selected = true;
			document.Content_Lists_Buttons.elements['Content_Lists_list_items_descriptions[]'].options[i].selected = true;
			document.Content_Lists_Buttons.elements['Content_Lists_list_items_headlines[]'].options[i].selected = true;
			document.Content_Lists_Buttons.elements['Content_Lists_list_items_link[]'].options[i].selected = true;
	}
	document.Content_Lists_Buttons.Content_Lists_Action.value = "save_content";
    document.Content_Lists_Buttons.submit();
}

function Content_Lists_Buttons_Add()
{
	document.Content_Lists_Buttons.Content_Lists_Action.value = "add";
	document.Content_Lists_Buttons.Content_Lists_Edited_List.value = "-1";
	document.Content_Lists_Buttons.submit();
}


function Content_Lists_Buttons_Delete($deleted_list)
{
	document.Content_Lists_Buttons.Content_Lists_Action.value = "delete";
	if ($deleted_list == '') $deleted_list = -1;
	document.Content_Lists_Buttons.Content_Lists_Edited_List.value = $deleted_list;
	document.Content_Lists_Buttons.submit();
}
function Content_Lists_Buttons_Edit($edited_list)
{
	document.Content_Lists_Buttons.Content_Lists_Action.value = "edit";
	if ($edited_list == '') $edited_list = -1;
	document.Content_Lists_Buttons.Content_Lists_Edited_List.value = $edited_list;
	document.Content_Lists_Buttons.submit();
}


function new_list_item()
{
	document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex = -1;
	oDiv.innerHTML = '';
	document.Content_Lists_Buttons.Content_Lists_list_item_linkto.value = '';
	document.Content_Lists_Buttons.Content_Lists_list_item_headline_content.value = '';
	document.Content_Lists_Buttons.Content_Lists_list_item_headline_content.focus();
}

function del_list_item()
{
	if (document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex>=0)
	{
		document.Content_Lists_Buttons.elements['Content_Lists_list_items_headlines[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex] = null;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items_descriptions[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex] = null;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items_link[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex] = null;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex] = null;
	}
	else alert('First select a list item');
}
function save_list_item()
{
	if (isHTMLMode) {
		alert("Please uncheck 'HTML'");
		return;
	}

	oDiv.innerHTML=oDiv.innerHTML.replace(/title=\"Sprache.*?\"/gi,"");
	oDiv.innerHTML=oDiv.innerHTML.replace(/onclick=object_selected=this;/gi,"");
	oDiv.innerHTML=oDiv.innerHTML.replace(/ondblclick=selectededit\(\);/gi,"");

	var item_opt = new Option(document.Content_Lists_Buttons.Content_Lists_list_item_linkto.value, document.Content_Lists_Buttons.Content_Lists_list_item_type.value);
	var desc_opt = new Option(oDiv.innerHTML, oDiv.innerHTML);
	var link_opt = new Option(document.Content_Lists_Buttons.Content_Lists_list_item_linkto.value, document.Content_Lists_Buttons.Content_Lists_list_item_linkto.value);
	var headline_opt = new Option(document.Content_Lists_Buttons.Content_Lists_list_item_headline_content.value, document.Content_Lists_Buttons.Content_Lists_list_item_headline_content.value);

	if (document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex>=0)
	{
		document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex].value = document.Content_Lists_Buttons.Content_Lists_list_item_type.value;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex].text = document.Content_Lists_Buttons.Content_Lists_list_item_headline_content.value;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items_descriptions[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex].value = oDiv.innerHTML;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items_descriptions[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex].text = oDiv.innerHTML;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items_link[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex].value = document.Content_Lists_Buttons.Content_Lists_list_item_linkto.value;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items_link[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex].text = document.Content_Lists_Buttons.Content_Lists_list_item_linkto.value;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items_headlines[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex].value = document.Content_Lists_Buttons.Content_Lists_list_item_headline_content.value;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items_headlines[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex].text = document.Content_Lists_Buttons.Content_Lists_list_item_headline_content.value;
	}
	else
	{
		document.Content_Lists_Buttons.elements['Content_Lists_list_items_descriptions[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].length] = desc_opt;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items_link[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].length] = link_opt;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items_headlines[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].length] = headline_opt;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].length] = item_opt;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].length - 1].selected = true;
		document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex].text = document.Content_Lists_Buttons.Content_Lists_list_item_headline_content.value;
	}

}


function list_item_clicked()
{
	if (document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex>=0)
	{
 	 var_dn1=document.Content_Lists_Buttons.elements['Content_Lists_list_items_descriptions[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex].value;
	 if (isHTMLMode) 
 	  oDiv.innerText = var_dn1.replace(/-qout-/g,'"');
	 else
	  oDiv.innerHTML = var_dn1.replace(/-qout-/g,'"');
	 document.Content_Lists_Buttons.Content_Lists_list_item_linkto.value = document.Content_Lists_Buttons.elements['Content_Lists_list_items_link[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex].value;
	 document.Content_Lists_Buttons.Content_Lists_list_item_headline_content.value = document.Content_Lists_Buttons.elements['Content_Lists_list_items_headlines[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex].value;
	 document.Content_Lists_Buttons.Content_Lists_list_item_type.selectedIndex =  document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].options[document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex].value - 1;
		doppelklicks();
	}
}


function Menu_Buttons_History(app_path)
{
		window.open(app_path + 'ghosts/history.php?HISTORY_SECTION=menu&HISTORY_ID=' + document.Menu_Buttons.Menu_Edited_Item.value);
}

function Menu_Buttons_Edit()
{
	document.Menu_Buttons.Menu_Action.value = 'edit';
	document.Menu_Buttons.submit();
}
function Menu_Buttons_Delete()
{
	document.Menu_Buttons.Menu_Action.value = 'delete';
	document.Menu_Buttons.submit();
}
function Menu_Buttons_Del_Cancel()
{
	document.Menu_Buttons.Menu_Action.value = 'cancel';
	document.Menu_Buttons.submit();
}
function Menu_Buttons_Save()
{
	hid_save();
	for(var i=0;i<document.Menu_Editing_Form.elements['Menu_list_items[]'].length;i++)
	{

		document.Menu_Editing_Form.elements['Menu_list_items[]'].options[i].selected = true;
		document.Menu_Editing_Form.elements['Menu_list_items_name[]'].options[i].selected = true;
		document.Menu_Editing_Form.elements['Menu_list_items_article_id[]'].options[i].selected = true;
		document.Menu_Editing_Form.elements['Menu_list_items_description[]'].options[i].selected = true;
		document.Menu_Editing_Form.elements['Menu_list_items_domain[]'].options[i].selected = true;
		document.Menu_Editing_Form.elements['Menu_list_items_hidden[]'].options[i].selected = true;;
		document.Menu_Editing_Form.elements['Menu_list_items_freigeben[]'].options[i].selected = true;
	}
	document.Menu_Editing_Form.Menu_Action.value = 'save';
	document.Menu_Editing_Form.submit();
}

function Menu_Buttons_Cancel()
{
	document.Menu_Editing_Form.Menu_Action.value = 'cancel';
	document.Menu_Editing_Form.submit();
}

function Menu_Buttons_Search_Article($search_file)
{
	new_new3333=window.open("/ghosts/article_search.php?spezial_js=Menu_Buttons_Search_Article_Set",'new_new3333', 'directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=1,toolbar=0,width=980,height=650,left=10,top=30');
	new_new3333.focus();
}

function Menu_Buttons_Search_Article_Set(id)
{
 document.Menu_Editing_Form.MENUEDIT_article_id.value=id;
}

function Menu_Buttons_Search_Sub_item_Article($search_file)
{
	new_new3333=window.open("/ghosts/article_search.php?spezial_js=Menu_Buttons_Search_Sub_item_Article_Set",'new_new3333', 'directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=1,toolbar=0,width=980,height=650,left=10,top=30');
	new_new3333.focus();
}

function Menu_Buttons_Search_Sub_item_Article_Set(id)
{
	document.Menu_Editing_Form.Menu_subitem_article_id.value = id;
menu_save_subitem()

}
function menu_item_clicked()
{
	if (document.Menu_Editing_Form.elements['Menu_list_items[]'].selectedIndex>=0)
	{
		var pos = document.Menu_Editing_Form.elements['Menu_list_items[]'].selectedIndex;
		document.Menu_Editing_Form.Menu_subitem_name.value = document.Menu_Editing_Form.elements['Menu_list_items_name[]'].options[pos].value;
		document.Menu_Editing_Form.Menu_subitem_article_id.value = document.Menu_Editing_Form.elements['Menu_list_items_article_id[]'].options[pos].value;
		document.Menu_Editing_Form.Menu_subitem_description.value = document.Menu_Editing_Form.elements['Menu_list_items_description[]'].options[pos].value;
		//document.Menu_Editing_Form.Menu_subitem_domain_name.value = document.Menu_Editing_Form.elements['Menu_list_items_domain[]'].options[pos].value;
		if ((document.Menu_Editing_Form.elements['Menu_list_items_hidden[]'].options[pos].value != '') && (document.Menu_Editing_Form.elements['Menu_list_items_hidden[]'].options[pos].value != 0))
			document.Menu_Editing_Form.Menu_subitem_hidden.checked = true;
   		else
			document.Menu_Editing_Form.Menu_subitem_hidden.checked = false;

		if ((document.Menu_Editing_Form.elements['Menu_list_items_freigeben[]'].options[pos].value != '') && (document.Menu_Editing_Form.elements['Menu_list_items_freigeben[]'].options[pos].value != 0))
			document.Menu_Editing_Form.Menu_subitem_freigeben.checked = true;
   		else
			document.Menu_Editing_Form.Menu_subitem_freigeben.checked = false;
	}
}


function interchange(obj, pos1, pos2)
{
	var tmp_value = obj.options[pos1].value;
	var tmp_text = obj.options[pos1].text;

	if ((pos1 >=0) && (pos2 >= 0) && (pos1 < obj.length) && (pos2 < obj.length)) {
		obj.options[pos1].value = obj.options[pos2].value;
		obj.options[pos2].value = tmp_value;
		obj.options[pos1].text = obj.options[pos2].text;
		obj.options[pos2].text = tmp_text;
		for (var i=0; i<obj.options.length;i++){
			obj.options[i].selected = false;
			if (i == pos1) obj.options[pos1].selected = true;
		}
	}
}
function menu_move_subitem_up()
{
	if (document.Menu_Editing_Form.elements['Menu_list_items[]'].selectedIndex>=0)
	{
		var list = document.Menu_Editing_Form.elements['Menu_list_items[]'];
		var list1 = document.Menu_Editing_Form.elements['Menu_list_items_name[]'];
		var list2 = document.Menu_Editing_Form.elements['Menu_list_items_article_id[]'];
		var list3 = document.Menu_Editing_Form.elements['Menu_list_items_description[]'];
		var list4 = document.Menu_Editing_Form.elements['Menu_list_items_domain[]'];
		var list5 = document.Menu_Editing_Form.elements['Menu_list_items_hidden[]'];

		if (list.selectedIndex>0)
		{
			i = list.selectedIndex;
			interchange(list, i - 1, i);
			interchange(list1, i - 1, i);
			interchange(list2, i - 1, i);
			interchange(list3, i - 1, i);
			interchange(list4, i - 1, i);
			interchange(list5, i - 1, i);
		}
		else
		{
			i = list.length;
			interchange(list, i -1, 0);
			interchange(list1, i -1, 0);
			interchange(list2, i -1, 0);
			interchange(list3, i -1, 0);
			interchange(list4, i -1, 0);
			interchange(list5, i -1, 0);
		}
	}
	else alert('First select a menu subitem');
}

function menu_move_subitem_down()
{
	if (document.Menu_Editing_Form.elements['Menu_list_items[]'].selectedIndex>=0)
	{		
		var list = document.Menu_Editing_Form.elements['Menu_list_items[]'];
		var list1 = document.Menu_Editing_Form.elements['Menu_list_items_name[]'];
		var list2 = document.Menu_Editing_Form.elements['Menu_list_items_article_id[]'];
		var list3 = document.Menu_Editing_Form.elements['Menu_list_items_description[]'];
		var list4 = document.Menu_Editing_Form.elements['Menu_list_items_domain[]'];
		var list5 = document.Menu_Editing_Form.elements['Menu_list_items_hidden[]'];

		if (list.selectedIndex<list.length - 1)
		{
			i = list.selectedIndex;
			interchange(list, i + 1, i);
			interchange(list1, i + 1, i);
			interchange(list2, i + 1, i);
			interchange(list3, i + 1, i);
			interchange(list4, i + 1, i);
			interchange(list5, i + 1, i);
		}
		else
		{
			i = list.length - 1;
			interchange(list, 0, i);
			interchange(list1, 0, i);
			interchange(list2, 0, i);
			interchange(list3, 0, i);
			interchange(list4, 0, i);
			interchange(list5, 0, i);
		}
	}
	else alert('First select a menu subitem');
}

function menu_add_new_article()
{
	if (document.Menu_Editing_Form.MENUEDIT_add_new_article_id.checked)
	{
		document.Menu_Editing_Form.MENUEDIT_article_id.value = "";
	}
}

function menu_article_id_change()
{
	if (document.Menu_Editing_Form.MENUEDIT_article_id.value != "")
	{
		document.Menu_Editing_Form.MENUEDIT_add_new_article_id.checked = false;
	}
}

function menu_add_new_sub_article()
{
	if (document.Menu_Editing_Form.Menu_subitem_add_new_article_id.checked)
	{
		document.Menu_Editing_Form.Menu_subitem_article_id.value = "";
	}
}

function menu_sub_article_id_change()
{
	if (document.Menu_Editing_Form.Menu_subitem_article_id.value != "")
	{
		document.Menu_Editing_Form.Menu_subitem_add_new_article_id.checked = false;
	}
}


function  menu_new_subitem()
{
	document.Menu_Editing_Form.elements['Menu_list_items[]'].selectedIndex = -1;
	document.Menu_Editing_Form.Menu_subitem_name.value = '';
	document.Menu_Editing_Form.Menu_subitem_article_id.value = '';
	document.Menu_Editing_Form.Menu_subitem_description.value = '';
	//document.Menu_Editing_Form.Menu_subitem_domain_name.value = '';
	document.Menu_Editing_Form.Menu_subitem_hidden.checked = false;
	document.Menu_Editing_Form.Menu_subitem_add_new_article_id.checked = false;
	document.Menu_Editing_Form.Menu_subitem_add_new_article_id.checked = true;
	if (document.Menu_Editing_Form.Menu_subitem_freigeben) document.Menu_Editing_Form.Menu_subitem_freigeben.checked = true;
	document.Menu_Editing_Form.Menu_subitem_name.focus();


}

function  menu_save_subitem()
{
	if (document.Menu_Editing_Form.elements['Menu_list_items[]'].selectedIndex >= 0) {
		pos = document.Menu_Editing_Form.elements['Menu_list_items[]'].selectedIndex;
		document.Menu_Editing_Form.elements['Menu_list_items[]'].options[pos].text = document.Menu_Editing_Form.Menu_subitem_name.value;
		document.Menu_Editing_Form.elements['Menu_list_items_name[]'].options[pos].value = document.Menu_Editing_Form.Menu_subitem_name.value;
		document.Menu_Editing_Form.elements['Menu_list_items_article_id[]'].options[pos].value = document.Menu_Editing_Form.Menu_subitem_article_id.value;
		document.Menu_Editing_Form.elements['Menu_list_items_description[]'].options[pos].value = document.Menu_Editing_Form.Menu_subitem_description.value;


		//document.Menu_Editing_Form.elements['Menu_list_items_domain[]'].options[pos].value = document.Menu_Editing_Form.Menu_subitem_domain_name.value;
		if (document.Menu_Editing_Form.Menu_subitem_hidden.checked)
			document.Menu_Editing_Form.elements['Menu_list_items_hidden[]'].options[pos].value = 1;
		else
			document.Menu_Editing_Form.elements['Menu_list_items_hidden[]'].options[pos].value = 0;

		if (document.Menu_Editing_Form.Menu_subitem_freigeben.checked)
			document.Menu_Editing_Form.elements['Menu_list_items_freigeben[]'].options[pos].value = 1;
		else
			document.Menu_Editing_Form.elements['Menu_list_items_freigeben[]'].options[pos].value = 0;


	}
	else {
		var item = new Option(document.Menu_Editing_Form.Menu_subitem_name.value, -1);
		var item1 = new Option(document.Menu_Editing_Form.Menu_subitem_name.value, document.Menu_Editing_Form.Menu_subitem_name.value);
		var item2 = new Option(document.Menu_Editing_Form.Menu_subitem_article_id.value, document.Menu_Editing_Form.Menu_subitem_article_id.value);
		var item3 = new Option(document.Menu_Editing_Form.Menu_subitem_description.value, document.Menu_Editing_Form.Menu_subitem_description.value);
		//var item4 = new Option(document.Menu_Editing_Form.Menu_subitem_domain_name.value, document.Menu_Editing_Form.Menu_subitem_domain_name.value);
		var item4 = new Option('','');
		if (document.Menu_Editing_Form.Menu_subitem_hidden.checked)
			var item5 = new Option(1,1);
		else
			var item5 = new Option(0,0);
		
		if (document.Menu_Editing_Form.Menu_subitem_freigeben.checked)
			var item6 = new Option(1,1);
		else
			var item6 = new Option(0,0);
		
		pos = document.Menu_Editing_Form.elements['Menu_list_items[]'].length;
		document.Menu_Editing_Form.elements['Menu_list_items[]'].options[pos] = item;
		document.Menu_Editing_Form.elements['Menu_list_items_name[]'].options[pos] = item1;
		document.Menu_Editing_Form.elements['Menu_list_items_article_id[]'].options[pos] = item2;
		document.Menu_Editing_Form.elements['Menu_list_items_description[]'].options[pos] = item3;
		document.Menu_Editing_Form.elements['Menu_list_items_domain[]'].options[pos] = item4;
		document.Menu_Editing_Form.elements['Menu_list_items_hidden[]'].options[pos] = item5;
		document.Menu_Editing_Form.elements['Menu_list_items_freigeben[]'].options[pos] = item6;
		document.Menu_Editing_Form.elements['Menu_list_items[]'].options[pos].selected = true;



	}
}

function  menu_delete_subitem()
{
	if (document.Menu_Editing_Form.elements['Menu_list_items[]'].selectedIndex >= 0) {
		pos = document.Menu_Editing_Form.elements['Menu_list_items[]'].selectedIndex;

		document.Menu_Editing_Form.elements['Menu_list_items_name[]'].options[pos] = null;
		document.Menu_Editing_Form.elements['Menu_list_items_article_id[]'].options[pos] = null;
		document.Menu_Editing_Form.elements['Menu_list_items_description[]'].options[pos] = null;
		document.Menu_Editing_Form.elements['Menu_list_items_domain[]'].options[pos] = null;
		document.Menu_Editing_Form.elements['Menu_list_items_hidden[]'].options[pos] = null;
		document.Menu_Editing_Form.elements['Menu_list_items[]'].options[pos] = null;
	}
	else alert('First select an item');
}

function Light_Search()
{
	document.LightSearch_Form.LightSearch_Action.value='search';
	document.LightSearch_Form.submit();
}


function AnotherPageClick()
{
	if (document.ScrollDB.LIGHTSEARCH_see_this.options[document.ScrollDB.LIGHTSEARCH_see_this.selectedIndex].value != document.ScrollDB.LIGHTSEARCH_current_page.value)
	document.ScrollDB.submit();
}

function PreviousPageClick()
{
	document.ScrollDB.LIGHTSEARCH_see_this.value = (document.ScrollDB.LIGHTSEARCH_see_this.value*1) - 1;
	document.ScrollDB.submit();
}
function NextPageClick()
{
	document.ScrollDB.LIGHTSEARCH_see_this.value = (document.ScrollDB.LIGHTSEARCH_see_this.value*1) + 1;
	document.ScrollDB.submit();
}


function EventsAnotherPageClick()
{
	if (document.ScrollDB.EVENTSSEARCH_see_this.options[document.ScrollDB.EVENTSSEARCH_see_this.selectedIndex].value != document.ScrollDB.EVENTSSEARCH_current_page.value)
	document.ScrollDB.submit();
}
function EventsPreviousPageClick()
{
	document.ScrollDB.EVENTSSEARCH_see_this.options[document.ScrollDB.EVENTSSEARCH_see_this.selectedIndex].value = parseInt(document.ScrollDB.EVENTSSEARCH_see_this.options[document.ScrollDB.EVENTSSEARCH_see_this.selectedIndex].value, 10) - 1;
	document.ScrollDB.submit();
}
function EventsNextPageClick()
{
	document.ScrollDB.EVENTSSEARCH_see_this.options[document.ScrollDB.EVENTSSEARCH_see_this.selectedIndex].value = parseInt(document.ScrollDB.EVENTSSEARCH_see_this.options[document.ScrollDB.EVENTSSEARCH_see_this.selectedIndex].value,10) + 1;
	document.ScrollDB.submit();
}
function AnotherNewsPageClick()
{
	if (document.ScrollDB.NEWSLIST_see_this.options[document.ScrollDB.NEWSLIST_see_this.selectedIndex].value != document.ScrollDB.NEWSLIST_current_page.value)
	document.ScrollDB.submit();
}
function PreviousNewsPageClick()
{
	document.ScrollDB.NEWSLIST_see_this.options[document.ScrollDB.NEWSLIST_see_this.selectedIndex].value = parseInt(document.ScrollDB.NEWSLIST_see_this.options[document.ScrollDB.NEWSLIST_see_this.selectedIndex].value, 10) - 1;
	document.ScrollDB.submit();
}
function NextNewsPageClick()
{
	document.ScrollDB.NEWSLIST_see_this.options[document.ScrollDB.NEWSLIST_see_this.selectedIndex].value = parseInt(document.ScrollDB.NEWSLIST_see_this.options[document.ScrollDB.NEWSLIST_see_this.selectedIndex].value,10) + 1;
	document.ScrollDB.submit();
}
function AdvAnotherPageClick()
{
	if (document.Site_Map.ADVSEARCH_see_this.options[document.Site_Map.ADVSEARCH_see_this.selectedIndex].value != document.Site_Map.ADVSEARCH_current_page.value)
	document.Site_Map.submit();
}

function AdvPreviousPageClick()
{
	document.Search.SEARCH_ARTICLES_site_cur.value = (document.Search.SEARCH_ARTICLES_site_cur.value*1) - 1;
	document.Search.submit();
}
function AdvNextPageClick()
{
	document.Search.SEARCH_ARTICLES_site_cur.value = (document.Search.SEARCH_ARTICLES_site_cur.value*1) + 1;
	document.Search.submit();
}



function ChangeImageSource(img, new_src)
{
	img.src = new_src;
}

function PrevOut(img)
{
	img.src = "modules/shared/imgs/layout/prev.gif";
}
function PrevOver(img)
{
	img.src = "modules/shared/imgs/layout/prev_in.gif";
}
function NextOut(img)
{
	img.src = "modules/shared/imgs/layout/next.gif";
}
function NextOver(img)
{
	img.src = "modules/shared/imgs/layout/next_in.gif";
}
function list_move_subitem_up()
{
	if (document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex>=0)
	{
		var list  = document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'];
		var list1 = document.Content_Lists_Buttons.elements['Content_Lists_list_items_descriptions[]'];
		var list2 = document.Content_Lists_Buttons.elements['Content_Lists_list_items_link[]'];
		var list3 = document.Content_Lists_Buttons.elements['Content_Lists_list_items_headlines[]'];


		if (list.selectedIndex>0)
		{
			i = list.selectedIndex;
			interchange(list, i - 1, i);
			interchange(list1, i - 1, i);
			interchange(list2, i - 1, i);
			interchange(list3, i - 1, i);
		}
		else
		{
			i = list.length;
			interchange(list, i -1, 0);
			interchange(list1, i -1, 0);
			interchange(list2, i -1, 0);
			interchange(list3, i -1, 0);
		}
	}
	else alert('First select a list subitem');
}

function list_move_subitem_down()
{
	if (document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'].selectedIndex>=0)
	{		
		var list  = document.Content_Lists_Buttons.elements['Content_Lists_list_items[]'];
		var list1 = document.Content_Lists_Buttons.elements['Content_Lists_list_items_descriptions[]'];
		var list2 = document.Content_Lists_Buttons.elements['Content_Lists_list_items_link[]'];
		var list3 = document.Content_Lists_Buttons.elements['Content_Lists_list_items_headlines[]'];


		if (list.selectedIndex<list.length - 1)
		{
			i = list.selectedIndex;
			interchange(list, i + 1, i);
			interchange(list1, i + 1, i);
			interchange(list2, i + 1, i);
			interchange(list3, i + 1, i);
		}
		else
		{
			i = list.length - 1;
			interchange(list, 0, i);
			interchange(list1, 0, i);
			interchange(list2, 0, i);
			interchange(list3, 0, i);
		}
	}
	else alert('First select a list subitem');
}

function menu_button_over(but, img)
{
	but.src = img;
}

function menu_button_out(but, img)
{
  but.src = img;
}



function array_interchange(obj, pos1, pos2)
{
	var tmp_value = obj[pos1];

	if ((pos1 >=0) && (pos2 >= 0) && (pos1 < obj.length) && (pos2 < obj.length)) {
		obj[pos1] = obj[pos2];
		obj[pos2] = tmp_value;
	}
}

function project_move_person_up()
{

	if (document.Project_Edit.my_users.selectedIndex>=0)
	{
		var list = document.Project_Edit.my_users;
		var list1 = Project_Users;
		var list2 = Project_Users_Name;
		var list3 = Project_Assignment;
		var list4 = Project_Users_Department;
		var list5 = Project_Users_Department_Id;

		if (list.selectedIndex>0)
		{
			i = list.selectedIndex;
			interchange(list, i - 1, i);
			array_interchange(list1, i - 1, i);
			array_interchange(list2, i - 1, i);
			array_interchange(list3, i - 1, i);
			array_interchange(list4, i - 1, i);
			array_interchange(list5, i - 1, i);
		}
		else
		{
			i = list.length;
			interchange(list, i -1, 0);
			array_interchange(list1, i -1, 0);
			array_interchange(list2, i -1, 0);
			array_interchange(list3, i -1, 0);
			array_interchange(list4, i -1, 0);
			array_interchange(list5, i -1, 0);
		}
	}
	else alert('First select project person');
}

function project_move_person_down()
{
	if (document.Project_Edit.my_users.selectedIndex>=0)
	{		
		var list = document.Project_Edit.my_users;
		var list1 = Project_Users;
		var list2 = Project_Users_Name;
		var list3 = Project_Assignment;
		var list4 = Project_Users_Department;
		var list5 = Project_Users_Department_Id;

		if (list.selectedIndex<list.length - 1)
		{
			i = list.selectedIndex;
			interchange(list, i + 1, i);
			array_interchange(list1, i + 1, i);
			array_interchange(list2, i + 1, i);
			array_interchange(list3, i + 1, i);
			array_interchange(list4, i + 1, i);
			array_interchange(list5, i + 1, i);
		}
		else
		{
			i = list.length - 1;
			interchange(list, 0, i);
			array_interchange(list1, 0, i);
			array_interchange(list2, 0, i);
			array_interchange(list3, 0, i);
			array_interchange(list4, 0, i);
			array_interchange(list5, 0, i);
		}
	}
	else alert('First select project person');
}



function wind(width,height,scroll)
{
 width_pos=(screen.width/2)-(width/2);
 height_pos=(screen.height/2)-(height/1.8);
 if (height==600 || height==500) eval('a_new=window.open("","a_new","directories=0,location=0,menubar=0,resizable=1,scrollbars=='+scroll+',status=1,toolbar=0,width='+width+',height='+height+',left='+width_pos+',top='+height_pos+',screenX='+width_pos+',screenY='+height_pos+'");');    
 else eval('a_new=window.open("","a_new","directories=0,location=0,menubar=0,resizable=1,scrollbars='+scroll+',status=1,toolbar=0,width='+width+',height='+height+',left='+width_pos+',top='+height_pos+',screenX='+width_pos+',screenY='+height_pos+'");');    
 a_new.focus();
}


function druckversion(op)
{
 width=screen.width/2-390;
 height=screen.height/2-320;
 eval('druckwind=window.open("","druckwind","directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=1,width=780,height=500,left='+width+',top='+height+',screenX='+width+',screenY='+height+'");');    
 druckwind.document.location.href="index.php?Show_this_article="+op+"&druckversion=on";
 druckwind.moveTo(width,height);
 druckwind.focus();
}

function druckversionhtml(op)
{
 url=document.location.href;
 width=screen.width/2-390;
 height=screen.height/2-320;
 eval('druckwind=window.open("","druckwind","directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=1,width=780,height=500,left='+width+',top='+height+',screenX='+width+',screenY='+height+'");');    
 druckwind.document.location.href=url.replace(".html","_druck.html");
 druckwind.moveTo(width,height);
 druckwind.focus();
}

function druckversioniha(id,spr,bl,hid,nr,ort,pg)
{
 url="http://iha-hotelfuehrer.de/iha-hoteldaten/iha_hotel_druck.php?id="+id+"&spr="+spr+"&bl="+bl+"&hid="+hid+"&nr="+nr+"&ort="+ort+"&pg="+pg+"&druck=yes";
 width=screen.width/2-390;
 height=screen.height/2-320;
 eval('druckwind=window.open("","druckwind","directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=1,width=780,height=500,left='+width+',top='+height+',screenX='+width+',screenY='+height+'");');    
 druckwind.document.location.href=url;
 druckwind.moveTo(width,height);
 druckwind.focus();
}


function druckversioniha2(hid,angebotid,id,kategorien,spr)
{
 url="http://iha-hotelfuehrer.de/iha-hoteldaten/iha_angebote_hotel_druck.php?hid="+hid+"&angebotid="+angebotid+"&id="+id+"&kategorien="+kategorien+"&spr="+spr;
 width=screen.width/2-390;
 height=screen.height/2-320;
 eval('druckwind=window.open("","druckwind","directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=1,width=780,height=500,left='+width+',top='+height+',screenX='+width+',screenY='+height+'");');    
 druckwind.document.location.href=url;
 druckwind.moveTo(width,height);
 druckwind.focus();
}

function druckversioniha5(url)
{
 width=screen.width/2-390;
 height=screen.height/2-320;
 eval('druckwind=window.open("","druckwind","directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=1,width=780,height=500,left='+width+',top='+height+',screenX='+width+',screenY='+height+'");');    
 druckwind.document.location.href=url;
 druckwind.moveTo(width,height);
 druckwind.focus();
}

function druckversionhtmllogin(op)
{
 url=document.location.href;
 width=screen.width/2-390;
 height=screen.height/2-320;
 eval('druckwind=window.open("","druckwind","directories=0,location=0,menubar=0,resizable=1scrollbars=1,status=0,toolbar=1,width=780,height=500,left='+width+',top='+height+',screenX='+width+',screenY='+height+'");');    
 druckwind.document.location.href=url.replace("_mo.html","_druck_mo.html");
 druckwind.moveTo(width,height);
 druckwind.focus();
}

function ext_box_link2()
{
 if (document.Content_Boxes_Buttons.BOXEDIT_url_show.value!="") 
 {
  document.Content_Boxes_Buttons.BOXEDIT_url_show.value=document.Content_Boxes_Buttons.BOXEDIT_url_show.value.replace("http://","");
  document.Content_Boxes_Buttons.BOXEDIT_url_show.value="http://"+document.Content_Boxes_Buttons.BOXEDIT_url_show.value
  document.Content_Boxes_Buttons.BOXEDIT_box_type.selectedIndex=1;
 }
 ext_int_check();
}

function int_box_link()
{
 if (document.Content_Boxes_Buttons.BOXEDIT_article_id_show.value!="") document.Content_Boxes_Buttons.BOXEDIT_box_type.selectedIndex=0;
 ext_int_check();
}

function ext_int_check()
{
 if (document.Content_Boxes_Buttons.BOXEDIT_article_id_show.value==0) document.Content_Boxes_Buttons.BOXEDIT_article_id_show.value="";
 if (document.Content_Boxes_Buttons.BOXEDIT_article_id_show.value=="")    document.Content_Boxes_Buttons.BOXEDIT_box_type.selectedIndex=1;
 if (document.Content_Boxes_Buttons.BOXEDIT_article_id_show.value!="" && document.Content_Boxes_Buttons.BOXEDIT_url_show.value=="") document.Content_Boxes_Buttons.BOXEDIT_box_type.selectedIndex=0;
}


var old_content_height;
var old_content_Width;

old_content_height=0;
old_content_Width=0;

function cont()
{
 content_height=window.innerHeight-187;
  if (content_height<1) content_height=1;
  if (old_content_height>window.innerHeight && navigator.appName=="Netscape") window.document.location.href=window.document.location.href;
  if (old_content_Width>window.innerWidth && navigator.appName=="Netscape") window.document.location.href=window.document.location.href;
  old_content_height=window.innerHeight;
  old_content_Width=window.innerWidth;
  document.getElementById('content').style.height=content_height+"px";
  timer=setTimeout("cont()", 1);
}



function cont2()
{
	//alert("sdsdds");
 content_height=window.innerHeight-140;
 if (content_height<1) content_height=1;
 if (old_content_height>window.innerHeight && navigator.appName=="Netscape") window.document.location.href=window.document.location.href;
 if (old_content_Width>window.innerWidth && navigator.appName=="Netscape") window.document.location.href=window.document.location.href;
 old_content_height=window.innerHeight;
 old_content_Width=window.innerWidth;
 document.getElementById('wscroll').style.height=content_height+"px";
 timer=setTimeout("cont2()", 1);
}

function cont3()
{
height=document.body.offsetHeight-140;
width=document.body.offsetWidth-2;
 document.getElementById('wscroll').style.height=height+"px";
 document.getElementById('wscroll').style.width=width+"px";
 timer=setTimeout("cont3()", 1);
// timer=setTimeout("document.location.href=document.location.href", 5000);
}



function aktuelle_angebote()
{
 window.open('http://www.iha-hotelfuehrer.de/iha-hoteldaten/aktuelle_angebote.php?spr=d&url=www.iha-hotelfuehrer.de/home/page_sta_1294.html','aktuelle_angbote_wind', 'directories=0,location=0,menubar=0,resizable=0,scrollbars=1,status=1,toolbar=0,width=400,height=480,left=320,top=150');
}

function Content_Buttons_Artikelcontent_Delete(article_id)
{
 width=screen.width/2-300;
 height=screen.height/2-110;
 eval('druckwind=window.open("","druckwind","directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,width=600,height=120,left='+width+',top='+height+',screenX='+width+',screenY='+height+'");');    
 druckwind.document.location.href="/ghosts/article_content_delete.php?article_id="+article_id;
 druckwind.focus();
}

function hid_save()
{
if(document.getElementById("save")){
document.getElementById("save").style.cursor="normal";
document.getElementById("save").style.filter="Alpha(opacity=50, style=0)";
document.getElementById("save").onclick="";
}

if(document.getElementById("save2")){
document.getElementById("save2").style.cursor="normal";
document.getElementById("save2").style.filter="Alpha(opacity=50, style=0)";
document.getElementById("save2").onclick="";
}

if(document.getElementById("save3")){
document.getElementById("save3").style.cursor="normal";
document.getElementById("save3").style.filter="Alpha(opacity=50, style=0)";
document.getElementById("save3").onclick="";
}


if(document.getElementById("save4")){
document.getElementById("save4").style.cursor="normal";
document.getElementById("save4").style.filter="Alpha(opacity=50, style=0)";
document.getElementById("save4").onclick="";
}

}


function gen(a_id)
{
 width=380;
 height=100;
 width_pos=(screen.width/2)-(width/2);
 height_pos=(screen.height/2)-(height/1.5);
 eval('gen_new=window.open("","gen_new","directories=0,location=0,menubar=0,resizable=1,scrollbars=0,status=1,toolbar=0,width='+width+',height='+height+',left='+width_pos+',top='+height_pos+',screenX='+width_pos+',screenY='+height_pos+'");');    
 gen_new.focus();
 gen_new.document.location.href="/ghosts/gen.php?a_id="+a_id;
}

function boxzuordnung(a_id,col_id)
{
 width=480;
 height=550;
 width_pos=(screen.width/2)-(width/2);
 height_pos=(screen.height/2)-(height/1.5);
 eval('gen_new=window.open("","gen_new","directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=1,toolbar=0,width='+width+',height='+height+',left='+width_pos+',top='+height_pos+',screenX='+width_pos+',screenY='+height_pos+'");');    
 gen_new.focus();
 gen_new.document.location.href="/ghosts/boxes.php?a_id="+a_id+"&col_id="+col_id;
}


function rheumafoondel(form)
{
	eval("document."+form+".del.value=1;");
	eval("document."+form+".submit();");
}

function rheumafoonbild(form)
{
	rheumafoon_form=form;
	var props = 'status=yes,scrollBars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,width=800,height=500,top=100,left=100';
	select_doc = window.open('/ghosts/file.php?js_str=rheumafoonbild_now&pfadover=/rheumafoon_bilder', 'select_doc', props);
	select_doc.focus();
}

function rheumafoonbild_now(bildvalue)
{
	eval("document."+rheumafoon_form+".bild.value=bildvalue;");
}

function rheumafoonadmin()
{
	var props = 'status=yes,scrollBars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,width=900,height=500,top=300,left=50';
	rheumafoonadmin_wind = window.open('/modules/rheumafoon-admin.php', 'rheumafoonadmin_wind', props);
}

