//Skriptloesungen, Christian Bruene (ChristianBruene.de), 2008-07-27, V4.0

	function ViewIt (Bild_URL, Bild_Breite, Bild_Hoehe)
	{
		var Breite = Bild_Breite + 20;
		var Hoehe  = Bild_Hoehe  + 40;
		var FeatRS = 'width=' + Breite + ',height=' + Hoehe + ',status=no, dependent=yes, locationbar=no, scrollbars=no, directories=no';		
		F1=open("about:blank", "_blank", FeatRS);
		F1.document.write('<HTML>\r<HEAD>\r<TITLE>ChristianBruene.de - Vollansicht</TITLE>\r<SCRIPT language="JavaScript"></SCRIPT>\r</HEAD>\r\r<BODY onBlur="self.focus();" onLoad="self.focus();" onClick="self.close();">\r<DIV align="center"><IMG src="'+Bild_URL+'" name="Vollansicht" alt="Vollansicht ' + Bild_URL + '"><BR></DIV>\r\r<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">\r\t<TR>\r\t\t<TD><DIV align="left"><FONT size="1" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">FullViewScript V3.02 by C.Bruene</FONT></DIV></TD>\r\t\t<TD><DIV align="right"><FONT size="1" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><A href="javascript:self.close()" style="text-decoration:none">schliessen | close</A></FONT></DIV></TD>\r\t</TR>\r</TABLE>\r</BODY>\r</HTML>');
	};


	function show_detail (p_URL, p_Breite, p_Hoehe)
	{
		var FeatRS = 'width=' + p_Breite + ',height=' + p_Hoehe + ',status=yes, dependent=yes, locationbar=no, scrollbars=no, directories=no';		
		F1=open(p_URL, "_blank", FeatRS);
	};


	function check_gb()
	{
		if(document.formular.ntry.value.length>1000)
		{
			alert('Der Eintrag umfasst ' + document.formular.ntry.value.length + ' Zeichen und ist zu lang.\nBitte kürzen Sie den Text um ' + (document.formular.ntry.value.length-1000) + ' Zeichen!');
			return false;
		}
		else
		{
			document.formular.submit();
		}
	};


	function show_element(idObj)
	{
		var doc_menu = this.document.getElementById(idObj);
		doc_menu.style.display    = '';
	}

	
	function hide_element(idObj)
	{
		var doc_menu = this.document.getElementById(idObj);
		doc_menu.style.display    = 'none';
	}


	function show_image_pageholder(pMode)
	{
		var doc_vis_image = this.document.getElementById("vis_image");
		var doc_vis_cform = this.document.getElementById("vis_cform");
		var doc_vis_comms = this.document.getElementById("vis_comms");
		
		/*if(pMode=='1')
		{
			doc_vis_image.style.display    = '';
			doc_vis_cform.style.display    = 'none';
			doc_vis_comms.style.display    = 'none';
		}*/
		
		if(pMode=='2')
		{
			//doc_vis_image.style.display    = 'none';
			doc_vis_cform.style.display    = '';
			doc_vis_comms.style.display    = 'none';
		}
		
		if(pMode=='3')
		{
			//doc_vis_image.style.display    = 'none';
			doc_vis_cform.style.display    = 'none';
			doc_vis_comms.style.display    = '';
		}
	}

	star_grey          = new Image();
	star_grey.src      = "images/voting_form.gif"; /* normale-Grafik */
	star_highlight     = new Image();
	star_highlight.src = "images/votings.gif";     /* Highlight-Grafik */
	
	function highlight(pScore)
	{
		if (pScore>=1) document.votingstar1.src = eval("star_highlight.src");
		if (pScore>=2) document.votingstar2.src = eval("star_highlight.src");
		if (pScore>=3) document.votingstar3.src = eval("star_highlight.src");
		if (pScore>=4) document.votingstar4.src = eval("star_highlight.src");
		if (pScore>=5) document.votingstar5.src = eval("star_highlight.src");
	}
			
	function resetstars()
	{
		document.votingstar1.src = eval("star_grey.src");
		document.votingstar2.src = eval("star_grey.src");
		document.votingstar3.src = eval("star_grey.src");
		document.votingstar4.src = eval("star_grey.src");
		document.votingstar5.src = eval("star_grey.src");				
	}
	
	
	function votenow(pImg, pScore)
	{
		var url    = "index.php";
		var target = 'output-div';
		var pars   = "action=imgview&img="+pImg+"&addon=vote&score="+pScore;
		
		var myAjax = new Ajax.Updater(target, url, {method: 'post', parameters: pars});
		
		var doc_voting_form = this.document.getElementById("div_voting_form");
		var doc_voting_thx  = this.document.getElementById("div_voting_thx");
		
		doc_voting_form.style.display   = 'none';
		doc_voting_thx.style.display    = '';
	}
	
	
	function votethx_hide()
	{
		var doc_voting_thx  = this.document.getElementById("div_voting_thx");
		doc_voting_thx.style.display    = 'none';
	}


