function varisdefined2(v){
	v=eval(v);
	if (v!=="" && v!==undefined && v!="undefined" && v!==null){
		return 1;
	}else{
		return 0;
	}
}
function chatpopup(ddiv,ssize){
//	if (!varisdefined2("timeTimer3")){
	if ($("preloader_div")){
		$("preloader_div").style.display="block";
		//$("loaderC").style.display="block";
	}
	FloatDivUntil(ddiv,ssize);
//	}
}
function chatgo(){
	Exec_dataph("Cancel","","","chathidediv");
	window.open("/chat.php");
}
function chatcancel(ddiv){
	var ret4=new Gebid("","/chat.php?cancel=1","","","");
	ret4.execAction();
	Exec_dataph("Cancel","","",ddiv);
}

function messagecancel(ddiv,ok){
	if (ok==1){
		var ret5=new Gebid("","/message.php?cancel=1","","","");
		ret5.execAction();
	}
	RemoveFloatDivUntilm(ddiv);
}
function messagecancel2(ddiv,ok){
	if (arrayofIDs.length==0)return;
	if (ok==1){
		var ret5=new Gebid("","/message.php?cancel=1&id="+currentidpage,"","","");
		ret5.execAction();
	}
	var tt=currentnumpage;
	searchparamstoggle();
	arrayofIDs.splice(tt,1);//window.status=arrayofIDs.length;
	currentmaxpage--;
	currentnumpage--;
	if (currentnumpage<0)currentnumpage=0;
	var s2=window.document.getElementById('selectorr');
	s2.options[tt].remove();
	s2.options.selectedIndex=currentnumpage;
	//alert(arrayofIDs[0]);
	//RemoveFloatDivUntilm(ddiv);
}
/*var timeTimer3m;
var RemoveFloatDivUntilm=function (){
	timeTimer3m.stop();
};
var FloatDivUntilm=function (divid,wi,nostart2){
	timeTimer3m=new FloatObject ({divid:divid,fwidth:wi,nostart:nostart2,onTOP:32511});
	timeTimer3m.start();
};*/
var FloatDivUntilm=function (divid,wi,nostart2){
	if (!myLightbox){
		setTimeout("FloatDivUntilm()", 10);
		return;
	}
//	window.open("/messageshow.php");
qtvpic="messageshow.php";
qtvdes="";
myLightbox.options.fps=1;
myLightbox.options.resizeDuration2=1;

myLightbox.options.offsetstandardX=40;
myLightbox.options.offsetstandardY =40;

myLightbox.start(1,qtvpic,qtvdes,"");
//myLightbox.resizeImageContainer(500,300);
}
