var Ja;
function check(message) {
	Ja=confirm(message);
	return Ja;
}
checker=false
function checken()
{
if(!checker)
{
checker=true;
return true; 
}
else {
return false;
}
}

function CheckStr(obj)
	{
		var le;
		le=(500-obj.value.length);
		if(le<0)
		{
			obj.value=obj.value.substr(0,500);
			le=0;
		}
		document.wichtig.Len.value=le;	
		
}		

function popup(url, target, w, h) {
	l=(screen.width-w)/2; 
	o=(screen.height-h)/2; 
	window.open(url, target, 'scrollbars=yes,resizable=yes,width='+w+',height='+h+',left='+l+',screenX='+l+',top='+o+',screenY='+o); 
}	

function jump2login()
		{
			var parentWin = window.opener;
			var endFlag = false;
			while(parentWin.opener && endFlag == false)
			{
				if(parentWin.opener.location.host == window.location.host)
				{
					parentWin = parentWin.opener;	
				}
				else
				{
					endFlag = true;
				}
			}
			parentWin.location.href="";
			window.close();
		}









function doMessage(doProfileHref, doProfileTarget) {
  window.open(doProfileHref, doProfileTarget, "height=450,width=420,scrollbars=yes");
}

function doMessage2(doProfileHref, doProfileTarget) {
  window.open(doProfileHref, doProfileTarget, "height=334,width=420,scrollbars=yes");
}

function doProfile(doProfileHref, doProfileTarget) {
  window.open(doProfileHref, doProfileTarget, "height=500,width=500,scrollbars=yes");
}

function doListe(doProfileHref, doProfileTarget) {
  window.open(doProfileHref, doProfileTarget, "height=500,width=500,scrollbars=yes");
}


var WindowChat = 0;


function createWindow(WindowHref, WindowTarget, WindowIdentifier)
{
  var WindowAttributes = new Array();
  WindowAttributes[WindowChat] = "height=500,width=770";

  window.open(WindowHref, WindowTarget, WindowAttributes[WindowIdentifier]);
}
