try{
    //http://localhost:2880/brokencurve.com/MediaDelivery/iframe.html
    var url = 'http://brokencurve.com/MediaDelivery/MediaDeliver.aspx?brokencurve_id=';
    //var url = 'http://brokencurve.com/MediaDelivery/MediaDeliver.aspx?brokencurve_id=';
    url += brokencurve_id;//ID of the partner
    url += '&height='+ brokencurve_height; //height
    url += '&width='+brokencurve_width; //width
   try{
        url += '&bcmedia_id='+brokencurve_mediaid;
   }catch(err){}
   try{
        url += '&brokencurve_search='+brokencurve_search;
   }catch(err){}
   try{
        url += '&bcbgcolor='+brokencurve_bgcolor;
   }catch(err){}
   try{
        url += '&brokencurve_autostart='+brokencurve_autostart;
   }catch(err){}
   
   try{
        url += '&brokencurve_marquee='+brokencurve_marquee;
   }catch(err){}
   try{
        url += '&brokencurve_fontsize='+brokencurve_fontsize;
   }catch(err){}
   try{
        url += '&brokencurve_fontfamily='+brokencurve_fontfamily;
   }catch(err){}
   try{
        url += '&brokencurve_fontcolor='+brokencurve_fontcolor;
   }catch(err){}
   try{
        url += '&brokencurve_showtitle='+brokencurve_showtitle;
   }catch(err){}
    url += '&ad_type=' + brokencurve_ad_type; //flv or jpg or txt or whatever
    //url += '&ad_id=' + brokencurve_ad_id; //IF they have a specific ID In mind to use
    url += '&ord_id=' + brokencurve_order_id; //delineated to make sure that the ads aren't repeated - NO randomness, then
    //url += '&ad_channel='+ brokencurve_ad_channel; //Caribbean, Urban, Latino, etc...
    document.write("<IFRAME src="+ url + " Height="+ brokencurve_height +" Width= " + brokencurve_width + " scrolling=no Frameborder=0 ></IFRAME>");
    brokencurve_order_id++;
    
}catch(err){
    document.write("<IFRAME src=http://brokencurve.com/MediaDelivery/nomedia.html Height=450 width= 450 scrolling=no Frameborder=0 ></IFRAME>");
}

