/** xcall - Cross broswer call, it's a toy now                               **
 ** Version 0.25 alpha                                                        **
 ** Powered by wudi  -  woodlessr@hotmail.com - 2k08-07-31                   **
 ** www.woodless.net                                                         **/
var xcall = {
  FNSC: (function() {
      var cc = document.body || document.getElementsByTagName("HEAD")[0];
      var c = document.createElement("DIV");
      c.style.display = "none";
      cc.appendChild(c);
      return c;
    })(),
  PROXY_TEXT_URL: "http://tom.com/proxy/xcall.proxy.call.php",
  call: function(url, fnCallback, charset) {
    var sc = document.createElement("SCRIPT");
    sc.type = "text/javascript";
	sc.charset = charset || "UTF-8";
    sc.src = this.PROXY_TEXT_URL + "?XCALL_URL=" + encodeURIComponent(url) + "&XCALL_FNCB=" + fnCallback + "&XCALL_CHARSET=" + charset + "&rdm=" + new Date().getTime();
    this.FNSC.appendChild(sc);
  }
}
