function searchresult()
 {
	document.frmSearch.action='search.aspx';
	document.frmSearch.submit();
	return false;
 }


function imgHome() {
document.getElementById("Home").setAttribute('src', '../media/home_mo.png');}
function imgHome2() {
    document.getElementById("Home").setAttribute('src', '../media/home.png');}   
function imgMail() {
    document.getElementById("Mail").setAttribute('src', '../media/mail_mo.png');}
function imgMail2() {
    document.getElementById("Mail").setAttribute('src', '../media/mail.png');}   
function imgSiteMap() {
    document.getElementById("SiteMapImg").setAttribute('src', '../media/siteMap_mo.png');}
function imgSiteMap2() {
    document.getElementById("SiteMapImg").setAttribute('src', '../media/siteMap.png');}                                          


            
function openWindow(catid,itemid)
{
   var curlink=window.document.location.toString();
                   
   window.open('Referlink.aspx?catid=' + catid + "&itemid=" + itemid + '&link=' + curlink , 'popupTIPS', 'width=570,height=650,scrollbars=no');
}
                           
function addToFavorite(favTitle)
{ 
  var title=favTitle; 
  var url=location.href; 

  if(window.sidebar)
   { 
      window.sidebar.addPanel(title, url,""); 
   }
   else if( window.opera && window.print )
   { 
     var mbm = document.createElement('a'); 
     mbm.setAttribute('rel','sidebar'); 
     mbm.setAttribute('href',url); 
     mbm.setAttribute('title',title); 
     mbm.click(); 
   }
   else if(document.all)
   { 
     window.external.AddFavorite( url, unescape(favTitle)); 
   } 
} 
                        
function MCount(text,len)
 {
    var maxlength = new Number(len); // Change number to your max length.

    if(document.getElementById("ctl00_middleSection_Melding").value.length > maxlength)
    {
      text.value = text.value.substring(0,maxlength);
    }
}
     
function clickclear(thisfield, defaulttext)
{
  if (thisfield.value == defaulttext) 
   {
      thisfield.value = "";
   }
}
             
function clickrecall(thisfield, defaulttext) 
{
   if (thisfield.value == "") 
   {
      thisfield.value = defaulttext;
    }
 }
             
 function changeBox() 
 {   
   document.getElementById('div123').style.display='none';  
   document.getElementById('div234').style.display=''; 
   document.getElementById('ctl00_txtPwd').focus(); 
 }
          
 function restoreBox()
 { 
    if(document.getElementById('ctl00_txtPwd').value=='')  
    {    
       document.getElementById('div123').style.display=''; 
       document.getElementById('div234').style.display='none';  
    }
 }
    
    

          
       
          function onmousechgbullet(id,img,id1,color)
        {
        
           document.getElementById(id).src=img
           //document.getElementById(id1).style.backgroundColor = color ;
        }
        
        function onmouseoutchgbullet(id,img,id1,color)
        {
          document.getElementById(id).src=img
          
            //document.getElementById(id1).style.backgroundColor = color ;
        }
