sendmessage in Chrome help

I am using Sednmessage for game communication and it is not working in Chrome. I have ready many threads and tried the suggestions.

I am using this:

function GetUnity () {
if (navigator.appVersion.indexOf("MSIE") != -1 && navigator.appVersion.toLowerCase().indexOf("win") != -1)
return document.getElementById("UnityObject");
else if (navigator.appVersion.toLowerCase().indexOf("chrom e") != -1)
return document.getElementById("UnityEmbed");
else if (navigator.appVersion.toLowerCase().indexOf("safar i") != -1)
return document.getElementById("UnityObject");
else
return document.getElementById("UnityEmbed");
}

An example of a send message call that I use is:

GetUnity().SendMessage("Main Camera", "OnClientLogin", message);

In Unity it is received with this:

public void OnClientLogin(string message)
{
networkHandler.OnClientLogin(message);
}

I have even tried doing this

function GetUnity () {
return document.getElementById("UnityEmbed");

}

To ensure that this is the only one yet that does no good.

I get this error: Object # has no method 'SendMessage'

I have also changed things and put in just:

then to get the UNitygame object user:

var unity = unityObject.getObjectById("UnityEmbed");

But then on sendmessage I get 45Uncaught TypeError: Cannot call method 'SendMessage' of undefined

I am using unity2.6 and can not go to 3 as I am building a system that can not rely on people using crossdomain.xml

What works for me is generate a fresh html file (by building it), then use your first syntax of GetUnity().SendMessage

The orginal should look something like this:

function GetUnity() {
    if (typeof unityObject != "undefined") {
        return unityObject.getObjectById("unityPlayer");
    }
    return null;
}