// JavaScript Document
function Search(){
	if (document.frmSearch.Cat.value == '') {
		alert('Bitte gib ein Themen an!');
	}
	else if (document.frmSearch.Key.value == '') {
		alert('Bitte gib ein Schlüsselwort an!');
		document.frmSearch.Key.focus();
	}
	else {
		keyword = document.frmSearch.Key.value;
		window.location = document.frmSearch.Cat.value + '.html?k=' + keyword;
	}
}

function CheckKey() {
	if (window.event.keyCode == 13) {
		Search();
	}
	return false;
}
var BookmarkURL = window.location.href;
var BookmarkTitle = "Handylogos, Klingeltne, MMS Sonderaktion, Bildmitteilungen, Screensaver,";

function Bookmark() {
	if (document.all) window.external.AddFavorite(BookmarkURL,BookmarkTitle)
}

function jsOpenhWnd (u) {
	p = "height=660,width=380,toolbar=no,directories=no,status=no,scrollbars=auto,resizable=no,menubar=no";
	hWnd = window.open (u, "Hwnd", p);
	hWnd.focus();
}

function checkVHost(str){
	
	if(str.indexOf(".")!=-1){
		return true;
	}else{
		return false;
	}
	
}

	if(checkVHost('www')){
		alert('MEDIAPLAZZA WARNING\r\n\r\nYour vHost is not defined correctly.\r\nEnter your correct Subdomain in the config file.')
	}
	/*
function pollMessage()
{
  window.status = ".:: 1a-Handylogo-Klingeltoene.de ::"
  setTimeout( "pollMessage()", "1" );
  }
pollMessage();
function stwr() {

	window.status=" ";
	return true;
}

document.onmouseover=stwr;
document.onmousedown=stwr;
*/
function jsJump(cat, lib) {
  url = 'http://diomede.homere.jmsp.net/label_v4/external/DrtTop/cont.cat.14.v2.php?page=0&lib='+lib+'&cat='+cat+'&la=AL&c=de&t=14&a=stammheim&vc=3&vl=10&vcc=4&c_t=mpCont&r=0&r_cat=1&r_cont=0&r_car=%B7&r_sw=bold&l=1&l_f=tahoma&l_s=11&l_m=20&l_ca=555555&l_ch=555555&l_cv=555555&i_b=0&e=0&e_p=0&s=1&s_p=0&s_i=8&d=1&d_p=0&d_i=8&p=1&p_i=8&b=0&f_c=e8e8e8&t_wi=100%&t_p=0&p_a=1&p_eh=0&p_ev=0&l_f=tahoma&l_s=11&p_f=tahoma&p_s=11&p_ca=555555&p_ch=555555&p_cv=555555&mp=2&font=verdana&size=11&bold=1&nbc=35&bg=e8e8e8&ccell=F6B85B&ctext=555555&hcell=25&maxline=34&p=1&c=de'+'';
  parent.frames['mpCont'].location.href = url;
}
	
	 function FensterMitte(url, w, h, l, t, s) {
 var CenterX = (screen.width-w) / 2;
 var CenterY = (screen.height-h) / 2;
 var CenterPos = "left="+CenterX+",top="+CenterY;
 var para = "width=" + w + ",height=" + h + ",left=" + CenterX + ",top=" + CenterY + ",scrollbars=0,resizable=0,menubar=0,toolbar=0,personalbar=0,status=0";
 openwin = window.open(url,'',para);
 }
 
 
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}




function oeffnefenster (url) {
 fenster = window.open(url, "fenster1", "width=700,height=650,status=yes,scrollbars=yes,resizable=yes");
 fenster.focus();
}