// Call4Service Main
var SWF_Wx="";
var SWF_Hx="";
function FindMe()
{
return true;
}
function Call4ServFL_DoFSCommand(command, args)
{
var FLV_Target=args.substr(0,args.indexOf("|"));
var C4S_ARGE=args.substr((args.indexOf("|")+1));
//alert(FLV_Target+"_"+C4S_ARGE);
var txt;
if (command == "call_alert") {
alert("Here's the Flash message: " + args);
}
if (command != "alert") {
txt=command+"("+C4S_ARGE+")";
txt="window.document.Call4ServFL.SetVariable(\""+FLV_Target+"\", "+txt+")";
//alert(txt);
eval(txt);
}
}
function GiveMeVBS()
{
document.write("");
document.write("Sub Call4ServFL_FSCommand(ByVal command, ByVal args)");
document.write(" call Call4ServFL_DoFSCommand(command, args)");
document.write("end sub");
document.write("");
}
function DetectAX()
{
document.write("");
document.write("function DetectOBJ");
document.write(" On Error Resume Next");
document.write(" Set OBJ = CreateObject(\"ATL_SAMPLE.CAtlSampleObj.1\")");
document.write(" Set a = 0");
document.write(" If OBJ is Nothing Then");
document.write(" DetectOBJ=0");
document.write(" Else");
document.write(" DetectOBJ=OBJ.MajorVersion&chr(46)&snc.MinorVersion&chr(46)&snc.BuildVersion&chr(46)&snc.SubBuildVersion");
document.write(" Set OBJ = Nothing");
document.write(" End If");
document.write("end function");
document.write("");
}
function CheckVersion()
{
alert("document.Call4Serv.C4sCmd('ShowVersion','1, 0, 0, 31')");
return document.Call4Serv.C4sCmd("ShowVersion","1, 0, 0, 31");
}
function Call4Serv(ShowWhat)
{
//alert(ShowWhat);
var w=210;
var h=60;
var p='http://www.t2free.com/c4s_resource/31/ATL_SAMPLE.cab#version=1,0,0,31';
if (ShowWhat)
{
w=0;
h=0;
//p='';
}
document.write("");
return true;
}
function Call4Serv2(ShowWhat)
{
//alert(ShowWhat);
var w=210;
var h=60;
var p='http://www.t2free.com/c4s_resource/31/ATL_SAMPLE.cab#version=1,0,0,31';
if (ShowWhat)
{
w=0;
h=0;
//p='';
}
Call4MeDIV.innerHTML="";
return true;
}
function MakeUpdate()
{
/*var note="
";
var x_me=0;
x_me=document.Call4Serv.ShowVersion();
if (x_me!='1, 0, 0, 31')
{
document.Call4Serv.width=210;
document.Call4Serv.height=60;
Call4MeDIV.innerHTML = note;
}*/
}
function WCall4FL()
{
var swf_w=210;
var swf_h=250;
if (SWF_Wx>1)
{
swf_w=SWF_Wx;
swf_h=SWF_Hx;
}
var swfstr="";
document.write(swfstr);
return swfstr;
}
function RetNowTimePhp(St,Et,Esc)
{
var nowx='045830';
var noww='5';
//alert(St+"_"+nowx+"_"+Et+"_"+noww);
if (St<=nowx && Et>=nowx)
if (Esc.indexOf(noww)==-1)
return false;
else
return true;
else
return false;
}
GiveMeVBS();
//===============================================================================
//======================================================================
function detectLNG()
{
return 'zh-tw';
var BrowserLanguage='zh-tw';
//alert(window.navigator.userLanguage);
if (window.navigator.appName=="Microsoft Internet Explorer")
{
BrowserLanguage=window.navigator.userLanguage;
}else if (window.navigator.appName=="Netscape"){
BrowserLanguage=window.navigator.language
}
if (BrowserLanguage=="zh-tw" || BrowserLanguage=="en-us")
return BrowserLanguage;
else
return "en-us";
}
function SetDontUpdate()
{
StopUpdate=true;
}
function CheckLoad(IDNUpdate,IOHere)
{
if (StopUpdate==false)
{
setTimeout("document.Call4ServFL.Play()",1500);
if (CheckVersion()==true)
{
//alert('00');
IDNUpdate=true;
}
//alert(IDNUpdate+"_"+IOHere);
if (IOHere!=0 && IDNUpdate==false)
{
//alert('01');
setTimeout("setUpdateMe()",400);
}else{
//alert('02');
if (IOHere==0)
{
//alert('03');
setTimeout("setNoInstalled()",400);
}else{
//alert('04');
setTimeout("setDontUpdateMe()",200);
}
}
}
}
function Call(Num)
{
var msgx='Press OK! Call4Service will make a call directly.';
if (outmsgx!="")
{
msgx=outmsgx;
}
if (document.Call4Serv.C4sCmd('GetLoginState',''))
{
document.Call4ServFL.SetVariable("Call2Number",Num);
}else{
alert(msgx);
document.Call4ServFL.SetVariable("Call2Number",Num);
document.Call4ServFL.SetVariable("OUTCLICK",'GOGOGO');
}
}
var outmsgx="";