/*

var d=document;
    var DocNormImg={};
    var DocHovImg={};
    var AvailImg=d.getElementsByTagName("img");
    for(i=0; i<AvailImg.length; i++){
        if(AvailImg[i].id.toString().length>1){
            AvailImg[i].onmouseover=mHoverImg;
            AvailImg[i].onmouseout=mUnHoverImg;
            DocNormImg[AvailImg[i].id]=new Image();
            DocNormImg[AvailImg[i].id].src=AvailImg[i].src;
            tempImgPath=AvailImg[i].src.toString();
            tempImgPath=tempImgPath.replace(".gif","hov.gif");
            tempImgPath=tempImgPath.replace(".png","hov.png");
            DocHovImg[AvailImg[i].id]=new Image();
            DocHovImg[AvailImg[i].id].src=tempImgPath;
        }
    }
    function mCheckAgainForImg(){

        var AvailImg=d.getElementsByTagName("img");
        for(i=0; i<AvailImg.length; i++){
            if(AvailImg[i].id.toString().length>1){
                AvailImg[i].onmouseover=mHoverImg;
                AvailImg[i].onmouseout=mUnHoverImg;
                DocNormImg[AvailImg[i].id]=new Image();
                DocNormImg[AvailImg[i].id].src=AvailImg[i].src;
                tempImgPath=AvailImg[i].src.toString();
                tempImgPath=tempImgPath.replace(".gif","hov.gif");
                tempImgPath=tempImgPath.replace(".png","hov.png");
                DocHovImg[AvailImg[i].id]=new Image();
                DocHovImg[AvailImg[i].id].src=tempImgPath;
            }
        }

    }
    
    function mHoverImg(){
        d.getElementById(this.id).src=DocHovImg[this.id].src;}
    
    function mUnHoverImg(){
        d.getElementById(this.id).src=DocNormImg[this.id].src;}


    var AvailBtn=d.getElementsByTagName("input");
    var zaehler=0;
    for(i=0; i<AvailBtn.length; i++){
        if(AvailBtn[i].type=="button" || AvailBtn[i].type=="submit"){
            if(navigator.userAgent.indexOf("Gecko")>-1){
            }
            AvailBtn[i].style.backgroundImage="url(img/tmpl/btnBg.png)";
            AvailBtn[i].style.backgroundRepeat="repeat-x";
            AvailBtn[i].style.backgroundColor="#ffffff";    
            AvailBtn[i].style.fontWeight="bold";
            AvailBtn[i].style.cursor="default";
            AvailBtn[i].onmouseover=mHoverBtn;
            AvailBtn[i].onmouseout=mUnHoverBtn;
        }
        if(AvailBtn[i].type=="text" || AvailBtn[i].type=="password"){
            if(AvailBtn[i].getAttribute("mreadonly")=="true"){
                AvailBtn[i].readOnly="true";
            }
            else{
                AvailBtn[i].onfocus=mTxtHoverBtn;
                AvailBtn[i].onblur=mTxtUnHoverBtn;
            }
        }
    }
    var AvailBtn=d.getElementsByTagName("textarea");
    var zaehler=0;
    for(i=0; i<AvailBtn.length; i++){
        AvailBtn[i].onfocus=mTxtHoverBtn;
        AvailBtn[i].onblur=mTxtUnHoverBtn;
    }

    function mHoverBtn(){
        if(this.getAttribute("cardinality")=="red"){
            this.style.color="#a32a2a";}
        else{
            this.style.color="green";}
        this.style.borderColor="#5A5750";
    }

    function mUnHoverBtn(){
        this.style.color="#404040";
        this.style.borderColor="#A29E96";
    }

    function mTxtHoverBtn(){
        this.style.borderColor="#a32a2a";
        this.style.backgroundColor="#fbeeee";}
    
    function mTxtUnHoverBtn(){
        this.style.borderColor="#a29e96";
        this.style.backgroundColor="#ffffff";}
        
        
    function mWin(mType,mSrc,mWidth,mHeight,mPos){
        var WinX=0, WinY=0;
        if(arguments.length != 5){
            alert("Runtime Error:\n mWin() requires five parameters!\n"+arguments.length+" parameters only passed!");}
        else{    switch(mType){
                case 0: mType="menubar=yes,toolbar=no,resizable=yes,scrollbars=yes,status=yes"; break;
                case 1: mType="menubar=no,toolbar=no,resizable=no,scrollbars=no,status=no"; break;
                case 2: mType="menubar=no,toolbar=no,resizable=no,scrollbars=yes,status=no"; break;
                case 3: mType="menubar=no,toolbar=no,resizable=yes,scrollbars=yes,status=yes"; break;}
            switch(mPos){
                case 0: WinX=1; WinY=1; break; 
                case 1: WinX=screen.width-mWidth; WinY=0; break; 
                case 2: WinX=screen.width-mWidth; WinY=screen.height-mHeight; break; 
                case 3: WinX=1; WinY=screen.height-mHeight; break; 
                case 4: WinX=1; WinY=(screen.height-mHeight)/2; break; 
                case 5: WinX=screen.width-mWidth; WinY=(screen.height-mHeight)/2; break; 
                case 6: WinX=(screen.width-mWidth)/2; WinY=1; break; 
                case 7: WinX=(screen.width-mWidth)/2; WinY=1; break; 
                case 8: WinX=(screen.width-mWidth)/2; WinY=(screen.height-mHeight)/2; break;
                }
    
        currwin=mWinArr.length;
        var CurrSec = new Date();
        currname="mWin"+CurrSec.getTime();

        mWinArr[currwin]=window.open(mSrc,currname,mType);
        mWinArr[currwin].resizeTo(mWidth,mHeight);
        mWinArr[currwin].moveTo(WinX,WinY);
        mWinArr[currwin].focus();

    }}
    
    
    */
