//start suche etb
function start_search() {
  frm = document.forms['quicksearch'];
  val = frm.qu.value;
  if (val != 'Begriff' && val.length)
    frm.submit();
}
function start_search_etb() {
  frm = document.forms['quicksearch_etb'];
  //frm.action = '/cms/ziel/3217802/DE/';
  val = frm.p_nachname.value;
  
  if (val != 'Name' && val.length) {
    frm.submit();
  }
}

/* print */
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

/* dropdown */
function JumpURL(selection, target) {
	var tempIndex, selectedURL;
	tempIndex = selection.selectedIndex;
	selectedURL = selection.options[tempIndex].value;
	if (selectedURL.length == 0) {
		return;
	}
	if (target == 'blank') {
		window.open(selectedURL, '_blank');
	} else {
		window.top.location.href = selectedURL;
	}
}

function WinOpen(url) {
	window.open(url,'PicWindow','resizable=yes,width=880,height=600,toolbar=no,status=yes,menubar=no,scrollbars=yes')
 }
 
 function popupopen(url) 
{ window.open(url,'PopG','width=500,height=550,resizable=yes,scrollbars=yes,location=yes'); 
}

function onFbLikeClicked() {
	$(".secureFbButton").html('<iframe src="http://www.facebook.com/plugins/like.php?href='+encodeURIComponent(window.location.href)+'&amp;send=false&amp;locale=de_DE&amp;layout=button_count&amp;width=80&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:140px; height:21px;" allowTransparency="true"></iframe>');
	$(".secureFbButton").unbind('click').addClass('fbLikeClicked');
} 



