var newwindow;
function MM_openBrWindow(theURL,winName,features) {
  newwindow=window.open(theURL,winName,features);
  if (window.focus) {
    newwindow.focus()
  }
}
/*
function zoom(img)
{
	MM_openBrWindow('/bin/zoom.php?img='+img,'araneszoom','width=537,height=798,scrollbars=1');	
}
*/
function phpcode2(token)
{
	var output = '';
	output += '<'+'?='+' lg(\''+token+'\')'+' ?'+'>\n';
	output += 'lg(\''+token+'\')\n';
	output += '<'+'?='+' lg(\''+token+'\',\'\',false)'+' ?'+'>\n';
	output += 'lg(\''+token+'\',\'\',false)\n';
	document.getElementById('phpcode').value = output;
}

function zoom(id,img)
{
	MM_openBrWindow('/bin/zoom.php?mod=sale&id='+id+'&img='+img,'zoom','width=450,height=450');
}

function zoomgallery(img)
{
	MM_openBrWindow('/bin/zoom.php?mod=gallery&img='+img,'zoom','width=450,height=450');
}



function zoompositionen(img)
{
	MM_openBrWindow('/bin/zoom.php?mod=positionen&img='+img,'zoom','width=450,height=450');
}

function AccessLog(mod_id,mod,account_id)
{
	var elements='mod_id='+mod_id+'&mod='+mod+'&account_id='+account_id+'&f=ajax';
	new Ajax.Request(	'/bin/accesslog.php',
						{	method: 'post', 
							parameters: elements
						}
					);
		
}

