var connection = null;
ahah = function( a, b , c )
{
        this.url = a;
        this.div = b;
        this.status = 0;
        this.wide = false;
        this.printinfo = c;
        this.load = function()
        {
                if (c != null)
                {
                      document.getElementById(this.div).innerHTML = "<div id='prodlist'><!--| Prodlist start |--><table summary='Summary' border='0' cellpadding='0' cellspacing='0' width='100%'><thead><tr><th colspan='2' class='left-padding' width='470'><a href='#'>Produkter</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- | --></th><th width='100'>Pris</th><th width='100'>Enhet</th><th width='110'>Kommentar</th></tr></thead></table><div id='produkter' name='produkter'></div><img style='padding:20px;' src='/"+dbfp+"/progress.gif' alt='søker...'>";
                }else
                {
                        document.getElementById(this.div).innerHTML = "<img src='/"+dbfp+"/progress.gif' alt='søker...'>";
                }
                if(navigator.appName == "Microsoft Internet Explorer"){
                        this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                }else{ 
                        this.xmlhttp = new XMLHttpRequest(); 
                }
                if (this.xmlhttp)
                { 
                        var oThis = this;
                        this.xmlhttp.onreadystatechange = function() { oThis.callback() }
                        this.xmlhttp.open("GET",this.url,true)
                        this.xmlhttp.send(null);
                        this.status  = 1;
                }
         }
        this.callback = function()
        {
                if (this.xmlhttp.readyState==4)
                {
                        if (this.xmlhttp != null && this.xmlhttp.status==200)
                        {      
			document.getElementById(this.div).innerHTML = this.xmlhttp.responseText;                          
			if (SYM.util.dom.getObject("search_products") != null )
			{
if (this.wide)
{
				if (SYM.util.dom.getObject("search_products").innerHTML != "0")
{
 document.getElementById(this.div).innerHTML = "<div id='prodlist'><!--| Prodlist start |--><table summary='Summary' border='0' cellpadding='0' cellspacing='0' width='100%'><thead><tr><th colspan='2' class='left-padding' width='470'><a href='#'>Produkter</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- | --></th><th width='100'>Pris</th><th width='100'>Enhet</th><th width='110'>Kommentar</th></tr></thead></table><div id='produkter' name='produkter'></div><div style='padding:10px;'> Produktet finnes ikke i denne butikken, men kan kjøpes i den andre butikken på OSL</div>";
}
}else
{
				if (SYM.util.dom.getObject("search_products").innerHTML == "0")
				{
					if (dbs == "700fab1aae541720c12574a30060b5d7" || dbs == "85287cac26b24c24c12574a30060b5cc")
{
if (this.url.indexOf( "700fab1aae541720c12574a30060b5d7" ) == -1)
{
this.url = this.url.replace("85287cac26b24c24c12574a30060b5cc" , "700fab1aae541720c12574a30060b5d7");
}else
{
this.url = this.url.replace("700fab1aae541720c12574a30060b5d7" , "85287cac26b24c24c12574a30060b5cc" );
}
} 
this.wide = true;
this.load();	
}
				}
			}
                       }else
                        {
                                this.status = 404;
                                document.getElementById(this.div).innerHTML = this.xmlhttp.responseText;
                        }
                } 
        }
}

