<!--
function check_add_menu() 
{
	if (document.forms['add_menu'].fsitename.value == '')
	{
	alert('Please fill in the required fields!');
	return false;
	}
}

function set_meta_title(wert,wo,plattform,form_name)
{
	document.forms[form_name].elements[wo].value = plattform + ' - ' + wert;
}

function setTyp(formular)
{
	if(document.forms[formular].fparent.options[0].selected!=true && document.forms[formular].ftyp.length == 2)
	   	{
		document.forms[formular].ftyp.options[document.forms[formular].ftyp.length - 1] = null;	
		}
	   	
	else if(document.forms[formular].fparent.options[0].selected==true && document.forms[formular].ftyp.length == 1)
	{
		NeuerEintrag = new Option('Reisen', 2, false);
  		document.forms[formular].ftyp.options[document.forms[formular].ftyp.length] = NeuerEintrag;
	}

}

function search_check()
{
	if(document.forms['search_address'].searchtext.value == '')
	{
		alert('Please indicate a keyword!')	
		return false;
	}
	else
		return true;
}

function changeImage(id,pic,status)
{
if (status == 1) 
	{
	pic_add = '-over.gif';
	}
	else
	{
	pic_add = '.gif';
	}
picture = pic + pic_add;
document.images[id].src='images/content/'+picture;
}

function correctPNG() 
{
	for(var i=0; i<document.images.length; i++)
	{
		var img = document.images[i]
		var imgName = img.src.toUpperCase()
		if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
		{
			var imgID = (img.id) ? "id='" + img.id + "' " : ""
			var imgClass = (img.className) ? "class='" + img.className + "' " : ""
			var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
			var imgStyle = "display:inline-block;" + img.style.cssText 
			if (img.align == "left") imgStyle = "float:left;" + imgStyle
			if (img.align == "right") imgStyle = "float:right;" + imgStyle
			if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle                        
			var strNewHTML = "<span " + imgID + imgClass + imgTitle
			+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
			+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
			+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
			img.outerHTML = strNewHTML
			i = i-1
		}
	}
}
window.attachEvent("onload", correctPNG);


function setNewsletterSite(pid,tid,titel){
	document.forms[0].site.value = pid;	
	document.forms[0].travel.value = tid;	
	document.forms[0].titel.value = titel;	
}


function previewNewsletter(prefix,pid,tid,type){
if(pid!=0){
if(type=='privat')
	{
	if(tid == '')
		urls = prefix+'?pid='+pid+'&type=privat';
	else
		urls = prefix+'?pid='+pid+'&tid='+tid+'&type=privat';
	}
else
	{
	if(tid == '')
		urls = prefix+'?pid='+pid+'&type=reisebuero';
	else
		urls = prefix+'?pid='+pid+'&tid='+tid+'&type=reisebuero';
	}
		
	window.open(urls,'preview');
}
else
	alert('Please select a page among the sitemap on the left!');
	return false;
}

function rollover(which,status,heights,actual_act){
	if(status==1 && actual_act != which){
	classname = 'subact_'+heights;
	document.getElementById(which).className=classname;
	}
	else if(status==0 && actual_act != which){
	classname = 'noact_'+heights;
	document.getElementById(which).className=classname;
	}
}

function rollover2(id,image){
	path = '/images/menu/';
	document.getElementById(id).src = path+image;
	}


function checkform(){
	if (document.forms[0].email.value == '' || document.forms[0].post.innertext == '' || document.forms[0].titel.value == '' || document.forms[0].name.value == ''){
		alert('Bitte f'+unescape('%FC')+'llen Sie alle Felder aus | Veuillez remplir tous les champs');
		return false;
		}
	else
		return true;
	}

-->

