13. März 2010 14:03
// Load Map URL
{
  var AccountStreet = crmForm.all.address1_line1.DataValue;
  var AccountCity = crmForm.all.address1_city.DataValue;
  var AccountZip = crmForm.all.address1_postalcode.DataValue;
  var MapURL = "http://www.bing.com/maps/default.aspx?v=2&where1=" + AccountStreet + "%2C%20" + AccountZip + "%20" + AccountCity + "";
  if (MapURL != null){
    crmForm.all.IFRAME_map.src = MapURL;
  }
}
13. März 2010 18:56
13. März 2010 19:13
14. März 2010 10:58
15. März 2010 11:47
var AccountStreet = "";
if(  crmForm.all.address1_line1.DataValue != null){
AccountStreet = crmForm.all.address1_line1.DataValue.replace(" ", "%20");
}
var AccountCity = crmForm.all.address1_city.DataValue;
var AccountZip = crmForm.all.address1_postalcode.DataValue;
var MapURL = "http://maps.google.de/maps?f=d&source=embed&saddr=<Strasse>+<Hausnummer>,+<Postleitzahl>+<Ort>&daddr=" + AccountStreet + "+" + AccountZip + "+" + AccountCity  + "&view=map&hl=de";
if (MapURL != null)
   {
      crmForm.all.IFRAME_map.src = MapURL;
   }
var MapURL =" http://www.bing.com/maps/default.aspx?v=2&mkt=de-de&rtp=adr.<Straße> <Hausnummer>, <Postleitzahl> <Ort>~adr." + AccountStreet + ", " + AccountZip + " " + AccountCity;15. März 2010 17:52
16. März 2010 18:36
16. März 2010 18:52
16. März 2010 23:29
crmForm.all.tab4Tab.onclick = function() {
  var AccountStreet = crmForm.all.address1_line1.DataValue;
  var AccountCity = crmForm.all.address1_city.DataValue;
  var AccountZip = crmForm.all.address1_postalcode.DataValue;
  var MapURL = "http://www.bing.com/maps/default.aspx?v=2&where1=" + AccountStreet + "%2C%20" + AccountZip + "%20" + AccountCity + "";
  if (MapURL != null){
    crmForm.all.IFRAME_map.src = MapURL;
  }
}17. März 2010 16:48
document.all.tab0Tab.onclick {...}document.all.tab1Tab.onclick {...}crmForm.all.tab4Tab.onclick = function(){  
  var AccountStreet = crmForm.all.address1_line1.DataValue;
  var AccountCity = crmForm.all.address1_city.DataValue;
  var AccountZip = crmForm.all.address1_postalcode.DataValue;
  //Nur Anzeige auf Bing Maps
  //var MapURL = 'http://www.bing.com/maps/default.aspx?v=2&where1=' + AccountStreet + ', ' + AccountZip + ' ' + AccountCity;
  //Routplanung mit Bing Maps, <Straße> <Hausnummer> <PLZ> <Ort> entsprechend ersetzen.
  var MapURL ='http://www.bing.com/maps/default.aspx?v=2&mkt=de-de&rtp=adr.<Straße> <Hausnummer>, <PLZ> <Ort>~adr.' + AccountStreet + ', ' + AccountZip + ' ' + AccountCity;
  
  if (MapURL != null){
    //Hier muss noch der IFramename ergänzt werden (in deinem Fall "IFRAME_map").
    crmForm.all.<Name des IFrames>.src = encodeURI(MapURL);
  }
}; 
17. März 2010 17:25
20. Januar 2011 17:13
21. Januar 2011 19:57
crmForm.all.tab5Tab.onclick = function(){
    var AccountStreet = crmForm.all.address1_line1.DataValue;
    var AccountCity = crmForm.all.address1_city.DataValue;
    var AccountZip = crmForm.all.address1_postalcode.DataValue;
    var BahnURL = 'http://reiseauskunft.bahn.de/bin/query.exe/dn?ld=212.24&searchMode=ADVANCED&REQ0JourneyStopsSA=2&REQ0JourneyStopsSG=%%%%%Abfahrtsort%%%%%,%%%%%Straße und Hausnummer%%%%%';
    if(AccountStreet != '' || AccountCity != '' || AccountZip != '' )
       {
          BahnURL = BahnURL + '&REQ0JourneyStopsZA=2&REQ0JourneyStopsZG=';
       if (AccountZip != '')
       {
           BahnURL = BahnURL + AccountZip + ' ';
       }   
       if (AccountCity != '')
       {
          BahnURL = BahnURL + AccountCity;
       }
       if (AccountStreet != '')
       {
          BahnURL = BahnURL + ', ' + AccountStreet;
       }
    }
    crmForm.all.IFRAME_Bahn.src = encodeURI(BahnURL);
}26. Januar 2011 12:17
crmForm.all.tab4Tab.onclick = function()
{ 
 var AccountStreet = crmForm.all.address1_line3.DataValue;
 var AccountCity = crmForm.all.address1_city.DataValue;
 var AccountZip = crmForm.all.address1_postalcode.DataValue;
 
//Routplanung mit Bing Maps, <Straße> <Hausnummer> <PLZ> <Ort> entsprechend ersetzen
var MapURL ='http://www.bing.com/maps/default.aspx?v=2&mkt=de-de&rtp=adr. Straße Nr, PLZ Ort~adr.' + AccountStreet + ', ' + AccountZip + ' ' + AccountCity;
 
  if (MapURL != null){
    //Hier muss noch der IFramename ergänzt werden (in deinem Fall "IFRAME_map")
    crmForm.all.IFRAME_map.src = encodeURI(MapURL);
  }
};
crmForm.all.tab5Tab.onclick = function(){
    var AccountStreet = crmForm.all.address1_line1.DataValue;
    var AccountCity = crmForm.all.address1_city.DataValue;
    var AccountZip = crmForm.all.address1_postalcode.DataValue;
    var BahnURL = 'http://reiseauskunft.bahn.de/bin/query.exe/dn?ld=212.24&searchMode=ADVANCED&REQ0JourneyStopsSA=1&REQ0JourneyStopsSG=Ort Hbf';
    if(AccountStreet != '' || AccountCity != '' || AccountZip != '' )
       {
          BahnURL = BahnURL + '&REQ0JourneyStopsZA=2&REQ0JourneyStopsZG=';
       if (AccountZip != '')
       {
           BahnURL = BahnURL + AccountZip + ' ';
       }   
       if (AccountCity != '')
       {
          BahnURL = BahnURL + AccountCity;
       }
       if (AccountStreet != '')
       {
          BahnURL = BahnURL + ', ' + AccountStreet;
       }
    }
    crmForm.all.IFRAME_Bahn.src = encodeURI(BahnURL);
}
26. Januar 2011 21:06
27. Januar 2011 09:19