var myInterval;
function ShowGroup(i){
groupIndex=i;
var _2;
if(Friend.CustomerID){
_2="/profile/friend/ShowGroup.html";
}else{
_2="ShowGroup.html";
}
ShowPopup(_2,HidePopup,ShowGroupDetails,true,true);
}
function ShowGroupDetails(){
ShowLayer("VisualStatusContainer",false);
ShowLayer("DocPopupText",true);
if(Friend.CustomerID){
$("ShowGroupOwner").innerHTML=User.DisplayName!=""?(User.DisplayName+"'s"):(User.FirstName+"'s");
}
$("ShowGroupLogo").innerHTML="<image src='"+myGroups[groupIndex].LogoUrl+"'>";
$("ShowGroupName").innerHTML=myGroups[groupIndex].Name;
$("ShowGroupDesc").innerHTML=myGroups[groupIndex].Description;
$("ShowGroupFounder").innerHTML=myGroups[groupIndex].Founder;
$("ShowGroupFounded").innerHTML=myGroups[groupIndex].DateFound;
}
function ReViewMyGroups(){
GetMyGroups(false);
ShowPopup(null,null,null,false,false);
}
function GetMyGroups(){
var _3=new Array("UserID");
var _4;
if(Friend.CustomerID){
_4=new Array(Friend.CustomerID);
}else{
_4=new Array(User.CustomerID);
}
var _5=XmlObj.Create("GetUserGroups",_3,_4);
Bjax.SendRequest("POST",AjaxUrl.ApiV2,_5,GetMyGroupsReply,null);
}
function GetMyGroupsReply(_6){
var _7=_6.responseXML.documentElement;
var _8=_7.getElementsByTagName("status")[0].childNodes[0].nodeValue;
if(_8=="true"){
var _9="";
var _a=6;
var _b=0;
if(_7.getElementsByTagName("groups")[0].hasChildNodes()){
_b=_7.getElementsByTagName("groups")[0].getAttribute("count");
}
for(var i=0;i<_b;i++){
myGroups[i]=new Groups();
myGroups[i].ID=_7.getElementsByTagName("groupid")[i].childNodes[0].nodeValue;
myGroups[i].Name=_7.getElementsByTagName("groupname")[i].childNodes[0].nodeValue;
myGroups[i].Description=_7.getElementsByTagName("groupdesc")[i].childNodes[0].nodeValue;
myGroups[i].Founder=_7.getElementsByTagName("foundername")[i].childNodes[0].nodeValue;
myGroups[i].DateFound=_7.getElementsByTagName("founddate")[i].childNodes[0].nodeValue;
if(_7.getElementsByTagName("logourl")[i].hasChildNodes()){
myGroups[i].LogoUrl=_7.getElementsByTagName("logourl")[i].childNodes[0].nodeValue;
}else{
myGroups[i].LogoUrl=noGroupLogoUrl;
}
var _d=AppIsLocal()?"/GrooveNet/Web/groups/?gid=":"/groups/?gid=";
_9+="<div style='border:1px dotted #CCCCCC; border-top-color:#FFFFFF; border-left-color:#FFFFFF; border-right-color:#FFFFFF; height:55px; margin-bottom:10px;'>";
_9+="\t<div style='float:left; margin-right:10px; border:2px solid #CCCCCC'><a href='"+_d+myGroups[i].ID+"'><img width='50' height='50' border='0' src='"+myGroups[i].LogoUrl+"'></a></div>";
_9+="\t<div class='text1' style='margin-top:20px; text-align:left;'><a href='"+_d+myGroups[i].ID+"'>"+myGroups[i].Name+"</a></div>";
_9+="</div>";
}
$("GroupCount").innerHTML="("+_b+")";
$("GroupsPanelText").innerHTML=_9;
}else{
var _e;
if(Friend.CustomerID){
_e="No groups yet.";
}else{
_e="You have no groups yet.";
}
$("GroupsPanelText").innerHTML=_e;
}
ShowLayer("GroupsPanelLoader",false);
}
function IsAccountValid(){
var _f=new Array("userid");
var _10=new Array(User.CustomerID);
var _11=XmlRequest.Create("IsAccountValid",_f,_10);
var _12=new GrooveNetAjax();
_12.SendRequest("POST",AjaxUrl.Api,_11,IsAccountValidReply,null);
}
function IsAccountValidReply(_13){
var _14=_13.responseXML.documentElement;
var _15=_14.getElementsByTagName("MobileNumber")[0].childNodes[0].nodeValue;
if(_15=="0"){
radioChanged(1,"avatar",4);
}else{
if(_15=="1"){
radioChanged(3,"avatar",4);
}else{
var _16=new Array();
_16.push("(");
_16.push(_15.substring(0,2));
_16.push(")");
_16.push(_15.substring(2,5));
_16.push("-");
_16.push(_15.substring(5));
document.getElementById("MobileIs").innerHTML=_16.join("");
radioChanged(2,"avatar",4);
myInterval=window.setInterval(IsValidated,7000);
}
}
}
function ReShowFriends(){
GetInboxCount();
ShowFriends();
ShowPopup(null,null,null,false,false);
}
function ShowFriends(){
ShowLayer("FriendsListFlasher",true);
ShowLayer("FriendsListMain",false);
ShowFriendsList(User.CustomerID,1);
}
function ShowFriendsFriends(){
ShowLayer("FriendsListFlasher",true);
ShowLayer("FriendsListMain",false);
ShowFriendsList(Friend.CustomerID,1);
}
function ShowFriendsList(_17,_18){
var _19=new Array("userid");
var _1a=new Array(_17);
var _1b;
var _1c=new GrooveNetAjax();
if(_18==1){
_1b=XmlRequest.Create("ShowFriendsShortList",_19,_1a);
_1c.SendRequest("POST",AjaxUrl.Api,_1b,ShowFriendsListReply,null);
}else{
_1b=XmlRequest.Create("ShowRequestsList",_19,_1a);
_1c.SendRequest("POST",AjaxUrl.Api,_1b,ShowRequestsListReply,null);
}
}
function ShowFriendRequests(){
$("InboxMenuGroups").className="button1";
$("InboxMenuMessages").className="button1";
$("InboxMenuFriends").className="button2";
$("InboxMenuComments").className="button1";
ShowLayer("InboxMessages",false);
ShowLayer("InboxDataGroups",false);
ShowLayer("InboxDataFriends",true);
ShowLayer("InboxDataComments",false);
ShowLayer("InboxDataFriendsLoader",true);
ShowLayer("InboxDataFriendsStatus",false);
ShowLayer("InboxDataFriendsContent",false);
ShowFriendsList(User.CustomerID,0);
}
function ShowRequestsListReply(_1d){
var _1e=_1d.responseXML.documentElement;
var _1f=_1e.getElementsByTagName("status")[0].childNodes[0].nodeValue;
var _20=_1e.getElementsByTagName("message")[0].childNodes[0].nodeValue;
var _21=0;
if(_1e.getElementsByTagName("friend")[0].hasChildNodes()){
_21=_1e.getElementsByTagName("friend")[0].getAttribute("count");
}
var _22=new Array();
var _23="";
if(_1f=="true"){
for(var i=0;i<_21;i++){
_22[i]=new Friends();
_22[i].CustomerID=_1e.getElementsByTagName("friendid")[i].childNodes[0].nodeValue;
_22[i].FirstName=_1e.getElementsByTagName("friendname")[i].childNodes[0].nodeValue;
if(_1e.getElementsByTagName("friendpicurl")[i].hasChildNodes()){
_22[i].ProfilePicUrl=_1e.getElementsByTagName("friendpicurl")[i].childNodes[0].nodeValue;
}else{
_22[i].ProfilePicUrl=noPhotoUrl;
}
_23+="<div>";
_23+="\t<div style='float:left; margin:0px 15px 7px 7px;'>";
_23+="\t\t<div style='border:2px solid #cccccc;'><a href='/profile/friend/?cid="+_22[i].CustomerID+"'><img src='"+_22[i].ProfilePicUrl+"' width='70' height='70' border='0'></a></div>";
_23+="\t\t<div class='text2'><a href='/profile/friend/?cid="+_22[i].CustomerID+"'>"+_22[i].FirstName+"</a></div>";
_23+="\t</div>";
_23+="\t<div style='padding-top:30px;'>";
_23+="\t\t<span><a href='javascript:Friend.Accept("+_22[i].CustomerID+");' class='button3'>accept</a></span>";
_23+="\t\t<span><a href='javascript:Friend.Decline("+_22[i].CustomerID+");' class='button3'>decline</a></span>";
_23+="\t</div>";
_23+="\t<div style='height:75px;'></div>";
_23+="</div>";
}
$("InboxDataFriendsContent").innerHTML=_23;
}else{
$("InboxDataFriendsContent").innerHTML=_20;
}
ShowLayer("InboxDataFriendsLoader",false);
ShowLayer("InboxDataFriendsStatus",false);
ShowLayer("InboxDataFriendsContent",true);
ShowLayer("InboxMessagesContent",false);
}
function ShowFriendsListReply(_25){
var _26=_25.responseXML.documentElement;
var _27=_26.getElementsByTagName("status")[0].childNodes[0].nodeValue;
var _28=_26.getElementsByTagName("message")[0].childNodes[0].nodeValue;
var _29=0;
if(_26.getElementsByTagName("friend")[0].hasChildNodes()){
_29=_26.getElementsByTagName("friend")[0].getAttribute("count");
}
var _2a=new Array();
var _2b="";
if(_27=="true"){
for(var i=0;i<_29;i++){
if(i>=6){
break;
}
_2a[i]=new Friends();
_2a[i].CustomerID=_26.getElementsByTagName("friendid")[i].childNodes[0].nodeValue;
_2a[i].FirstName=_26.getElementsByTagName("friendname")[i].childNodes[0].nodeValue;
if(_26.getElementsByTagName("friendpicurl")[i].hasChildNodes()){
_2a[i].ProfilePicUrl=_26.getElementsByTagName("friendpicurl")[i].childNodes[0].nodeValue;
}else{
_2a[i].ProfilePicUrl=noPhotoUrl;
}
_2b+="<div style='float:left; margin:0px 0px 7px 7px; width:70px;'>";
_2b+="\t<div class='friendpic'><a href='/profile/friend/?cid="+_2a[i].CustomerID+"' target='_blank'><img src='"+_2a[i].ProfilePicUrl+"' width='70' height='70' border='0'></a></div>";
if(Friend.CustomerID){
_2b+="\t<div style='border:1px none #ff0000;'><a href='/profile/friend/?cid="+_2a[i].CustomerID+"' target='_blank'>"+ShortString(_2a[i].FirstName,10)+"</a></div>";
}else{
_2b+="\t<div id='txtFriendName"+i+"'>";
_2b+="\t\t<div style='float:left; width:50px; border:1px none #ff0000;' align='left'><a href='/profile/friend/?cid="+_2a[i].CustomerID+"' target='_blank'>"+ShortString(_2a[i].FirstName,8)+"</a></div>";
_2b+="\t\t<div style='float:right; border:1px none #ff2200;'><a href='javascript:FriendRules.showConfirmDelete("+_2a[i].CustomerID+", "+i+", 0)'><img src='/images/ui/ekis.gif' align='absmiddle' alt='delete friend' border='0' /></a></div>";
_2b+="\t</div>";
}
_2b+="</div>";
}
_2b+="<br><br><br>";
if(_29>6){
if(Friend.CustomerID){
_2b+="<div class='text2' align='center' style='width:100px;'><a href='javascript:ActionBox.Open(\"/profile/friend/FriendsBigPanel.html\", ShowAllFriends, HidePopup, true);'>view all</a></div>";
}else{
_2b+="<div class='text2' align='center' style='width:100px;'><a href='javascript:ActionBox.Open(\"FriendsBigPanel.html\", ShowAllFriends, FriendRules.showFriendList, true);'>view all</a></div>";
}
}
$("FriendsListMain").innerHTML=_2b;
}else{
$("FriendsListMain").innerHTML="<div align='left' class='text1' style='padding-left:5px;'>"+_28+"</div>";
}
$("FriendCount").innerHTML="("+_29+")";
ShowLayer("FriendsListFlasher",false);
ShowLayer("FriendsListMain",true);
}
function ViewFriend(){
ViewUserInfo(Friend.CustomerID);
}
function ViewUser(){
ViewUserInfo(User.CustomerID);
}
function ViewUserInfo(_2d){
$("StatMessage").innerHTML="loading . . .";
var req="<root><data><customerid> "+_2d+"</customerid></data></root>";
new Ajax.Request(AjaxUrl.ViewUserInfo,{postBody:req,contentType:"application/xml",onSuccess:function(_2f){
ViewUserInfoReply(_2f);
}});
}
function ViewUserInfoReply(_30){
var _31=_30.responseXML.documentElement;
var _32=_31.getElementsByTagName("status")[0].firstChild.nodeValue.trim();
if(_32=="false"){
var _33=_31.getElementsByTagName("message")[0].firstChild.nodeValue.trim();
$("StatMessage").innerHTML=_33;
}else{
if(_32=="true"){
$("StatMessage").innerHTML="loading data . . .";
User.DisplayName=_31.getElementsByTagName("displayname")[0].hasChildNodes()?_31.getElementsByTagName("displayname")[0].firstChild.nodeValue.trim():"";
User.Alias=_31.getElementsByTagName("useralias")[0].hasChildNodes()?_31.getElementsByTagName("useralias")[0].firstChild.nodeValue.trim():"";
User.AvatarName=_31.getElementsByTagName("avatarname")[0].hasChildNodes()?_31.getElementsByTagName("avatarname")[0].firstChild.nodeValue.trim():"";
User.FirstName=_31.getElementsByTagName("firstname")[0].firstChild.nodeValue;
User.LastName=_31.getElementsByTagName("lastname")[0].firstChild.nodeValue;
User.EmailAddress=_31.getElementsByTagName("emailaddress")[0].firstChild.nodeValue;
User.MobileNumber=_31.getElementsByTagName("mobilenumber")[0].hasChildNodes()?_31.getElementsByTagName("mobilenumber")[0].firstChild.nodeValue.trim():"";
User.BirthDate=_31.getElementsByTagName("birthdate")[0].firstChild.nodeValue;
User.Gender=_31.getElementsByTagName("gender")[0].hasChildNodes()?_31.getElementsByTagName("gender")[0].firstChild.nodeValue.trim():"";
if(User.Gender=="M"||User.Gender=="m"){
User.Gender="male";
}else{
User.Gender="female";
}
User.CivilStatusID=_31.getElementsByTagName("civilstatusid")[0].hasChildNodes()?_31.getElementsByTagName("civilstatusid")[0].firstChild.nodeValue.trim():"";
User.CivilStatus=_31.getElementsByTagName("civilstatus")[0].hasChildNodes()?_31.getElementsByTagName("civilstatus")[0].firstChild.nodeValue.trim():"";
User.SexualOrientationID=_31.getElementsByTagName("sexualorientationid")[0].hasChildNodes()?_31.getElementsByTagName("sexualorientationid")[0].firstChild.nodeValue.trim():"";
User.SexualOrientation=_31.getElementsByTagName("sexualorientation")[0].hasChildNodes()?_31.getElementsByTagName("sexualorientation")[0].firstChild.nodeValue.trim():"";
User.Country=_31.getElementsByTagName("country")[0].hasChildNodes()?_31.getElementsByTagName("country")[0].firstChild.nodeValue.trim():"";
User.CountryCode=_31.getElementsByTagName("countrycode")[0].hasChildNodes()?_31.getElementsByTagName("countrycode")[0].firstChild.nodeValue.trim():"";
User.ProvinceID=_31.getElementsByTagName("provinceid")[0].hasChildNodes()?_31.getElementsByTagName("provinceid")[0].firstChild.nodeValue.trim():"";
User.ProvinceName=_31.getElementsByTagName("provincename")[0].hasChildNodes()?_31.getElementsByTagName("provincename")[0].firstChild.nodeValue.trim():"";
User.ForeignCity=_31.getElementsByTagName("foreigncity")[0].hasChildNodes()?_31.getElementsByTagName("foreigncity")[0].firstChild.nodeValue.trim():"";
User.Profession=_31.getElementsByTagName("profession")[0].hasChildNodes()?_31.getElementsByTagName("profession")[0].firstChild.nodeValue.trim():"";
User.Companies=_31.getElementsByTagName("companies")[0].hasChildNodes()?_31.getElementsByTagName("companies")[0].firstChild.nodeValue.trim():"";
User.HighSchool=_31.getElementsByTagName("highschool")[0].hasChildNodes()?_31.getElementsByTagName("highschool")[0].firstChild.nodeValue.trim():"";
User.College=_31.getElementsByTagName("college")[0].hasChildNodes()?_31.getElementsByTagName("college")[0].firstChild.nodeValue.trim():"";
User.Interests=_31.getElementsByTagName("interests")[0].hasChildNodes()?_31.getElementsByTagName("interests")[0].firstChild.nodeValue.trim():"";
User.FaveBooks=_31.getElementsByTagName("favebooks")[0].hasChildNodes()?_31.getElementsByTagName("favebooks")[0].firstChild.nodeValue.trim():"";
User.FaveMovies=_31.getElementsByTagName("favemovies")[0].hasChildNodes()?_31.getElementsByTagName("favemovies")[0].firstChild.nodeValue.trim():"";
User.FavePlaces=_31.getElementsByTagName("faveplaces")[0].hasChildNodes()?_31.getElementsByTagName("faveplaces")[0].firstChild.nodeValue.trim():"";
User.LooksToMeet=_31.getElementsByTagName("lookstomeet")[0].hasChildNodes()?_31.getElementsByTagName("lookstomeet")[0].firstChild.nodeValue.trim():"";
User.AboutMe=_31.getElementsByTagName("aboutme")[0].hasChildNodes()?_31.getElementsByTagName("aboutme")[0].firstChild.nodeValue.trim():"";
User.ProfilePicUrl=_31.getElementsByTagName("profilepicurl")[0].hasChildNodes()?_31.getElementsByTagName("profilepicurl")[0].firstChild.nodeValue.trim():"";
if(User.ProfilePicUrl==""){
User.ProfilePicUrl=noPhotoUrl;
}
ParseBirthDate();
User.MonthNumber=GetMonthNumber(User.MonthBorn);
User.ZodiacSign=GetZodiac(User.MonthNumber,User.DayBorn);
User.Age=CalculateAge(User.MonthNumber,User.DayBorn,User.YearBorn);
$("StatMessage").innerHTML="done . . .";
if(!Friend.CustomerID){
var _34=(User.DisplayName)?User.DisplayName:User.FirstName;
Cookie.Append("dispName",_34);
Cookie.Append("fName",User.FirstName);
Cookie.Append("lName",User.LastName);
Cookie.Append("photoUrl",User.ProfilePicUrl);
}
DisplayUserInfo();
}else{
$("StatMessage").innerHTML="No reply from server.";
}
}
}
function ParseBirthDate(){
tempArr=User.BirthDate.split(" ");
User.MonthBorn=tempArr[0];
User.YearBorn=tempArr[2];
tempArr2=tempArr[1].split(",");
User.DayBorn=tempArr2[0];
if(User.DayBorn.slice(0,1)==0){
User.DayBorn=User.DayBorn.slice(1,2);
}
}
function ReDisplayUserInfo(){
DisplayUserInfo();
ShowPopup(null,null,null,false,false);
}
function HidePopup(){
ShowPopup(null,null,null,false,false);
}
function ShowUserUrl(){
$("UserUrlContent").innerHTML="http://www.groovenet.ph/"+User.Alias;
}
function GetInboxCount(){
var _35=new Array("userid");
var _36=new Array(User.CustomerID);
var _37=XmlRequest.Create("GetInboxCount",_35,_36);
var _38=new GrooveNetAjax();
_38.SendRequest("POST",AjaxUrl.Api,_37,GetInboxCountReply,null);
}
function GetInboxCountReply(_39){
var _3a=_39.responseXML.documentElement;
var _3b=_3a.getElementsByTagName("status")[0].childNodes[0].nodeValue;
var _3c=_3a.getElementsByTagName("message")[0].childNodes[0].nodeValue;
if(_3b=="true"){
Inbox.NewMessageCount=parseInt(_3a.getElementsByTagName("NewMessageCount")[0].childNodes[0].nodeValue);
Inbox.FriendRequestCount=parseInt(_3a.getElementsByTagName("FriendRequestCount")[0].childNodes[0].nodeValue);
Inbox.GroupRequestCount=parseInt(_3a.getElementsByTagName("GroupRequestCount")[0].childNodes[0].nodeValue);
Inbox.NewCommentCount=parseInt(_3a.getElementsByTagName("NewCommentCount")[0].childNodes[0].nodeValue);
Inbox.ShowNewTotalCount();
}
}
function DisplayUserInfo(){
ShowLayer("ServerReplyContainer",false);
$("StatMessage").innerHTML="displaying . . .";
if(!User.CustomerID||(User.CustomerID==Friend.CustomerID)){
ShowLayer("FriendInfoSendMsg",false);
ShowLayer("FriendInfoAddComment",false);
}
ShowUserUrl();
$("ViewFirstName").innerHTML=User.DisplayName!=""?User.DisplayName:User.FirstName;
$("AvatarName").innerHTML=User.AvatarName!=""?("&nbsp;&nbsp; a.k.a. "+User.AvatarName):"&nbsp;&nbsp;(no avatar yet)";
$("ZodiacSign").innerHTML=User.ZodiacSign;
$("BirthDate").innerHTML=User.BirthDate;
if(Trim(User.CivilStatus)==""){
$("SexAgeStatus").innerHTML=User.Gender+", "+GetAbstractAge(User.Age);
}else{
$("SexAgeStatus").innerHTML=User.Gender+", "+GetAbstractAge(User.Age)+", "+User.CivilStatus.toLowerCase();
}
if(User.AboutMe!=""){
$("ViewAboutMe").innerHTML=User.AboutMe+"<br><br>";
ShowLayer("aAboutMe",true);
}else{
ShowLayer("aAboutMe",false);
}
if(User.ProvinceID!="94"){
$("Location").innerHTML=User.ProvinceName+", "+User.Country;
}else{
if(User.ForeignCity!=""){
$("Location").innerHTML=User.ForeignCity+", "+User.Country;
}else{
$("Location").innerHTML="Somewhere in "+User.Country;
}
}
if(User.Profession!=""){
$("ViewProfession").innerHTML=User.Profession;
ShowLayer("aProfession",true);
}else{
ShowLayer("aProfession",false);
}
if(User.Companies!=""){
$("ViewCompanies").innerHTML=User.Companies;
ShowLayer("aCompanies",true);
}else{
ShowLayer("aCompanies",false);
}
if(User.HighSchool!=""){
$("ViewHighSchool").innerHTML=User.HighSchool+"<br><br>";
ShowLayer("aHighSchool",true);
}else{
ShowLayer("aHighSchool",false);
}
if(User.College!=""){
$("ViewCollege").innerHTML=User.College;
ShowLayer("aCollege",true);
}else{
ShowLayer("aCollege",false);
}
if(User.Interests!=""){
$("ViewInterests").innerHTML=User.Interests+"<br><br>";
ShowLayer("aInterests",true);
}else{
ShowLayer("aInterests",false);
}
if(User.FaveBooks!=""){
$("ViewFaveBooks").innerHTML=User.FaveBooks+"<br><br>";
ShowLayer("aFaveBooks",true);
}else{
ShowLayer("aFaveBooks",false);
}
if(User.FaveMovies!=""){
$("ViewFaveMovies").innerHTML=User.FaveMovies+"<br><br>";
ShowLayer("aFaveMovies",true);
}else{
ShowLayer("aFaveMovies",false);
}
if(User.FavePlaces!=""){
$("ViewFavePlaces").innerHTML=User.FavePlaces+"<br><br>";
ShowLayer("aFavePlaces",true);
}else{
ShowLayer("aFavePlaces",false);
}
if(User.LooksToMeet!=""){
$("ViewLooksToMeet").innerHTML=User.LooksToMeet+"<br><br>";
ShowLayer("aLooksToMeet",true);
}else{
ShowLayer("aLooksToMeet",false);
}
if(!Friend.CustomerID){
GetInboxCount();
}
ShowLayer("StatFlasher",false);
ShowLayer("ViewUser",true);
ShowLayer("Links",true);
}
function RestrictAvatarCount(){
var _3d=Cookie.Get();
var _3e=_3d["av"];
if(_3e>0){
location.replace(WebSite.ProfilePageUrl);
}
}
var Epin={Send:function(_3f,url,_41,_42,_43){
var _44=new GrooveNetAjax();
_44.SendRequest(_3f,url,_41,_42,_43);
},Reply:function(_45){
var _46=_45.responseXML.documentElement;
var _47=_46.getElementsByTagName("reply")[0];
var _48=_47.getAttribute("status");
var _49=_47.getAttribute("message");
var _4a="StatusBox";
if(_48=="true"){
var _4b=document.getElementById("WebForm");
_4b.Pin.value="";
_4b.SerialNumber.value="";
}
document.getElementById("StatusBox").innerHTML=_49;
EnableNext(true);
}};
function EpinTopup(){
document.getElementById("StatusBox").innerHTML="Processing. . .";
var _4c=document.getElementById("WebForm");
var arr=Cookie.Get();
var pin=_4c.Pin.value;
var _4f=_4c.SerialNumber.value;
var _50=new Array("CustomerID","Pin","SerialNumber");
var _51=new Array(arr["cid"],pin,_4f);
var _52="POST";
var url=AjaxUrl.EpinTopup;
var _54=XmlData.Serialize(_50,_51);
var _55=Epin.Reply;
var _56="StatusBox";
Epin.Send(_52,url,_54,_55,_56);
}
function GrabContactsComplete(_57){
var _58=_57.responseText;
document.getElementById("InviteForm4").innerHTML=_58;
}


