var getPromo  = { success: function(o) { document.getElementById( "idPromo" ).innerHTML  = o.responseText; } }
var getCurs   = { success: function(o) { parent.frames[1].document.getElementById( "idCurs" ).innerHTML  = o.responseText; } }
var getVreme  = { success: function(o) { parent.frames[1].document.getElementById( "idMeteo" ).innerHTML  = o.responseText; } }
var getOnline = { success: function(o) { parent.frames[1].document.getElementById( "idOnline" ).innerHTML = o.responseText; } }
var getB1     = { success: function(o) { parent.document.getElementById( "idB1" ).innerHTML = o.responseText; } }
var getB2     = { success: function(o) { parent.document.getElementById( "idB2" ).innerHTML = o.responseText; } }
var getB3     = { success: function(o) { parent.parent.document.getElementById( "idB2" ).innerHTML = o.responseText; } }

function doPromo()       { YAHOO.util.Connect.asyncRequest( 'GET', "../php/promo.php?sid="   + Math.random(), getPromo, null ); }
function doCurs()        { YAHOO.util.Connect.asyncRequest( 'GET', "../php/curs.php?sid="    + Math.random(), getCurs, null ); }
function doVreme( oras ) { YAHOO.util.Connect.asyncRequest( 'GET', "../php/vreme.php?sid="   + Math.random() + "&oras=" + oras, getVreme, null ); }
function doOnline()      { YAHOO.util.Connect.asyncRequest( 'GET', "../php/online.php?sid="  + Math.random(), getOnline, null ); }
function doB1()          { YAHOO.util.Connect.asyncRequest( 'GET', "../php/marquee.php?sid=" + Math.random() + "&bara=1", getB1, null ); }
function doB2()          { YAHOO.util.Connect.asyncRequest( 'GET', "../php/marquee.php?sid=" + Math.random() + "&bara=2", getB2, null ); }
function doB3()          { YAHOO.util.Connect.asyncRequest( 'GET', "../php/marquee.php?sid=" + Math.random() + "&bara=2", getB3, null ); }

var _getVreme  = { success: function(o) { document.getElementById( "idMeteo" ).innerHTML  = o.responseText; } }
function _doVreme( oras ) { YAHOO.util.Connect.asyncRequest( 'GET', "../php/_vreme.php?sid="   + Math.random() + "&oras=" + oras, _getVreme, null ); }

