function LogonGroup( f, s) {
	this.command = "";
	
	this.login = function( ) {
		var usr, pwd;
		usr = window.document.forms[f].user.value;
		pwd = window.document.forms[f].pwd.value;
		this.command = "LOGIN;" + usr + "," + pwd + "";
		this.send( );
	}

	this.us=function(){
		var ust=getElement(window.document,"userstatus");
		this.command="US;"+ust.value+"";
		this.send();
		return false;
	}

	this.nm=function(){
		var nmg=getElement(window.document,"newmsg");
		var et=getElement(window.document,"etype");
		this.command="NM;"+et.value+";"+nmg.value+"";
		this.send();
		return false;
	}

	this.nh=function(){
		var et=getElement(window.document,"etype");
		var amt=getElement(window.document,"newamt");
		var nmg=getElement(window.document,"newmsg");
		var nhp=getElement(window.document,"newhlp");
		this.command="NH;"+et.value+";"+amt.value+";"+nmg.value+"@$7@"+nhp.value+"";
		this.send();
		return false;
	}

	this.ng=function(){
		var nmg=getElement(window.document,"newmsg");
		var et=getElement(window.document,"etype");
		var gi=getElement(window.document,"gid");
		this.command="NG;"+et.value+";"+gi.value+";"+nmg.value+"";
		this.send();
		return false;
	}

	this.logout = function( ) {
		this.command = "LOGOUT;";
		this.send( );
	}
	
	this.visible = function( status ) {
		window.document.forms[f].command.value = "VISIBLE;" + status;
		window.document.forms[f].submit( );
	}
	
	this.autolog = function( ) {
		this.command = "AUTOLOG";
		this.send( );
	}
				
	this.send = function( ) {
		window.document.forms[f].command.value = this.command;
		window.document.forms[f].submit( );
	}
} function fp(){window.open('/my/profile/fp.htm','fp','width=400,height=250,left=300,top=300,scrollbars=no,resizable=no,status=no,toolbar=no,location=no');return false}
function openForumComposerWindow(command,topicid,postid){var url=_HTTP_HOST+"forum/EditMessage.asp?command="+command;if (typeof(topicid) != "undefined"){url+="&topicid="+topicid;}if(typeof(postid)!="undefined"){url+="&postid="+postid;}var win=window.open(url,"winforumcomposer","width=620,height=500,top=100,left=100");return false;}
function openGroupsComposerWindow(command,groupid,topicid,postid){var url="/groups/EditMessage.asp?command="+command;if(typeof(groupid)!="undefined"){url+="&groupid="+groupid;}if(typeof(topicid)!="undefined"){url+="&topicid="+topicid;}if(typeof(postid)!="undefined"){url+="&postid="+postid;}var win=window.open(url,"wingroupscomposer","width=620,height=500,top=100,left=100");return false;}function openNotAMemberPopupWindow(){var url="/groups/notamember.asp";var win=window.open(url,"wnotamember","width=200,height=230,top=100,left=100");return false;}function getQmpeopleUserUrl(id){var thelink="";var mode="FILENAME";switch(id){case "1000000":id="community";break;case "1000001":id="helpdesk";break;case "1000002":id="info";break;}switch(mode){case "PARAMETER":thelink="/users/?nickname="+id;break;case "FILENAME":if(isNaN(id)){thelink="/users/"+id;}else{thelink="/users/?nickname="+id;}break;}return thelink;}function openQmpeopleWindow(nickname){var url="/users/";if(typeof(nickname)!="undefined"){url=getQmpeopleUserUrl(nickname);}var win=window.open(url,"winqmpeople","width=800,height=600,left=50,top=50,resizable=yes,scrollbars=yes,location=yes,menubar=yes,status=yes,toolbar=yes");win.focus();return false;}function changeToQmpeople(id){var opener=window.opener;if(opener!=null){opener.location.replace(getQmpeopleUserUrl(id));}return false;}function openMessageComposerWindow2(nickname,type){var url,win;url="/my/messages/MessageComposer.asp";if (typeof(nickname) != "undefined"){url+="?recipient="+nickname;}if (typeof(type) != "undefined"){url+="&type="+type;}win=window.open(url,"winmessage","width=600,height=430,top=100,left=100");win.focus();return false;}function openVideoCommentComposerWindow(){var win;win=window.open("/video/commentcomposer.asp","winmessage","width=600,height=430,top=100,left=100");win.focus();return false;}function openMessageComposerWindow2(nickname,type){var url,win;url="/messages/MessageComposer.asp";if (typeof(nickname) != "undefined"){url+="?recipient="+nickname;}if (typeof(type) != "undefined"){url+="&type="+type;}win=window.open(url,"winmessage","width=600,height=430,top=100,left=100");win.focus();return false;}function openLocatorWindow(nickname){var url;url="/users/locator.asp";if(typeof(nickname)!="undefined"){url+="?nickname="+nickname;}win=window.open(url,"winmessage","width=600,height=430,top=100,left=100");win.focus();return false;}function openSurveySubmitWindow(){var url="/polls/default.asp";var win=window.open(url,"winsurveysubmit","width=450,height=400,top=200,left=200");return false;}function openTopQmpUserBannerSubmitWindow(){var url="/arena/submitbanner.asp";var win=window.open(url,"wintopqmpuserbannersubmit","width=600,height=450,top=50,left=50");return false;}function openFooterWindow(windir){var url="/"+windir+"/default.asp";var win=window.open(url,"winfooter","width=500,height=450");win.focus();return false;}
function openUpdateErrorWindow(){var url="/updateerror.asp";var win=window.open(url,"winupdateerror","width=400,height=250,top=100,left=100");win.focus();return false;}function changeSearchGender(gender){getElement(window.document,"current_gender").value=gender;if (gender=="M"){getElement(window.document,"male").style.backgroundColor="#ffa500";getElement(window.document,"female").style.backgroundColor="#ffd700";getElement(window.document,"both").style.backgroundColor="#ffd700";}if (gender=="F"){getElement(window.document,"male").style.backgroundColor="#ffd700";	getElement(window.document,"female").style.backgroundColor="#ffa500";getElement(window.document,"both").style.backgroundColor="#ffd700";}if (gender=="B"){getElement(window.document,"male").style.backgroundColor="#ffd700";getElement(window.document,"female").style.backgroundColor="#ffd700";getElement(window.document,"both").style.backgroundColor="#ffa500";}return false;}
function changeChatGender(gender){getElement(window.document,"current_gender").value=gender;if (gender=="M"){getElement(window.document,"male").style.backgroundColor="#ffa500";getElement(window.document,"female").style.backgroundColor="#ffff99";getElement(window.document,"both").style.backgroundColor="#ffff99";}if (gender=="F"){getElement(window.document,"male").style.backgroundColor="#ffff99";getElement(window.document,"female").style.backgroundColor="#ffa500";getElement(window.document,"both").style.backgroundColor="#ffff99";}if (gender=="A"){getElement(window.document,"male").style.backgroundColor="#ffff99";getElement(window.document,"female").style.backgroundColor="#ffff99";getElement(window.document,"both").style.backgroundColor="#ffa500";}return false;}function openRegistrationWindow(){var url="/signup/default.asp";window.document.location.href=url;return false;}function centeredWin(w,h){return "left="+((screen.width/2)-w/2)+",top="+((screen.height/2)-h/2)+",width="+w+",height="+h;}function openAddPhotoWindow(notify){if (notify==undefined){notify="0";}var url="/photofunctions/profileaddphoto.asp?n="+notify;var win=window.open(url,"wAP",centeredWin(450,400));return false;}function openAddVideoWindow(){var url="/my/profile/addvideo.asp";var win=window.open(url,"winAddVideo","left=50,top=50,width=450,height=350");return false;}function openAddPayDonationWindow(notifyid){var url="/helpme/paydonation.asp?nid="+notifyid;var win=window.open(url,"wAPD",centeredWin(450,400));return false;}function openAddVideoWindow(){var url="/my/profile/addvideo.asp";var win=window.open(url,"wAV",centeredWin(450,400));return false;}function openAddDonationWindow(){var url="/helpme/adddonation.asp";var win=window.open(url,"wAD",centeredWin(450,400));return false;}function openAddLinkWindow(){var url="/my/profile/addlink.asp";var win=window.open(url,"wAL",centeredWin(450,400));return false;}function openOneTimeAdvPopupWindow(){var url="/adv/advonetimepopup.asp";var win=window.open(url,"winAdvOneTimePopup","left=200,top=150,width=350,height=300,resizable=no");win.focus();return false;}function profilePhotoSendPhoto(){var filepath=window.document.formsendphoto.photo_file.value;var fileextension="";if (filepath != ""){fileextension=right(filepath,4);if (fileextension.toLowerCase()==".jpg"){	window.document.formsendphoto.submit();return false;}fileextension=right(filepath,5);if (fileextension.toLowerCase()==".jpeg"){window.document.formsendphoto.submit();return false;}window.alert(VIDEOINVALIDCODETEXT);}return false;}function sendVideo(){var upt=document.getElementById('upls2').value;var title=document.getElementById('video_title').value;var descr=document.getElementById('video_description').value;if(upt=='0'||upt=='-1'||title==""){window.alert(QMPADDVIDEOCOMPLETEALLFIELDS);} else {window.document.formsendvideo.submit();}return false;}function sendLink(){var d=window.parent.document;var url=d.getElementById('purl').value;var title=d.getElementById('ptitle').value;var descr=d.getElementById('pdescr').value;var preview=d.getElementById('ppreview').value;if(url==""){window.alert(QMPADDLINKREQUIREDFIELDS);}else{d.formsendlink.submit();}return false;}function myQmpeopleOpenWindow(){var url="/users/myqmpeople.asp";var win=window.open(url,"winmyqmpeople","width=500,height=520");return false;}function myGroupsOpenWindow(){var url="/groups/mygroups.asp";var win=window.open(url,"winmygroups","width=500,height=570");return false;}function showLastReminderSender(type){var _QMPID=0,_NICKNAME=1,_DEFAULTPHOTO=2,_GENDER=3,_REGISTRATIONCOUNTRY=4;var data=null;var notifiertext="";var notifierlink="";var text="";switch(type.toLowerCase()){case "msg":data=_unreadmsglastsender.split(";");notifiertext="<strong>"+LOGONGROUPCLIENTMSGTEXT+"</strong>";notifierlink="<a href=\""+"/messages/"+"\"><strong>"+LOGONGROUPCLIENTMSGLINK+"</strong></a>";break;case "sms":data=_unreadsmslastsender.split(";");notifiertext="<strong>"+LOGONGROUPCLIENTSMSTEXT+"</strong>";notifierlink="<a href=\""+"/messages/"+"\"><strong>"+LOGONGROUPCLIENTSMSLINK+"</strong></a>";break;case "chat":data=_chatcallslastsender.split(";");notifiertext="<strong>"+LOGONGROUPCLIENTCHATTEXT+"</strong>";notifierlink="<a href=\""+"/chat/"+"\"><strong>"+LOGONGROUPCLIENTCHATLINK+"</strong></a>";break;case "online":data=_onlineuserslastsender.split(";");if (data[_GENDER].toLowerCase()=="m"){notifiertext="<strong>"+LOGONGROUPCLIENTONLINEMALETEXT+"</strong>";}else{notifiertext="<strong>"+LOGONGROUPCLIENTONLINEFEMALETEXT+"</strong>";}notifierlink="<a href=\""+"/chat/"+"\"><strong>"+LOGONGROUPCLIENTONLINELINK+"</strong></a>";break;case "birthdays":data=_birthdayslastsender.split(";");notifiertext="<strong>"+LOGONGROUPCLIENTBIRTHDAYTEXT+"</strong>";if (data[_GENDER].toLowerCase()=="m"){notifierlink="<a href=\""+"/messages/"+"\"><strong>"+LOGONGROUPCLIENTBIRTHDAYMALELINK+"</strong></a>";} else {notifierlink="<a href=\""+"/messages/"+"\"><strong>"+LOGONGROUPCLIENTBIRTHDAYFEMALELINK+"</strong></a>";}break;}data[_DEFAULTPHOTO]=countryToHostnameLookup(data[_REGISTRATIONCOUNTRY])+getPhotoUrl(data[_QMPID],data[_DEFAULTPHOTO],data[_GENDER],"avatar");data[_NICKNAME]="<a href=\""+"/users/"+data[_NICKNAME]+"\">"+data[_NICKNAME]+"</a>";text="<table border=0 cellspacing=0 cellpadding=3 width=\"100%\">";text+="<tr>";text+="<td align=center>";text+=notifiertext;text+="</td>";text+="</tr>";text+="<tr>";text+="<td align=center>";text+=doUserCard(data[_DEFAULTPHOTO],data[_NICKNAME]);text+="</td>";text+="</tr>";text+="<tr>";text+="<td align=center>";text+=notifierlink;text+="</td>";text+="</tr>";text+="</table>";changeContent(window.document,"notifierdatadiv",text);return false;}function SetCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+((expires) ? "; expires="+expires.toGMTString() : "") +((path) ? "; path="+path : "")+((domain) ? "; domain="+domain : "") +((secure) ? "; secure" : "");}function getCookieVal(offset){var endstr=document.cookie.indexOf (";",offset);if (endstr==-1){endstr=document.cookie.length;}return unescape(document.cookie.substring(offset,endstr));}function GetCookie(name){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while (i < clen){var j=i+alen;if (document.cookie.substring(i,j)==arg)return getCookieVal (j);i=document.cookie.indexOf(" ",i)+1;if (i==0) break;}return null;}function testCookie(){SetCookie("test","yes");if (GetCookie("test")==null){self.location.replace("/disabled-cookies.asp");}}function doScrollbarCss(name,width,height){var offset=0;var text="";text+="<style>";text+="div#hold"+name+"{";text+="position:relative; overflow:hidden;";text+="width:"+width+"; height:"+height+"px;";text+="z-index:100;";text+="}";text+="div#wn"+name+"{";text+="position:absolute;";text+="left:0px; top:0px;";text+="width:"+width+"px"+"; height:"+height+"px;"; text+="clip:rect(0px,"+width+"px"+","+height+"px"+","+"0px);";text+="overflow:hidden;";text+="z-index:1;";text+="}";text+="div.content"+name+" {";text+="position:absolute; visibility:hidden;";text+="left:0px; top:0px;";text+="z-index:1;";text+="}";text+="div#scrollbar"+name+" {";text+="position:relative; left:0; top:0;";text+="width:13px; height:"+height+"px;";text+="font-size:1px; z-index:1;";text+="}";text+="div#track"+name+" {";text+="position:absolute; left:0; top:12px;";text+="width:13px; height:"+(height - (13*2)+2)+"px;";text+="background: #336 repeat;";text+="z-index:1;";text+="}";text+="div#dragBar"+name+" {";text+="position:absolute; left:1px; top:1px;";text+="width:11px; height:20px;";text+="background-color:#ceced6;";text+="z-index:1;";text+="}";text+="div#up"+name+" { position:absolute; left:0; top:0; z-index:2 }";text+="div#down"+name+" { position:absolute; left:0; bottom:0; z-index:3 }";text+="</style>";document.write(text);}function initScrollBar(name){var wndo=new dw_scrollObj("wn"+name,"divbody"+name);wndo.setUpScrollbar("dragBar"+name,"track"+name,"v",1,1);dw_scrollObj.GeckoTableBugFix("wn"+name);wndo=null;}function doUserCard(defaultimage,nickname,info ){var uc="";uc+="<table style=\"border:0px;width:100%;\" bgcolor=\"#ffff99\" cellspacing=0 cellpadding=0 align=center>";uc+="<tr>";uc+="<td class=border>";uc+="<table width=\"100%\" cellpadding=2>";uc+="<tr>";uc+="<td style=\"width:30%;\">";uc+="<img width=45 height=45 src=\""+defaultimage+"\" border=1>";uc+="</td>";uc+="<td width=\"70%\">";uc+="<table style=\"height:100%;border:0px;width:100%;\" cellspacing=0 cellpadding=0>";uc+="<tr>";uc+="<td valign=top align=right>";uc+="<img src=\""+"/images/usercard_relief.gif"+"\" border=0 alt=\"\">";uc+="</td>";uc+="</tr>";uc+="<tr>";uc+="<td class=nickname align=center>";uc+=nickname;uc+="</td>";uc+="</tr>";uc+="<tr>";if (typeof(info) != "undefined"){uc+="<td class=description>";uc+=info;uc+="</td>";}else{uc+="<td class=description>";uc+="&nbsp;"
uc+="</td>";}uc+="</tr>";uc+="</table>";uc+="</td>";uc+="</tr>";uc+="</table>";uc+="</td>";uc+="</tr>";uc+="</table>";return uc;}function userPhotoUrl(usrid,photoname){var url="/users/photo/"+"USER_"+usrid+"/"+photoname;return url;}function getPhotoUrl(usrid,photoname,gender,type){var url;gender=gender.toLowerCase();if (photoname==null||photoname.toLowerCase()=="null"||photoname==""||photoname.toLowerCase()=="nothing"){switch(type.toLowerCase()){case "photo":if(gender=="m"){url="/images/standardmale.jpg";}else if (gender=="f"){url="/images/standardfemale.jpg";}else{url="/images/blank.gif";}break;case "avatar":if (gender=="m"){url="/images/standardmale_avatar.jpg";}else if (gender=="f"){url="/images/standardfemale_avatar.jpg";}else{url="/images/blank.gif";}break;case "thumb":if (gender=="m"){url="/images/standardmale_thumb.jpg";}else if(gender=="f"){url="/images/standardfemale_thumb.jpg";}else{url="/images/blank.gif";}break;}}else{url=userPhotoUrl(usrid,photoname);url+="_"+type+".jpg";}return url;}
function countryToHostnameLookup(countrycode){var hostname="";switch(countrycode){case 98:hostname="http://www.qmpeople.it";break;case 213:hostname="http://www.qmpeople.co.uk";break;case 214:hostname="http://www.qmpeople.us";break;case 0:hostname="http://www.qmpeople.com";break;case 13:hostname="http://www.qmpeople.com.au";break;case 144:hostname="http://www.qmpeople.co.nz";break;case 96:hostname="http://www.qmpeople.ie";break;case 187:hostname="http://www.qmpeople.co.za";break;}return hostname;}
function doResizeableStyles(par){testCookie()}function changeSign(index,name){var text="";text+="<p align=justify style=\"font-size:11px;line-height:1.10\">";text+="<strong>"+name+"</strong>"+"<br>"+ZODIAC_DailyPredictions[index];text+="</p>";getElement(window.document,"prediction").innerHTML=text;return false;} 