<!--

//document.write('<iframe src="'+new_page+'" name="library_data">');
path=window.location.pathname;
//file=path.substring(path.lastIndexOf("/")+1,path.length);
ffile=path.substring(path.lastIndexOf("/")+1);
//self.location.href

//alert ("Der Referer ist:\n" + document.referrer);
var cleanedreferer = document.referrer.replace(/&/g, "+");
//alert ("Der cleaned Referer ist:\n" + cleanedreferer);
document.write('<iframe src="b4ycounter/counter.php?vwd=[d]'+ffile+'&ref='+cleanedreferer+'" width="0" height="0" scrolling="no" name="B4YCounter" frameborder="0" marginwidth="0" marginheight="0"></iframe>');

// immer index laden, dass frameset aktiv ist
// AUSSER bei den Infoboxen, oder der index-Seite!!!
//if(location.href.indexOf("infobox") == -1) {
//  if(location.href.indexOf("index") == -1) {
//	self.onError=null;
//	if ( top.location == location )
//	top.location.href = 'index.htm';
//  }
//}


// welcher Browser ist aktiv -- fue css
var NN 	= false; //document.layers;
var IE 	= false; //document.all;
var MAC = (navigator.appVersion.indexOf("Mac") != -1);
var X11 = false; //(navigator.appVersion.indexOf("X11") != -1); 
var MO  = false; //document.documentElement;
var OP  = false;
var MACIE = ((IE && MAC) || MO);

if(navigator.userAgent.indexOf("Mozilla") != -1) {
	if(navigator.userAgent.indexOf("MSIE") == -1) {
             if(navigator.userAgent.indexOf("Netscape") == -1) {           
        	MO=true;
             } //MOZILLA!
        } 
        else 
        { IE = true;}
         	   
}
if(navigator.userAgent.indexOf("Opera") != -1) {
   OP=true;
   // OPERA!
}
if(navigator.userAgent.indexOf("Netscape") != -1) {
	NN=true;
	// NETSCAPE !
}

_url = "stylesheet/";
if (MAC) { 
	// f&uuml;r MAC eigene Stylesheets machen....
	if (IE) stylesh="iexp.css";
	if (NN) stylesh="nets.css";
	if (MO) stylesh="moz.css";
	if (OP) stylesh="ope.css";
} else { 
	if (IE) stylesh="iexp.css";
	if (NN) stylesh="nets.css";
	if (MO) stylesh="moz.css";
	if (OP) stylesh="ope.css";			
}
document.write('<LINK REL=stylesheet TYPE="text/css" href="'+_url+stylesh+'">');



function link() {
	url_srchstring=document.neuerauftrag.form_srchstr.value;
	self.location.href='sucherg.php?srchstring='+url_srchstring;
}


//function loginlink() {
//	vloginname=document.loginform.loginname.value;
//	vpassword=document.loginform.password.value;
//	self.location.href='benutzerlogin.php?loginname='+vloginname+"&password="+vpassword;
//}


function link1() {
			
	url_srchstring=document.neuerauftrag.form_srchstr.value;
	self.location.href='../sucherg.php?srchstring='+url_srchstring;
}

function openHelpPage(pagename)	{
	window.open(pagename,'hilfe','scroll=no,width=360,height=360');
}

function openHelpPageBig(pagename)        { 
        window.open(pagename,'hilfe','scroll=yea,width=540,height=600'); 
} 


		function MM_displayStatusMsg(msgStr) { //v1.0
			status=msgStr;
			document.MM_returnValue = true;
		}

		function MM_preloadImages() { //v3.0
			var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
			var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
		}

		function MM_swapImgRestore() { //v3.0
			var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
		}

		function MM_findObj(n, d) { //v4.0
			var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
			d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
			if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
			for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
			if(!x && document.getElementById) x=document.getElementById(n); return x;
		}

		function MM_swapImage() { //v3.0
			var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
			if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
		}

		function MM_showHideLayers() { //v3.0
			var i,p,v,obj,args=MM_showHideLayers.arguments;
			for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
			if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
			obj.visibility=v; }
		}
		
		function MM_reloadPage(init) {  //reloads the window if Nav4 resized
			if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
			document.MM_pgW=innerwidth; document.MM_pgH=innerheight; onresize=MM_reloadPage; }}
			else if (innerwidth!=document.MM_pgW || innerheight!=document.MM_pgH) location.reload();
		}
		MM_reloadPage(true);		



function timeAfterTime()
{
   var ID1=window.setInterval('CheckStr1()',100);
   var ID2=window.setInterval('CheckStr2()',100);
   var ID3=window.setInterval('CheckStr3()',100);
   var ID4=window.setInterval('CheckStr4()',100);
   var ID5=window.setInterval('CheckStr5()',100);
}

function CheckStr1(userInput)
{
  // Die Variable StrLen (StringLength) steht fuer die Anzahl der eingegebenen Zeichen
  StrLen = window.document.dummyxy.further_skills.value.length;
  // Wenn mehr als 127 Zeichen eingegeben werden, wird der Rest abgeschnitten; der Substring extrahiert vom ersten Wert (wir zaehlen von 0 an) bis zu dem letzten Wert, den er nicht mehr extrahieren kann (im Skript steht 127, aber da wir bei 0 angefangen haben zu zaehlen, ist der 128. gemeint)
  if (StrLen > 127 )
  {
    window.document.dummyxy.further_skills.value = window.document.dummyxy.further_skills.value.substring(0,127);
    StrLeft = 0;
  }
  // ansonsten sind noch so viele Zeichen uebrig
  else
  {
    StrLeft = 127 - StrLen;
  }
  // und das sagen wir dem Benutzer jetzt auch
  document.dummyxy.Len1.value = StrLeft;
}

function CheckStr2(userInput)
{
  StrLen = window.document.dummyxy.education.value.length;
  if (StrLen > 127 ) {
    window.document.dummyxy.education.value = window.document.dummyxy.education.value.substring(0,127);
    StrLeft = 0;
  }
  else {
    StrLeft = 127 - StrLen;
  }
  document.dummyxy.Len2.value = StrLeft;
}
function CheckStr3(userInput)
{
  StrLen = window.document.dummyxy.reference.value.length;
  if (StrLen > 127 ) {
    window.document.dummyxy.reference.value = window.document.dummyxy.reference.value.substring(0,127);
    StrLeft = 0;
  }
  else {
    StrLeft = 127 - StrLen;
  }
  document.dummyxy.Len3.value = StrLeft;
}
function CheckStr4(userInput)
{
  StrLen = window.document.dummyxy.hardware.value.length;
  if (StrLen > 127 ) {
    window.document.dummyxy.hardware.value = window.document.dummyxy.hardware.value.substring(0,127);
    StrLeft = 0;
  }
  else {
    StrLeft = 127 - StrLen;
  }
  document.dummyxy.Len4.value = StrLeft;
}
function CheckStr5(userInput)
{
  StrLen = window.document.dummyxy.software.value.length;
  if (StrLen > 127 ) {
    window.document.dummyxy.software.value = window.document.dummyxy.software.value.substring(0,127);
    StrLeft = 0;
  }
  else {
    StrLeft = 127 - StrLen;
  }
  document.dummyxy.Len5.value = StrLeft;
}

function check(text) {
		//if(gedrueckt==1) {
			Check = confirm(text);
			if(Check==true) {
				gedrueckt=0;
				window.status=warten;
			}
			return Check;
		//}
		//return false;
}

	
//-->
