<!-- 
/**************************************************\		
  © Magnet Media 2001
  Table Row Mark v1.1
  
    DO NOT USE WITHOUT PERMISSION!  
  					
  	myRow = new MM_rowMark(1,2,3,4)
  			
  	1:	Farbe des Over Effekts z.B. "#ff0000" - string
  	2:	Farbe des Mark Effeks - string
  	3:	Farbe des Over Effeks bei der Marked Row - string  
  	4:  Function die bei onClick aufgerufen wird - string
  			
  	<tr class="grau" onMouseOver="myRow.over(this)" onMouseOut="myRow.out(this)" onClick="myRow.click(this)">
  		<td>eine Zeile</td>
  		<td><img src="einbild.gif"></td>
  	</tr>							
\**************************************************/
		
function MM_rowMark(overColor,markedColor,overMarked,onClick) 
	{						
		/** Properties **/					
		this.overColor = overColor;
		this.markedColor = markedColor;
		this.overMarked = overMarked;
						
		/** Variables **/					
		this.oldColor = "";
		this.markedRow = "";
											
		/** Methods **/					
		this.over = MM_rowMark_over;
		this.out = MM_rowMark_out;
		this.click = MM_rowMark_click;
				
		/** Event Handler **/
		this.onClick = onClick;					
	}
		
function MM_rowMark_over(oRow)
	{								
		this.oldColor = oRow.style.backgroundColor;
									
		if (oRow.style.backgroundColor == this.markedColor)   
			oRow.style.backgroundColor = this.overMarked;
		else
			oRow.style.backgroundColor = this.overColor;
	}
		
function MM_rowMark_out(oRow)
	{				
		if (oRow.style.backgroundColor == this.markedColor)
			oRow.style.backgroundColor = this.markedColor;
		else
			oRow.style.backgroundColor = this.oldColor;
	}
		
function MM_rowMark_click(oRow)
	{
		if (this.markedRow == "")
			{
				oRow.style.backgroundColor = this.markedColor;
				this.markedRow = oRow;
				if (this.onClick != "")	
					eval(this.onClick);
			}
		else 
			{
				this.markedRow.style.backgroundColor = this.oldColor;
				oRow.style.backgroundColor = this.markedColor;
				this.markedRow = oRow;
				if (this.onClick != "")
					eval(this.onClick);
			}
	}
	
	

/** Instanzieren der Javascript Klassen **/

function init(colCode) {
	myRow = new MM_rowMark(colCode,colCode,"","");
}

init('');



function iZoom(path, defaultWidth, defaultHeight)
{
//var defaultWidth = 640;
//var defaultHeight = 480;

var xwin = parseInt((screen.availWidth / 2) - (defaultWidth / 2));
var ywin = parseInt((screen.availHeight / 2) - (defaultHeight / 2));

zwin = window.open("","","resizable=yes,left="+xwin+",top="+ywin+",width=" + defaultWidth + ",height=" + defaultHeight + "\"");
zwin.moveTo(xwin,ywin);

zcon = "<body onload=\"self.moveTo((screen.availWidth / 2) - (defaultWidth / 2 + 5),(screen.availHeight / 2) - (defaultHeight / 2 + 20));\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";

zcon += "<table width=\"100%\" height=\"100\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
zcon +="<tr><td valign=\"top\" align=\"center\"><a class=\"text_medium\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 11px;font-style: normal;font-weight: normal;color: #333333;letter-spacing: normal;\" href=\"javascript:self.close()\"><img name=\"zimg\" src=\""+path+"\" border=\"0\" alt=\"Klicken zum Schliessen\" title=\"Klicken zum Schliessen\"><br>";
zcon += "&raquo;schliessen&laquo;</a>";
zcon += "  </td>";
zcon += "</tr>";
zcon += "</table></body>";
zcon += "</html>";

zwin.document.open();
zwin.document.write(zcon);
zwin.document.close();
}

// -->