var xmlHttp;var currentLoopIndex;function GetXmlHttpObject(){var A=null;try{A=new XMLHttpRequest()}catch(C){try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){A=new ActiveXObject("Microsoft.XMLHTTP")}}return A}function PPPopUpstateChanged(){if(xmlHttp.readyState===4){document.getElementById("popupRA"+currentLoopIndex).innerHTML='<div class="friendFilter pngWrapper">'+xmlHttp.responseText+'<a onclick="ShowReportAbuse('+currentLoopIndex+',\'\',false)" style="cursor: pointer;" class="close" style="color:#fff">Close</a></div>'}}function SRPopUpstateChanged(){if(xmlHttp.readyState===4){document.getElementById("popupRA"+currentLoopIndex).innerHTML='<div class="friendFilter pngWrapper"><div class="sendform">'+xmlHttp.responseText+'</div><a onclick="ShowReportAbuse('+currentLoopIndex+',false)" style="cursor: pointer;" class="close" style="color:#fff">Close</a></div>'}}function ShowReportAbuse(D,A,C){if(typeof (currentLoopIndex)!=="undefined"){document.getElementById("popupRA"+currentLoopIndex).innerHTML="";document.getElementById("popupRA"+currentLoopIndex).style.display="none"}currentLoopIndex=D;if(!C){document.getElementById("popupRA"+D).innerHTML="";document.getElementById("popupRA"+D).style.display="none";return }xmlHttp=GetXmlHttpObject();if(xmlHttp===null){return }document.getElementById("popupRA"+D).style.display="block";var B="/global/report%20abuse/report.aspx?LoopIndex="+D+"&CommentID="+A;xmlHttp.onreadystatechange=PPPopUpstateChanged;xmlHttp.open("GET",B,true);xmlHttp.send(null)}function SendReportAbuse(C,A){xmlHttp=GetXmlHttpObject();if(xmlHttp===null){return }var B="/ReportAbuseHandler.ashx?Option="+document.getElementById("Option"+currentLoopIndex).value+"&YourEmail="+document.getElementById("YourEmail"+currentLoopIndex).value+"&CommentID="+A+"&Note="+document.getElementById("note"+currentLoopIndex).value;xmlHttp.onreadystatechange=SRPopUpstateChanged;xmlHttp.open("GET",B,true);xmlHttp.send(null)}function isValidEmail(A,C){if(C===undefined){C=true}if(A===null){if(C){return false}return true}if(A.length===0){if(C){return false}return true}var B=/^.+\@.+\..{2,4}$/gi;if(!A.match(B)){A.focus();return false}return true};
