function noStatus() {
	window.status='';
}
function OpenWinByID(ID) {
	WindowConfig='status=yes, toolbar=no, location=no, directories=no, menubar=no, scrollbars=yes'
	if (navigator.appName.indexOf("Microsoft")>=0) 
	{ WindowConfig+=',left=0,top=10,width=700,height=750' }
	else 
	{ WindowConfig += ',screenX=0,screenY=10,width=700,height=750'}
	window.open('/en/ShowDetailsByID.csp?ID=' + ID, '_detailsWindow', WindowConfig)
}
function CloseWindow() {
	window.close();
	return true;
}
function expand(val) {
	exp = document.getElementById('b'+val)
	img = document.getElementById('i'+val)
	exp.style.display = (exp.style.display == "none") ? "block" : "none";
	img.src = (exp.style.display == "none") ? "/img/expand.gif" : "/img/collapse.gif";
	img.title = (exp.style.display == "none") ? "Expand" : "Collapse";
}
function ChatRing(typ) {
soundManager.play('chatring');
}
function OpenVideo(id) {
	WindowConfig='status=no, toolbar=no, location=no, directories=no, menubar=no, scrollbars=no';
	if (navigator.appName.indexOf("Microsoft")>=0) {
		WindowConfig+=',left=640,top=10,width=240,height=310'; }
	else { WindowConfig += ',screenX=640,screenY=10,width=240,height=310';}
	window.open('VideoShow.csp?ID='+id,'Help',WindowConfig);
}
function OpnCenter(url, name,w,h,par) {
	w += 32;
	h += 96;
	wleft = (screen.width - w) / 2;
	wtop = (screen.height - h) / 2;
	if (wleft < 0) {
		w = screen.width;
		wleft = 0;
	}
	if (wtop < 0) {
		h = screen.height;
		wtop = 0;
	}
	var win = window.open(url,name,'width='+w+',height='+h+','+',left='+wleft+',top='+wtop+','+par);
	win.resizeTo(w, h);
	win.moveTo(wleft, wtop);
	win.focus();
}
function OpenHelpWindow(page,left,top,width,height) {
	WindowConfig='toolbar=no, location=no, directories=no, menubar=no, scrollbars=no, status=no'
	if (navigator.appName.indexOf("Microsoft")>=0) 
	{ WindowConfig+=',left='+left+',top='+top+',width='+width+',height='+height }
	else 
	{ WindowConfig += ',screenX='+left+',screenY='+top+',width='+width+',height='+height}
	window.open(page,'Help',WindowConfig)
	}
function tellafriend() {
	var dyncontent="<iframe src=\"/en/tellafriend.csp\" name=\"adpiframe\" id=\"adpiframe\" width=100% height=100% align=\"center\" Frameborder=\"0\" Scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\"></iframe>";
	adpContent('tellafriend',dyncontent)
	adpShow('tellafriend');
	adpDyntitle('tellafriend','#627198','Recommend date4love to a friend');
}
function highlightButton(obj,s) {
	obj.style.color="navy";
	obj.style.background=(s=="start")?"#6E8BFF":"#CACAFF";
}
function adpDyntitle(uid,tCol,tStr) {
   	var newTitleStr='<span id="adpTitle" style="white-space:nowrap;padding: 1px 0px 0px 3px;width:100%;position:absolute;left:0px;height:20px;">'
   	newTitleStr+=tStr;
   	newTitleStr+="</span>";
   	document.getElementById(uid + '_adpT').innerHTML=newTitleStr;
   	document.getElementById(uid + '_adpT').style.backgroundColor=tCol;
}
function chkgen(form,fld,flag) {
var ok = 0;
if (fld=='PrefChildren') chkall='X'; else chkall=0;
var elms = document.getElementsByTagName('input');
for(var i = 0; i < elms.length; i++) {
	el=elms[i]; name=el.name;
	if ((el.type=="checkbox")&&(name.substr(0,fld.length)==fld)) {
		code=name.substr(fld.length);
		if ((flag==chkall)&&(code!=chkall)&&(eval('form.'+fld+chkall+'.checked'))) {
			eval('form.'+name+'.checked=false;'); ok=0;
			}
		else { if (eval('form.'+name+'.checked')) ok=1; }
		}
	}
eval('form.'+fld+chkall+'.checked='+(ok==0))	
}	
function addBookmark(title,url) {
	if (window.sidebar) { 
		window.sidebar.addPanel(title, url,""); } 
	else if( document.all ) {
		window.external.AddFavorite( url, title); }
	else if( window.opera && window.print ) {
	return true; }
}
function OpenOnlineList(typ) {
WindowConfig='status=no, toolbar=no, location=no, directories=no, menubar=no, scrollbars=yes, resizable=yes';
if (navigator.appName.indexOf("Microsoft")>=0) {
	WindowConfig+=',left=640,top=10,width=300,height=550' }
else {  WindowConfig += ',screenX=640,screenY=10,width=300,height=550' }
window.open('OnlineList.csp?T=' + typ, 'OnlineList', WindowConfig)	
}