function createButton(addr) {       
    document.write('<a href="'+decodeUrl(addr)+'"><img src="/images/design/button_pfeil_rechts.gif" alt="" border="0" \/><\/a>');
}
function createButtonZwei(addr) {
    document.write('<a href="'+decodeUrl(addr)+'"><img src="/images/design/blauer_button_mit_pfeil.gif" alt="" border="0" \/><\/a>');
}

function createProjektImage(addr,img,alt) {
    document.write('<a href="'+decodeUrl(addr)+'" style="float:left;"><img src="'+img+'" width="128" height="88" \/><\/a>');
}

function checkUsername() {
	if (document.loginbereich.emaileinloggen.value == 'Benutzername') {
		document.loginbereich.emaileinloggen.value='';
	}
}
function checkPasswort() {	
	document.loginbereich.passworteinloggen.value='';
}

function confirmWindow(txt,link) {  
    var agree = confirm(txt)
    if (agree)
    {
    location.href=(link);
    }
}

function createSucheKatLink(addr,txt) {
    document.write('<li><a href="'+decodeUrl(addr)+'">"'+txt+'"<\/a> | <\/li>');
}

function decodeUrl(url){
    
    var s = "";
    for (i=0; i < url.length; i=i+2) {
        s += "%"+url.charAt(i+1)+url.charAt(i)
    }
    return unescape(s);
}


function createVotingLink(addr,note) {
    document.write('<a href="'+decodeUrl(addr)+'" onmouseover="getElementById(\'bar-'+note+'\').src=\'/images/voting/bar-h.gif\'" onmouseout="getElementById(\'bar-'+note+'\').src=\'/images/voting/bar-'+note+'.gif\'" ><img src="/images/voting/bar-'+note+'.gif" width="52" height="7" border="0" id="bar-'+note+'" alt="" title="" \/><\/a>');
}

function createVotingLinkProjekt(addr,txt) {
    document.write('<a href="'+decodeUrl(addr)+'">'+txt+'<\/a>');
}


