var selected;
var submitter = null;

function submitFunction() {
    submitter = 1;
}
function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}  

function popupWindow_sizeable(url, pop_height, pop_width) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=' + pop_height + ',height=' + pop_width + ',screenX=150,screenY=150,top=150,left=150')
} 

function selectRowEffect(object, buttonSelect) {
  if (!selected) {
    if (document.getElementById) {
      selected = document.getElementById('defaultSelected');
    } else {
      selected = document.all['defaultSelected'];
    }
  }

  if (selected) selected.className = 'moduleRow';
  object.className = 'moduleRowSelected';
  selected = object;

// one button is not an array
  if (document.getElementById('payment'[0])) {
    document.getElementById('payment'[buttonSelect]).checked=true;
  } else {
    //document.getElementById('payment'[selected]).checked=true;
  }
}

function rowOverEffect(object) {
  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
  if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}

function popupImageWindow(url) {
  window.open(url,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}

<!--
	/*----------------------------Suggest Code-------------------------*/
	/*
		This is the JavaScript file for the osCommerce AJAX Search Suggest
	
		You may use this code in your own projects as long as this 
		copyright is left	in place.  All code is provided AS-IS.
		This code is distributed in the hope that it will be useful,
	 	but WITHOUT ANY WARRANTY; without even the implied warranty of
	 	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
		
		For the rest of this code visit http://www.osCommerce-SSL.com
		
		For a complete detailed tutorial on how this code works visit:
		http://www.dynamicajax.com/fr/AJAX_Suggest_Tutorial-271_290_312.html
		
		For more AJAX code and tutorials visit http://www.DynamicAJAX.com
		
		Copyright 2006 Ryan Smith / 345 Technical / 345 Group.	
		
		Auf XT-Commerce portiert von TechWay (Steffen Decker) mit Unterstützung von Purecut (aus dem ecombase.de Forum)
		Copyright 2006 @ TechWay, Steffen Decker
	*/
	//Gets the browser specific XmlHttpRequest Object
	function getXmlHttpRequestObject() {
		if (window.XMLHttpRequest) {
			return new XMLHttpRequest();
		} else if(window.ActiveXObject) {
			return new ActiveXObject("Microsoft.XMLHTTP");
		} else {
			alert("Your Browser Sucks!\nIt's about time to upgrade don't you think?");
		}
	}
	
	//Our XmlHttpRequest object to get the auto suggest
	var searchReq = getXmlHttpRequestObject();
	
	//Called from keyup on the search textbox.
	//Starts the AJAX request.
	function searchSuggest() {
		if (searchReq.readyState == 4 || searchReq.readyState == 0) {
			var str = escape(document.getElementById('txtSearch').value);
			searchReq.open("GET", 'searchSuggest.php?search=' + str, true);
			searchReq.onreadystatechange = handleSearchSuggest; 
			searchReq.send(null);
		}		
	}
	
	//Called when the AJAX response is returned.
	function handleSearchSuggest() {
		if (searchReq.readyState == 4) {
			var ss = document.getElementById('search_suggest')
			ss.innerHTML = '';
			var str = searchReq.responseText.split("\n");
			for(i=0; i < str.length - 1; i++) {
				if(i > 14)
				{
					var suggest = '<span class="schrift_xxsmall">&nbsp;</span><div class="schrift_rot" align="center">' + str[i] + '</div><span class="schrift_xxsmall">&nbsp;</span>';
					ss.innerHTML += suggest;
				}
				else
				{
					//Build our element string.  This is cleaner using the DOM, but
					//IE doesn't support dynamically added attributes.
					var suggest = '<div onmouseover="javascript:suggestOver(this);" ';
					suggest += 'onmouseout="javascript:suggestOut(this);" ';
					suggest += 'onclick="javascript:setSearch(this.innerHTML);" ';
					suggest += 'class="suggest_link">' + str[i] + '</div>';
					ss.innerHTML += suggest;
				}
			}
			if (i==0) {
				ss.style.visibility  = "hidden";
			} else {
				ss.style.visibility  = "visible";
			}
			//Schließen link einfügen
			ss.innerHTML += '<p align="right"><a onmouseover="javascript:suggestOver(this);" onmouseout="javascript:suggestOut(this);" onClick="javascript:suggestClose(this);" class="suggest_link"><b>Fenster schließen</b></a></p>';
		}
	}
	// Close Function
	function suggestClose (div_value) {
		document.getElementById('search_suggest').innerHTML = '';
		document.getElementById('search_suggest').style.visibility  = "hidden";
	}
	
	//Mouse over function
	function suggestOver(div_value) {
		div_value.className = 'suggest_link_over';
	}
	//Mouse out function
	function suggestOut(div_value) {
		div_value.className = 'suggest_link';
	}
	//Click function
	function setSearch(value) {
		// HTML-TAGS entfernen
	  	var newvalue = value.replace(/<.*?>/gi, '');
		//Kategorienamen entfernen (fängt mit &nbsp; an)
		var Suche =	newvalue.indexOf("&nbsp;");
		var produktname = newvalue.substring(0,Suche);
		document.getElementById('txtSearch').value = produktname;
		document.getElementById('search_suggest').innerHTML = '';
		document.getElementById('search_suggest').style.visibility  = "hidden";
		//zum Suchergebnis weiterleiten
		top.location.href = "advanced_search_result.php?keywords=" + produktname; 
	}
	/*-------------------------End Suggest Code--------------------------------*/	
	//-->

/*
// --------------------------------------------------
// SCHNEE

// Anzahl der Schneeflocken (mehr als 30 - 40 nicht empfehlenswert)
var snowmax=30;

// Farben der Schneeflocken. Es können beliebig viele Farben angegeben werden
var snowcolor=new Array("#AAAACC","#DDDDFF","#CCCCDD","#F3F3F3","#F0FFFF");

// Fonts, welche die Schneeflocken erzeugen. Beliebig viele Fonts ergänzbar
var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS");

// Zeichen für die Schneeflocke (empfohlen: * )
var snowletter="*";

// Fallgeschwindigkeit (empfohlen sind Werte zwischen 0.3 bis 2)
var sinkspeed=0.6;

// Maximale Größe der Schneeflocken
var snowmaxsize=45;

// Minimale Größe der Schneeflocken
var snowminsize=20;

*/
/*  Schnee-Zone:
** 1 für überall, 2 für Schneefall nur auf der linken Seite
** 3 für Schneefall in der Mitte, 4 für Schneefall nur auf der rechten Seite */
//var snowingzone=1;

/*
* Ab hier nichts mehr ändern *
*/
/*
var snow=new Array();
var marginbottom;
var marginright;
var timer;
var i_snow=0;
var x_mv=new Array();
var crds=new Array();
var lftrght=new Array();
var browserinfos=navigator.userAgent ;
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/);
var ns6=document.getElementById&&!document.all;
var opera=browserinfos.match(/Opera/);
var browserok=ie5||ns6||opera;

function randommaker(range) {		
	rand=Math.floor(range*Math.random());
    return rand;
}

function initsnow() {
	if (ie5 || opera) {
		marginbottom = document.body.clientHeight;
		marginright = document.body.clientWidth;
	}
	else if (ns6) {
		marginbottom = window.innerHeight;
		marginright = window.innerWidth;
	}
	var snowsizerange=snowmaxsize-snowminsize;
	for (i=0;i<=snowmax;i++) {
		crds[i] = 0;                      
    	lftrght[i] = Math.random()*15;         
    	x_mv[i] = 0.03 + Math.random()/10;
		snow[i]=document.getElementById("s"+i);
		snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)];
		snow[i].size=randommaker(snowsizerange)+snowminsize;
		snow[i].style.fontSize=snow[i].size;
		snow[i].style.color=snowcolor[randommaker(snowcolor.length)];
		snow[i].sink=sinkspeed*snow[i].size/5;
		if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size);}
		if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size);}
		if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4;}
		if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2;}
		snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size);
		snow[i].style.left=snow[i].posx;
		snow[i].style.top=snow[i].posy;
	}
	movesnow();
}

function movesnow() {
	for (i=0;i<=snowmax;i++) {
		crds[i] += x_mv[i];
		snow[i].posy+=snow[i].sink;
		snow[i].style.left=(snow[i].posx+lftrght[i]*Math.sin(crds[i])) + "px";
		snow[i].style.top=snow[i].posy + "px";
		
		if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){
			if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size);}
			if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size);}
			if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4;}
			if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2;}
			snow[i].posy=0;
		}
	}
	var timer=setTimeout("movesnow()",50);
}

for (i=0;i<=snowmax;i++) {
	document.write("<div id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"px;z-index:1;'>"+snowletter+"</div>");
}
if (browserok) {
	window.onload=initsnow
}
*/

