<!-- hide script from old browsers 
function set_status(msgStr) { //v1.0
  parent.status=msgStr;return true;
}
function myonload (id,fieldname) {
    // your code here e.g.
	var curr_compl;
	var curr_status;	
	cursrc=eval('document.'+fieldname);
	//curr_status=

	curr_status=eval('typeof completed'+fieldname);
	if(curr_status == 'undefined')curr_compl=0;
	else {
		curr_compl=eval('completed'+fieldname);
		if( cursrc.src != web_home+"img/okmark.gif")
		{
		  var ran = Math.floor(Math.random() * 10000);
    	   //zrc=web_home+'script/cart.php?action=add_img&id='+id+'&nocache='+ran;
    	   //zrc='{web_home}skins/standard/cancella.gif?action=add_img&id='+id+'&nocache='+ran;
    	   cursrc.src=web_home+"img/okmark.gif";
    	}
	}
	if((cursrc.src == def_image )||(curr_compl==1))return true;
	//completed=1;	
	eval('completed'+fieldname+'=1;');
//	parent.frames.leftFrame.location.reload(true);
	//alert(document.add.src + ' loaded');
}

function ReadCookie (CookieName) {
	var CookieString = document.cookie;
	var CookieSet = CookieString.split (';');
	var SetSize = CookieSet.length;
	var CookiePieces
	var ReturnValue = "";
	var x = 0;
	for (x = 0; ((x < SetSize) && (ReturnValue == "")); x++) {
		CookiePieces = CookieSet[x].split ('=');
		if (CookiePieces[0].substring (0,1) == ' ') {
		CookiePieces[0] = CookiePieces[0].substring (1, CookiePieces[0].length);
		}
		if (CookiePieces[0] == CookieName) {
		ReturnValue = CookiePieces[1];
		}
	}
	return ReturnValue;
}
function addcart(id,imname)
{
	/*var check=ReadCookie('TesterCookie');
	if (check!='zanzibar')
	{
	alert('Die Warenkorbfunktion wird demnächst aktiviert.');
	return false;
	}*/
	var completed;
	var imma;
	var curr_status;

	imma=eval('document.'+imname);
	curr_status=eval('typeof completed'+imname);
	if(curr_status == 'undefined')completed=0;
	else {
		completed=eval('completed'+imname);
	}
	if(completed==1)
	{
	if(confirm(want_more))
	{
	eval('completed'+imname+'=0;');
	}
	else return true;
	}
	var ran = Math.floor(Math.random() * 10000);
	zrc=web_home+'script/cart.php?action=add_img&id='+id+'&nocache='+ran;
	//zrc='{web_home}skins/standard/cancella.gif?action=add_img&id='+id+'&nocache='+ran;
	imma.src=zrc;
}
// end hiding script from old browsers -->
