function screenshotfun(pic, width, height){
		    var sshot = window.open("", "blub", "toolbar=no, width="+width+", height="+height+", location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no");
		    sshot.document.writeln("<html>");
		    sshot.document.writeln("<head>");
		    sshot.document.writeln("<title>Bildgrossansicht</title>");
		    sshot.document.writeln("</head>");
		    sshot.document.writeln("<body bgcolor='#FFFFFF' marginwidth=0 marginheight=0 topmargin=0 leftmargin=0>");
		    sshot.document.writeln("<div align=center>");
		    sshot.document.writeln("<img src='"+pic+"'>");
		    sshot.document.writeln("</div>");
		    sshot.document.writeln("</body>");
		    sshot.document.writeln("</html>");
}

bildNummer = 1;
function swap_content_pic( span ) {
    displayType = ( document.getElementById( span ).style.display == 'none' ) ? 'block' : 'none';
    document.getElementById( span ).style.display = displayType;
    /* Picture Change*/
    if (bildNummer == 1) {
        document.schalter.src = "minus.gif";
        bildNummer++;
    } else {
        document.schalter.src = "plus.gif";
        bildNummer--;
    }
}


function swap_content( span ) {
    displayType = ( document.getElementById( span ).style.display == 'none' ) ? 'block' : 'none';
    document.getElementById( span ).style.display = displayType;
    
}

function preview(text, smilies) 
{
		text = escape(text);
		window.open('./pages/preview/preview.php?smilies='+smilies+'&'+text, 'Preview','titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=600,height=250, left=200, top=200');
}


