	    function enterBox(evt,tooltip){
	        var elem = null;
	     
	        if (evt.target){
	            elem = evt.target;
	        }else{
	            elem = evt.srcElement;
	        }
	     
	        var classNameAttr = elem.className;
	     
	        if(classNameAttr.indexOf('_mouseover') == -1){
	            classNameAttr = classNameAttr + '_mouseover';
	        }
	     
	        elem.className = classNameAttr;
	    }
	    
	    function leavingBox(evt){
	        var elem = null;
	 
	        if (evt.target){
	            elem = evt.target;
	        }else{
	            elem = evt.srcElement;
	        }
	 
	        var classNameAttr = elem.className;
	 
	        classNameAttr = classNameAttr.replace(/_mouseover/g,'');
	 
	        elem.className = classNameAttr;
	    }
	    
	    function selectBox(evt,url,style){
	        var elem = null;
	 
	        if (evt.target){
	            elem = evt.target;
	        }else{
	            elem = evt.srcElement;
	        }
	        
	        myWindow = window.open(url,'',style);
	        myWindow.focus();
	    }
		
		function changeToPublication()
		{
			$('#FrontIndexForm').submit();			
		}
		
		
		function viewImage()
		{
		    $('#rightcol_content_article_masks').show();
            $('#rightcol_content_image').show();
            $('#rightcol_content_pdf').hide();
			$('#iframe_pdf').attr('src', "")
            $('#image_view_link').hide();
            $('#pdf_view_link').show();
        }
		
		function viewImageWithMasks()
		{
			$('#rightcol_content_article_masks').show();
			$('#rightcol_content_image').show();
			$('#rightcol_content_pdf').hide();
		}
		
/**
 * Checks the search form
 * 
 * @return bool
 */
	function checkSearchFormBeforeSubmit()
	{
		var bReturn = true;
		
		if($("#PublicationSuche").val() == "")
		{
			alert("Bitte geben Sie einen Suchbegriff ein.");
			bReturn = false;
		}
		
		if(parseInt($("#PublicationIssueIdFrom").val()) > parseInt($("#PublicationIssueIdTo").val()))
		{
			alert("Die 'von Ausgabe' darf nicht neuer sein als die Auswahl im 'bis Ausgabe'");
			bReturn = false;
		}			
		
		return bReturn;
	}

/**
 * Binds click handlers to elements which will call up the lightbox * 
 * 
 * @return void
 */
	function bindZoomFunc(){
		var selectors = '#pdf_zoom_magnifier'
		if($("#rightcol_content_article_masks").children().length == 0)
		{
			selectors += ', #rightcol_content_image';
			$('#rightcol_content_image').css('cursor', 'pointer');
		}
		$(selectors).click(function() {
		  $('#pdf_zoom_link').trigger('click');
		});
	}

