var DEF_VAL   = "Search 4wheelz ..."; // Default Value
var isSafari = ((parseInt(navigator.productSub)>=20020000)&&     // detecting WebCore
               (navigator.vendor.indexOf("Apple Computer")!=-1));

run();
function run()
{
    var oldOnload = window.onload; // window.onload will be overwritten, so save the old value
    if (typeof(window.onload) != "function") {
        window.onload = init;
    } else {
        window.onload = function() {
            oldOnload();
            init();
        }
    }
}

function init() {
    if (!document.getElementById) return;
    var theSearchField = document.getElementById('search');
    if (isSafari) {
        // changing type to "search"
        theSearchField.setAttribute('type', 'search');
        theSearchField.setAttribute('placeholder', DEF_VAL);
    } else {
        // doing the "Search 4wheelz ..."-Displaying- & -Hiding-Stuff
        theSearchField.onfocus    = focusSearch;
        theSearchField.onblur     = blurSearch;
        if (theSearchField.value=='') theSearchField.value = DEF_VAL;
    }
}

function focusSearch() {
    if (this.value==DEF_VAL) {
        this.value = '';
    }
}
function blurSearch() {
    if (this.value=='') {
        this.value = DEF_VAL;
    }
}


function smilie(thesmilie) {
// inserts smilie text
	meinFormular.eintrag.value += thesmilie+" ";
	meinFormular.eintrag.focus();
}

<!-- safe mailto
function safemail(name, domain, display) {
displayed=(typeof(display)=="undefined") ? name+"@"+domain : display
document.write('<a href=mailto:' + name + '@' + domain + '>' + displayed + '</a>');
}
// -->

<!--
function showPic (whichpic) 
{
	if (document.getElementById) 
	 {
	  document.getElementById('placeholder').src = whichpic.href;
		  return false;
	 } 
	 else 
	 {
	  	return true;
	 }
}
// -->


/********************************************************************************************/
/* AHAH functions by Phil Ballard                                                           */
/* This code is intended for study purposes.                                                */
/* You may use these functions as you wish, for commercial or non-commercial applications,  */
/* but please note that the author offers no guarantees to their usefulness, suitability or */
/* correctness, and accepts no liability for any losses caused by their use.                */
/********************************************************************************************/

function callAHAH(url, pageElement, callMessage, errorMessage) {
     document.getElementById(pageElement).innerHTML = callMessage;
     try {
     req = new XMLHttpRequest(); /* e.g. Firefox */
     } catch(e) {
       try {
       req = new ActiveXObject("Msxml2.XMLHTTP");  /* some versions IE */
       } catch (e) {
         try {
         req = new ActiveXObject("Microsoft.XMLHTTP");  /* some versions IE */
         } catch (E) {
          req = false;
         } 
       } 
     }
     req.onreadystatechange = function() {responseAHAH(pageElement, errorMessage);};
     req.open("GET",url,true);
     req.send(null);
  }

function responseAHAH(pageElement, errorMessage) {
   var output = '';
   if(req.readyState == 4) {
      if(req.status == 200) {
         output = req.responseText;
         document.getElementById(pageElement).innerHTML = output;
         } else {
         document.getElementById(pageElement).innerHTML = errorMessage+"\n"+output;
         }
      }
  }
  
  
<!-- 
function trck(aid, wdcm) 
{
    if(document.images)
	{ 
        (new Image()).src="/links/"+aid+"/"+wdcm+"/"; 
    } 
    return true;
}

function lnkType() 
{
  if (!document.getElementsByTagName) return false;
  var links = document.getElementsByTagName("a");
  var regex = /^http[s]*:/i;
  
  for (var i=0; i < links.length; i++) 
  {

      links[i].onmousedown = function() 
	  {
        if (regex.exec(this.href)) 
		{
			(new Image()).src="/extclck.php?url="+encodeURI(this.href); 
		}
        return true;
      }
  }
}

// -->   