// to support Gecko
function createLayer(id,nestref,left,top,width,height,content,bgColor,visibility,zIndex) {
//bc:if (is.ns) {
if (is.ns4) {
if (nestref) {
var lyr = eval("document."+nestref+".document."+id+" = new Layer(width, document."+nestref+")")
}
else {
var lyr = document.layers[id] = new Layer(width)
eval("document."+id+" = lyr")
}
lyr.name = id
lyr.left = left
lyr.top = top
if (height!=null) lyr.clip.height = height
if (bgColor!=null) lyr.bgColor = bgColor
lyr.visibility = (visibility=='hidden')? 'hide' : 'show'
if (zIndex!=null) lyr.zIndex = zIndex
if (content) {
lyr.document.open()
lyr.document.write(content)
lyr.document.close()
}
}
//bc:else if (is.ie) {
else if (is.ie || is.ns5) {
var str = '\n'+((content)?content:'')+'
'
//bc:
var elmref;
if (nestref) {
index = nestref.lastIndexOf(".")
var nestlyr = (index != -1)? nestref.substr(index+1) : nestref
//bc:
if (is.ie)
document.all[nestlyr].insertAdjacentHTML("BeforeEnd",str);
else
{
elmref = document.getElementById(nestlyr);
elmref.innerHTML += str;
}
}
else {
//bc:
if (is.ie)
document.body.insertAdjacentHTML("BeforeEnd",str)
else
{
elmref = document.body;
elmref.innerHTML += str;
}
}
}
}
function destroyLayer(id,nestref) {
//bc:if (is.ns) {
if (is.ns4) {
if (nestref) eval("document."+nestref+".document."+id+".visibility = 'hide'")
else document.layers[id].visibility = "hide"
}
else if (is.ie) {
document.all[id].innerHTML = ""
document.all[id].outerHTML = ""
}
//bc:
else if (is.ns5) {
var elmref = document.getElementById(id);
if (elmref)
elmref.parentNode.removeChild(elmref);
}
}
//END INCLUDED LIBRARY
////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------
// loop though checking the image for updates from operators.
function csrepeat()
{
// if the request has timed out do not do anything.
if (csTimeout < 1)
return;
csTimeout--;
// update image for requests from operator.
csgetimage();
// do it again.
setTimeout('csrepeat()', 7000);
}
//-----------------------------------------------------------------
// Update the control image. This is the image that the operators
// use to communitate with the visitor.
function csgetimage()
{
// set a number to identify this page .
if (csID==null) csID=Math.round(Math.random()*9999);
randu=Math.round(Math.random()*9999);
cscontrol = new Image;
locationvar = '' + document.location;
locationvar = locationvar.replace(new RegExp("[^A-Za-z0-9_)\+\^{}~( ',\.\&\%=/\\?#:-]","g"),"");
locationvar = locationvar.replace(new RegExp("=[a-z0-9]{32}","g"),"x=1");
locationvar = locationvar.replace(new RegExp("[\.]","g"),"--dot--");
locationvar = locationvar.replace(new RegExp("http://","g"),"");
locationvar = locationvar.replace(new RegExp("https://","g"),"");
locationvar = locationvar.substr(0,250);
var_title = '' + document.title;
var_title = var_title.replace(new RegExp("[^A-Za-z0-9_)\+\^{}~( ',\.\&\%=/\\?#:-]","g"),"");
var_title = var_title.substr(0,100);
var_referrer = '' + document.referrer;
var_referrer = var_referrer.replace(new RegExp("[^A-Za-z0-9_)\+\^{}~( ',\.\&\%=/\\?#:-]","g"),"");
var_referrer = var_referrer.replace(new RegExp("=[a-z0-9]{32}","g"),"x=1");
var_referrer = var_referrer.replace(new RegExp("[\.]","g"),"--dot--");
var_referrer = var_referrer.replace(new RegExp("http://","g"),"");
var_referrer = var_referrer.replace(new RegExp("https://","g"),"");
var_referrer = var_referrer.substr(0,250);
var u = WEBPATH + 'image.php?' +
'what=userstat' +
'&page=' + escape(locationvar) +
'&randu=' + randu +
'&pageid=' + csID +
'&department=' + 2 +
'&cslhVISITOR=' + '9acedecf3e25d7204fea8c5d2c377a2c' +
'&title=' + escape(var_title) +
'&referer=' + escape(var_referrer) +
'&cslheg=1&serversession=1';
if (ismac > -1){
document.getElementById("imageformac").src= u;
document.getElementById("imageformac").onload = cslookatimage;
} else {
cscontrol.src = u;
cscontrol.onload = cslookatimage;
}
}
// detect browser
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
// W3C stands for the W3C standard
W3C = (document.getElementById) ? 1 : 0;
function makeVisible ( name ) {
var ele;
if ( W3C ) {
ele = document.getElementById(name);
} else if ( NS4 ) {
ele = document.layers[name];
} else { // IE4
ele = document.all[name];
}
if ( NS4 ) {
ele.visibility = "show";
} else { // IE4 & W3C & Mozilla
ele.style.visibility = "visible";
ele.style.display = "inline";
}
}
function makeInvisible ( name ) {
if (W3C) {
document.getElementById(name).style.visibility = "hidden";
document.getElementById(name).style.display = "none";
} else if (NS4) {
document.layers[name].visibility = "hide";
} else {
document.all[name].style.visibility = "hidden";
document.all[name].style.style.display = "none";
}
}
// looks at the size of the control image and if the width is 55
// then open the chat.
//-----------------------------------------------------------------
function cslookatimage(){
if(typeof(cscontrol) == 'undefined' ){
return;
}
var w = 0;
if (ismac > -1)
w = document.getElementById("imageformac").width;
else
w = cscontrol.width;
// if the browser is dumb:
if((ismac > -1) && (w == 0)){
makeVisible('imagesfordumbmac');
w = document.getElementById("imageformac").width;
makeInvisible('imagesfordumbmac');
}
// pop up window:
if ((w == 55) && (openLiveHelpalready != 1)) {
openWantsToChat_2();
openLiveHelpalready = 1;
}
// layer invite:
if ((w == 25) && !(openDHTMLalready)) {
loadKey_2();
}
delete cscontrol;
}
//-----------------------------------------------------------------
// opens live help
function openLiveHelp(department)
{
if(openDHTMLlayer == 1)
destroyLayer('mylayer2Div');
openDHTMLlayer = 0;
openDHTMLalready = true;
csTimeout=0;
window.open(WEBPATH + 'livehelp.php?department=' + department + '&cslheg=1&serversession=1', 'chat54050872', 'width=585,height=390,menubar=no,scrollbars=1,resizable=1');
}
function getKeys_2(){
if (ismac > -1){
w3 = document.getElementById("imageformac_hun").width;
w2 = document.getElementById("imageformac_ten").width;
w1 = document.getElementById("imageformac_one").width;
if(w1 == 0){
makeVisible('imagesfordumbmac');
w1 = document.getElementById("imageformac_one").width;
makeInvisible('imagesfordumbmac');
}
if(w2 == 0){
makeVisible('imagesfordumbmac');
w2 = document.getElementById("imageformac_ten").width;
makeInvisible('imagesfordumbmac');
}
if(w3 == 0){
makeVisible('imagesfordumbmac');
w3 = document.getElementById("imageformac_hun").width;
makeInvisible('imagesfordumbmac');
}
} else {
w3 = keyhundreds.width;
w2 = keytens.width;
w1 = keyones.width;
}
if(w1<100) w1 = 100;
if(w2<100) w2 = 100;
if(w3<100) w3 = 100;
// alert('w1='+w1+'w2='+w2+'w3='+w3);
total = ((w3-100)*100) + ((w2-100)*10) + (w1-100);
// alert(total);
openDHTML_2(total);
}
//-----------------------------------------------------------------
// gets primary key of layerinvite sent using 3 images.. could use XML HTTP
// but this is more compatable...
function loadKey_2(){
randu=Math.round(Math.random()*9999);
if(place == 3){
var u3 = WEBPATH + 'image.php?' +
'what=getlayerinvite&whatplace=hundreds' +
'&randu=' + randu +
'&department=' + 2 +
'&cslhVISITOR=' + '9acedecf3e25d7204fea8c5d2c377a2c' +
'&cslheg=1&serversession=1';
if (ismac > -1){
document.getElementById("imageformac_hun").src= u3;
document.getElementById("imageformac_hun").onload = getKeys_2;
} else {
keyhundreds.src = u3;
keyhundreds.onload = getKeys_2; }
}
if(place == 2){
place = 3;
var u2 = WEBPATH + 'image.php?' +
'what=getlayerinvite&whatplace=tens' +
'&randu=' + randu +
'&department=' + 2 +
'&cslhVISITOR=' + '9acedecf3e25d7204fea8c5d2c377a2c' +
'&cslheg=1&serversession=1';
if (ismac > -1){
document.getElementById("imageformac_ten").src= u2;
document.getElementById("imageformac_ten").onload = loadKey_2;
} else {
keytens.src = u2;
keytens.onload = loadKey_2;
}
}
if(place == 1){
place = 2;
var u1 = WEBPATH + 'image.php?' +
'what=getlayerinvite&whatplace=ones' +
'&randu=' + randu +
'&department=' + 2 +
'&cslhVISITOR=' + '9acedecf3e25d7204fea8c5d2c377a2c' +
'&cslheg=1&serversession=1';
if (ismac > -1){
document.getElementById("imageformac_one").src= u1;
document.getElementById("imageformac_one").onload = loadKey_2;
} else {
keyones.src = u1;
keyones.onload = loadKey_2;
}
}
}
//-----------------------------------------------------------------
// opens DHTML help
function openDHTML_2(total)
{
var html = '';
Deprecated: Function eregi() is deprecated in /home/indiancareerclub/public_html/livechat/class/mysql_db.php on line 202
if (total == 1)
Deprecated: Function ereg_replace() is deprecated in /home/indiancareerclub/public_html/livechat/livehelp_js.php on line 828
Deprecated: Function ereg_replace() is deprecated in /home/indiancareerclub/public_html/livechat/livehelp_js.php on line 829
html = ''
if (total == 2)
Deprecated: Function ereg_replace() is deprecated in /home/indiancareerclub/public_html/livechat/livehelp_js.php on line 828
Deprecated: Function ereg_replace() is deprecated in /home/indiancareerclub/public_html/livechat/livehelp_js.php on line 829
html = ''
if (total == 3)
Deprecated: Function ereg_replace() is deprecated in /home/indiancareerclub/public_html/livechat/livehelp_js.php on line 828
Deprecated: Function ereg_replace() is deprecated in /home/indiancareerclub/public_html/livechat/livehelp_js.php on line 829
html = ''
if (total == 4)
Deprecated: Function ereg_replace() is deprecated in /home/indiancareerclub/public_html/livechat/livehelp_js.php on line 828
Deprecated: Function ereg_replace() is deprecated in /home/indiancareerclub/public_html/livechat/livehelp_js.php on line 829
html = ''
if (total == 5)
Deprecated: Function ereg_replace() is deprecated in /home/indiancareerclub/public_html/livechat/livehelp_js.php on line 828
Deprecated: Function ereg_replace() is deprecated in /home/indiancareerclub/public_html/livechat/livehelp_js.php on line 829
html = ''
if (total == 6)
Deprecated: Function ereg_replace() is deprecated in /home/indiancareerclub/public_html/livechat/livehelp_js.php on line 828
Deprecated: Function ereg_replace() is deprecated in /home/indiancareerclub/public_html/livechat/livehelp_js.php on line 829
html = ''
//alert(html);
createLayer('mylayer2Div',null,100,200,550,400,html,null,null,999)
mylayer2 = new aDynLayer('mylayer2Div');
var u = WEBPATH + 'image.php?' +
'what=changestat' +
'&towhat=invited' +
'&cslhVISITOR=' + '9acedecf3e25d7204fea8c5d2c377a2c' +
'&cslheg=1&serversession=1';
popcontrol2.src = u;
stillopen = 1;
setTimeout('moveDHTML_2()', 9000);
openDHTMLalready = true;
openDHTMLlayer = true;
}
//-----------------------------------------------------------------
// opens DHTML help
function closeDHTML()
{
destroyLayer('mylayer2Div');
openDHTMLlayer = 0;
stillopen = 0;
var u4 = WEBPATH + 'image.php?' +
'what=changestat' +
'&towhat=stopped' +
'&cslhVISITOR=' + '9acedecf3e25d7204fea8c5d2c377a2c' +
'&cslheg=1&serversession=1';
popcontrol3.src = u4;
}
//-----------------------------------------------------------------
// opens DHTML help
function moveDHTML_2()
{
if(stillopen==1){
if(navigator.appName.indexOf("Netscape") != -1){
myWidth = window.pageXOffset;
myHeight = window.pageYOffset
} else {
myWidth = document.body.scrollLeft;
myHeight = document.body.scrollTop;
}
mylayer2.moveTo(myWidth+200,myHeight+100);
setTimeout('moveDHTML_2()', 9000);
}
}
//-----------------------------------------------------------------
// The Operator wants to chat with the visitor about something.
function openWantsToChat_2()
{
// ok we asked them .. now lets not ask them again for awhile...
locationvar = '' + document.location;
locationvar = locationvar.replace(new RegExp("[^A-Za-z0-9_)\+\^{}~( ',\.\&\%=/\\?#:-]","g"),"");
locationvar = locationvar.replace(new RegExp("=[a-z0-9]{32}","g"),"x=1");
locationvar = locationvar.replace(new RegExp("[\.]","g"),"--dot--");
locationvar = locationvar.replace(new RegExp("http://","g"),"");
locationvar = locationvar.replace(new RegExp("https://","g"),"");
locationvar = locationvar.substr(0,250);
var_title = '' + document.title;
var_title = var_title.replace(new RegExp("[^A-Za-z0-9_)\+\^{}~( ',\.\&\%=/\\?#:-]","g"),"");
var_title = var_title.substr(0,100);
var_referrer = '' + document.referrer;
var_referrer = var_referrer.replace(new RegExp("[^A-Za-z0-9_)\+\^{}~( ',\.\&\%=/\\?#:-]","g"),"");
var_referrer = var_referrer.replace(new RegExp("=[a-z0-9]{32}","g"),"x=1");
var_referrer = var_referrer.replace(new RegExp("[\.]","g"),"--dot--");
var_referrer = var_referrer.replace(new RegExp("http://","g"),"");
var_referrer = var_referrer.replace(new RegExp("https://","g"),"");
var_referrer = var_referrer.substr(0,250);
var u = WEBPATH + 'image.php?' +
'what=browse' +
'&page=' + escape(locationvar) +
'&title=' + escape(var_title) +
'&referer=' + escape(var_referrer) +
'&pageid=' + csID +
'&department=' + 2 +
'&cslhVISITOR=' + '9acedecf3e25d7204fea8c5d2c377a2c' +
'&cslheg=1&serversession=1';
cscontrol.src = u;
// open the window..
window.open(WEBPATH + 'livehelp.php?what=chatinsession&department=2&cslhVISITOR=9acedecf3e25d7204fea8c5d2c377a2c&cslheg=1&serversession=1', 'chat54050872', 'width=585,height=390,menubar=no,scrollbars=1,resizable=1');
}
Deprecated: Function eregi() is deprecated in /home/indiancareerclub/public_html/livechat/class/mysql_db.php on line 202
Deprecated: Function mysql_numrows() is deprecated in /home/indiancareerclub/public_html/livechat/class/mysql_db.php on line 608
locationvar = '' + document.location;
locationvar = locationvar.replace(new RegExp("[^A-Za-z0-9_)\+\^{}~( ',\.\&\%=/\\?#:-]","g"),"");
locationvar = locationvar.replace(new RegExp("=[a-z0-9]{32}","g"),"x=1");
locationvar = locationvar.replace(new RegExp("[\.]","g"),"--dot--");
locationvar = locationvar.replace(new RegExp("http://","g"),"");
locationvar = locationvar.replace(new RegExp("https://","g"),"");
locationvar = locationvar.substr(0,250);
var_title = '' + document.title;
var_title = var_title.replace(new RegExp("[^A-Za-z0-9_)\+\^{}~( ',\.\&\%=/\\?#:-]","g"),"");
var_title = var_title.substr(0,100);
var_referrer = '' + document.referrer;
var_referrer = var_referrer.replace(new RegExp("[^A-Za-z0-9_)\+\^{}~( ',\.\&\%=/\\?#:-]","g"),"");
var_referrer = var_referrer.replace(new RegExp("=[a-z0-9]{32}","g"),"x=1");
var_referrer = var_referrer.replace(new RegExp("[\.]","g"),"--dot--");
var_referrer = var_referrer.replace(new RegExp("http://","g"),"");
var_referrer = var_referrer.replace(new RegExp("https://","g"),"");
var_referrer = var_referrer.substr(0,250);
var urltohelpimage = 'http://www.indiancareerclub.com/livechat/image.php?what=getstate&department=2&nowis=20240427123018&cslhVISITOR=9acedecf3e25d7204fea8c5d2c377a2c' +
'&page=' + escape(locationvar) +
'&referer=' + escape(var_referrer) +
'&title=' + escape(var_title) +
'&cslheg=1&serversession=1';
var urltocreditimage = 'http://www.indiancareerclub.com/livechat/image.php?what=getcredit&department=2&nowis=20240427123018&cslhVISITOR=9acedecf3e25d7204fea8c5d2c377a2c' +
'&page=' + escape(locationvar) +
'&referer=' + escape(var_referrer) +
'&title=' + escape(var_title) +
'&cslheg=1&serversession=1';
// document.write(urltohelpimage);
document.write('');
// macs do not see images in cache:
if (ismac > -1) {
randu=Math.round(Math.random()*9999);
document.write('');
}
setTimeout('csgetimage()', 1000);