<!--
/////////////////////////////////////////////////////////////////////////////
//  $Id: e1.js,v 1.22 2005/07/08 12:52:48 vadymg Exp $
// 
//  Caspio External Embed Javascript Version 1
//  (C) Copyright 2004 Caspio, Inc. All Rights Reserved.
//
/////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////
// Extra tests to ensure that only IE5.5+ (IE6) will do the undefined tests
//       IE4+                 IE5+                                                                      IE5.5+ 
if ((document.all) && (document.getElementById) && (document.body) && (document.body.style) && (document.body.style.filter)) {
if (v_winloc_host == undefined) var v_winloc_host = window.location.host;
if (v_winloc_pathname == undefined) var v_winloc_pathname = window.location.pathname;
if (v_winloc_search == undefined) var v_winloc_search = window.location.search;
} else { var v_winloc_host = window.location.host; var v_winloc_pathname = window.location.pathname; var v_winloc_search = window.location.search; }
function f_cbload(v_sK, v_sP) {
	v_path = v_winloc_pathname+v_winloc_search;
    document.write("\n<style type=\"text/css\">\n<!--\n #cxkg {visibility:hidden; font-size:6px; position:relative; }\n-->\n</style>\n");
    if ((v_path.toUpperCase().indexOf("DP.ASP?APPKEY=") != -1)||(v_path.toUpperCase().indexOf("DP.ASP?APPSESSION=") != -1)) 
    	document.write("<br/><strong>Error - Cannot display DataPage due to multiple embedded deployments.</strong></br>");
    else document.write("<scri"+"pt type=\"text/javascript\" src=\""+v_sP+"//bridge.caspio.net/dp.asp?AppKey="+v_sK+"&amp;js=true&amp;pathname="+window.location.protocol+"//"+v_winloc_host+v_winloc_pathname+"&amp;"+v_winloc_search+"\"></scr"+"ipt>");
}
//->


