	/************************************************************************
	*
	*	Function Name:	NewStatusPopup									
	*	Author Name: 	Ramish Hashmi
	*																		
	*************************************************************************/	
	var xPos=0;
	var yPos=0;
	var yProfilePos=0;
	var xColPos=0;
	var strGroup="";
  function NewStatusPopup(pIntApplicantId,pIntCompanyId,pIntUserId,h,w)
	{
		
		var e = window.event;
		
		var y=50;
		var x=(GetBrowserWidth()- w)/2;
		
		var popUp = document.getElementById("popupcontent"); 
		popUp.style.top = y+"px";   
		popUp.style.left =x+"px";   
		popUp.style.width = w + "px";   
		//popUp.style.height = h + "px";    
		if (baseText == null) 
		baseText = popUp.innerHTML;   
		var strText='<div id=\"statusbar\" valign="top">';
		strText+='<table border=0 cellspacing=2 cellpading=2 width=450>';
		strText+='<tr>';
		strText+='<td valign="top" align=center colspan=3 width=450>';
		strText+='<span class="BodyHeadingOne">New Status Type</span>';
		strText+='</td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td valign=top align=left width=30>';
		strText+='</td>';
		strText+='<td valign=top align=left width=100>';
		strText+='<span class="BodyHeadingTwo">Status Type:</span>';
		strText+='</td>';
		strText+='<td valign=top align=left><span class="BodyText">';
		strText+='<input type="text" id="txtNewStatus" name="txtNewStatus" class="BodyInputTextOne"><div id="DivTxtStatusType"></div>';
		strText+='</span></td>';
		strText+='</tr>';
		
	
		
		
		strText+='<tr>';
		strText+='<td valign=top align=left width=30>';
		strText+='</td>';
		strText+='<td valign=top align=center colspan=2 height=20>';
		strText+='<span class="BodyText">';
		strText+='';
		strText+='</span></td>';
		strText+='</tr>';
		strText+='<tr>';
		strText+='<td valign=top align=left width=20>';
		strText+='</td>';
		strText+='<td valign=top align=right><div id="divSaveStatusType">';
		strText+='<a href="#" onClick="SaveNewStatusType('+pIntUserId+','+pIntCompanyId+','+pIntApplicantId+')"><img src="../IncludeFiles/CSS/images/save-button.jpg"></a>';
		strText+='</div></td>';
		strText+='<td valign=top align=left>';
		strText+='<div id="divSaveStatusTypeCancel"><a href="#" onclick=hidePopup();> <img src="../IncludeFiles//CSS/images/cancel-button.jpg"></a></div>';
		strText+='</td>';
		strText+='</tr>';
	
		strText+='</table></div>';
		popUp.innerHTML = baseText+strText;
		
		//<input type="button" onclick=\"hidePopup();\">Close window<button></div>";
		var sbar = document.getElementById("statusbar");   
		sbar.style.marginTop = (parseInt(h)-110) + "px";  
		 popUp.style.visibility = "visible";
	}
	/************************************************************************
	*
	*	Function Name:	hidePopup									
	*	Author Name: 	Nabeel Bin Ezad
	*																		
	*************************************************************************/	
	function hidePopup()
	{   
		
		xPos = document.documentElement.scrollTop;
		var popUp = document.getElementById("popupcontent");
		var t = document.getElementById("statusbar");
		popUp.innerHTML= "";
		t.innerHTML= "";
		popUp.style.visibility = "hidden";
		t.style.visibility = "hidden";
		//alert(xPos);
		//window.scroll(0,test);
		
		/*if(yProfilePos!=0)
			{
				alert('rerer');
				window.scroll(0,yProfilePos);
				
				return;
			}
		else if(xPos!=0)
		{
			window.scroll(0,xPos);
			return;
		}
		else
		window.scroll(0,yPos);
		*/
		
		window.scroll(0,xPos);
		return;
	}
	/**************************************************************************
	*	Function Name:	SaveNewStatusType									
	*	Author Name: 	Ramish Hashmi
	*																		
	*************************************************************************/	
	function SaveNewStatusType(pIntUserId,pIntCompanyId,pIntApplicantId)
	{
		 xPos = document.documentElement.scrollTop;
		var strJobType=document.getElementById('txtNewStatus').value;
		if(document.getElementById('txtNewStatus').value=="")
		{
			document.getElementById('DivTxtStatusType').innerHTML='<span class="BodyTextMessageError">Required Field</span>';
			document.getElementById('txtNewStatus').focus();
			return false;
		}
		else
		{

			if(CheckStringLength(document.getElementById('txtNewStatus').value))
			{
				document.getElementById('DivTxtStatusType').innerHTML="";
				document.getElementById('DivTxtStatusType').display="none";
				document.getElementById('DivTxtStatusType').visibility="hidden";
				
			}
			else
			{
				document.getElementById('DivTxtStatusType').innerHTML='<span class="BodyTextMessageError">String length too large. Only 255 characters allowed</span>';		
				return false;	
			}
		
			var url = 'GUIService/JobsService.php?action=addstatustype&uid='+pIntUserId+'&companyid='+pIntCompanyId+'&appId='+pIntApplicantId;
		
			var par='statustype='+strJobType;
			document.getElementById("divSaveStatusType").innerHTML="<img src=ImageFiles/indicator_medium.gif>";
			document.getElementById("divSaveStatusTypeCancel").innerHTML ="";

			var myRequest= new Ajax.Request(
				url, 
			{   
				method: 'post',
				parameters:par,
				onSuccess: function(transport) 
				{     
					hidePopup();
					window.scroll(0,xPos);
					document.getElementById("divStatusType").innerHTML=transport.responseText;
					xPos=0;
				} 
			});	
			
		}
	}
	
	/************************************************************************
	*
	*	Function Name:	CheckStringLength									
	*	Author Name: 	Nabeel Bin Ezad
	*																		
	*************************************************************************/	
	function CheckStringLength(pStrObject)
	{
		if(pStrObject.length>50)
		{
			return false;
		}
		return true;
	}
	/************************************************************************
	*
	*	Function Name:	UpdateRegistrationRequest									
	*	Author Name: 	Ramish Hashmi
	*																		
	*************************************************************************/	

	function UpdateRegistrationRequest(pIntUserId,pIntEventId,pIntRegistrationStatus,h,w)
	{
		
		document.getElementById("popupcontent").innerHTML="";
		var e = window.event;
		var y=600;
		var x=(GetBrowserWidth()- w)/2;
	    
		window.scroll(0,y);	
		y = document.documentElement.scrollTop;
		
		
		var popUp = document.getElementById("popupcontent"); 
		popUp.style.top = y+"px";   
		popUp.style.left =x+"px";   
		popUp.style.width = w + "px";   
		//popUp.style.height = h + "px";    
		if (baseText == null) 
		baseText = popUp.innerHTML;   
		var strText='<div id=\"statusbar\" valign="top">';
		strText+='<table border=0 cellspacing=2 cellpading=2 width=300>';
		strText+='<tr>';
		strText+='<td valign="top" align=center colspan=3 width=450>';
		strText+='<span class="BodyHeadingOne">Registration Status Update</span>';
		strText+='</td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td valign=top align=left><span class="BodyText" colspan="3">';
		strText+='<div id="DivTxtStatusType"></div>';
		strText+='</span></td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td valign=top align=left width=30>';
		strText+='</td>';
		strText+='<td valign=top align=center colspan=2 height=20>';
		strText+='<span class="BodyText">';
		strText+='';
		strText+='</span></td>';
		strText+='</tr>';
		strText+='<tr>';
		strText+='<td valign=top align=center width=100>';
		strText+='<a href="#" onClick="UpdateRegStatusType('+pIntUserId+','+pIntEventId+',1)"><img src="../IncludeFiles//CSS/images/accept-button.jpg"></a>';
		strText+='</td>';
		strText+='<td valign=top align=center width=100>';
		strText+='<a href="#" onClick="UpdateRegStatusType('+pIntUserId+','+pIntEventId+',-1)"><img src="../IncludeFiles//CSS/images/decline-button.jpg"></a>';
		strText+='</td>';
		strText+='<td valign=top align=center width=100>';
		strText+='<a href="#" onClick="UpdateRegStatusType('+pIntUserId+','+pIntEventId+',2)"><img src="../IncludeFiles//CSS/images/waiting-list-button.jpg"></a>';
		strText+='</td>';
		strText+='<td valign=top align=center width=100>';
		strText+='<div id="divSaveStatusTypeCancel"><a href="#" onclick=hidePopup();> <img src="../IncludeFiles//CSS/images/cancel-button.jpg"></a></div>';
		strText+='</td>';
		strText+='</tr>';
	
		strText+='</table></div>';
		popUp.innerHTML = baseText+strText;
		
		//<input type="button" onclick=\"hidePopup();\">Close window<button></div>";
		var sbar = document.getElementById("statusbar");   
		sbar.style.marginTop = (parseInt(h)-110) + "px";  
		 popUp.style.visibility = "visible";
	}	
	/************************************************************************
	*
	*	Function Name:	UpdateRegStatusType									
	*	Author Name: 	Ramish Hashmi
	*																		
	*************************************************************************/	
	function UpdateRegStatusType(pIntUserId,pIntEventId,pIntRegStatus)
	{
		//document.getElementById("popupcontent").innerHTML="";
		window.scroll(0,xPos);	
		xPos = document.documentElement.scrollTop;
		document.getElementById("DivEventLimit").innerHTML="";
		var url ='GUIService//EventService.php?action=updateregstatus&uid='+pIntUserId+'&eventid='+pIntEventId+'&regStatus='+pIntRegStatus;
			if(document.getElementById("DivEventReg"))
			  document.getElementById("DivEventReg").innerHTML="<img src=ImageFiles/indicator_medium.gif>";
			
			else if(document.getElementById("DivAdditions"))
			  { 
				xPos = document.documentElement.scrollTop;
				 window.scroll(0,xPos);
				document.getElementById("DivEventLimit").innerHTML="<img src=ImageFiles/indicator_medium.gif>"; 
			  }
			var myRequest= new Ajax.Request(
				url, 
			{   
				method: 'post',
				onSuccess: function(transport) 
				{     
					  
					var strResponse=transport.responseText;
					strResponse=strResponse.split("+");
					
					if(document.getElementById("DivEventReg"))
						document.getElementById("DivEventReg").innerHTML=strResponse[0];
						
                     if(strResponse[1]==-1)
					 {
						 window.scroll(0,xPos);	
						document.getElementById("DivEventLimit").innerHTML="Registration status not updated. Cannot exceed event limit!";
					 	xPos=0;
					 }
					 else if(strResponse[1]==1)
					 {
						 window.scroll(0,xPos);	
						document.getElementById("DivEventLimit").innerHTML="Registration status updated";
					 	xPos=0;

					 }
					
				} 
			});	
	}
	/************************************************************************
	*
	*	Function Name:	OpenNewJobTypeWindow									
	*	Author Name: 	Ramish Hashmi
	*																		
	*************************************************************************/	
	var baseText = null; 
	
	function OpenNewJobTypeWindow(pIntUserId,pIntCompanyId,w,h)
	{
		document.getElementById("popupcontent").innerHTML="";
		var e = window.event;
		
		var y=100;
		var x=(GetBrowserWidth()- w)/2;

		var popUp = document.getElementById("popupcontent");    
		popUp.style.top = y+"px";   
		popUp.style.left =x+"px";   
		popUp.style.width = w + "px";   
		//popUp.style.height = h + "px";    
		if (baseText == null) 
		baseText = popUp.innerHTML;   
		var strText='<div id=\"statusbar\" valign="top">';
		strText+='<table border=0 cellspacing=1 cellpading=0 width=425>';
	
		strText+='<tr>';
		strText+='<td valign="top" align=center colspan=3 width=425>';
		strText+='<span class="BodyHeadingOne">New Job Type</span>';
		strText+='</td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td valign=top align=left colspan=3  height=20>';
		strText+='</td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td valign=top align=left width=100>';
		strText+='</td>';
		strText+='<td valign=top align=left width=100>';
		strText+='<span class="BodyHeadingTwo">Job Type:</span>';
		strText+='</td>';
		strText+='<td valign=top align=left width=100>';
		strText+='<input type="text" id="txtNewJobType" name="txtNewJobType" class="BodyInputTextOne"><div id="DivTxtJobType"></div>';
		strText+='</td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td valign=top align=left colspan=3  height=20>';
		strText+='</td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td align="left">';
		strText+='</td>';
		strText+='<td valign="top" align="center"><div id="divSaveJobType">';
	    strText+='<a href="#" onClick="SaveNewJobType('+pIntUserId+','+pIntCompanyId+')"><img src="../IncludeFiles/CSS/images/save-button.jpg"></a>';
		strText+='</div>';
		strText+='</td>';
		strText+='<td align="left">';
		strText+='<div id="divSaveJobTypeCancel"><a href="#" onclick=hidePopup();> <img src="../IncludeFiles//CSS/images/cancel-button.jpg"></a></div>';
		strText+='</td>';
		strText+='</tr>';
	
		strText+='</table></div>';
		popUp.innerHTML = baseText+strText;
		
		//<input type="button" onclick=\"hidePopup();\">Close window<button></div>";
		var sbar = document.getElementById("statusbar");   
		sbar.style.marginTop = (parseInt(h)-110) + "px";  
		 popUp.style.visibility = "visible";
	}	
	
	/************************************************************************
	*
	*	Function Name:	SaveNewJobType									
	*	Author Name: 	Nabeel Bin Ezad
	*																		
	*************************************************************************/
	function SaveNewJobType(pIntUserId,pIntCompanyId)
	{
		xPos = document.documentElement.scrollTop;
		
		if(CheckJobTypeSetting())
		{
			
			var url = 'GUIService/JobsService.php?action=addjobtype&uid='+pIntUserId+'&companyid='+pIntCompanyId;
			var strJobType=document.getElementById('txtNewJobType').value;
			var par='jobtype='+strJobType;
			document.getElementById("divSaveJobType").innerHTML="<img src=ImageFiles/indicator_medium.gif>";
			document.getElementById("divSaveJobTypeCancel").innerHTML ="";

			var myRequest= new Ajax.Request(
				url, 
			{   
				method: 'post',
				parameters:par,
				onSuccess: function(transport) 
				{     
					window.scroll(0,xPos);
					hidePopup();
					document.getElementById("divJobType").innerHTML=transport.responseText;
					xPos=0;
				} 
			});	
			
		}
	}
	/************************************************************************
	*
	*	Function Name:	OpenNewDepartmentWindow									
	*	Author Name: 	Ramish Hashmi
	*																		
	*************************************************************************/	
	var baseText = null; 
	function OpenNewDepartmentWindow(pIntUserId,pIntCompanyId,w,h)
	{
		
		document.getElementById("popupcontent").innerHTML="";
		var e = window.event;
		
		var y=200;
		var x=(GetBrowserWidth()- w)/2;

		var popUp = document.getElementById("popupcontent");    
		popUp.style.top = y+"px";   
		popUp.style.left =x+"px";   
		popUp.style.width = w + "px";   
		//popUp.style.height = h + "px";    
		if (baseText == null) 
		baseText = popUp.innerHTML;   
		var strText='<div id=\"statusbar\" valign="top">';
		strText+='<table border=0 cellspacing=2 cellpading=2 width=450>';
		strText+='<tr>';
		strText+='<td valign="top" align=center colspan=3 width=450>';
		strText+='<span class="BodyHeadingOne">New Department</span>';
		strText+='</td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td valign=top align=left width=30>';
		strText+='</td>';
		strText+='<td valign=top align=left width=100>';
		strText+='<span class="BodyHeadingTwo">Department:</span>';
		strText+='</td>';
		strText+='<td valign=top align=left><span class="BodyText">';
		strText+='<input type="text" id="txtNewDepartment" name="txtNewDepartment" class="BodyInputTextOne"><div id="DivTxtDept"></div>';
		strText+='</span></td>';
		strText+='</tr>';
	
		strText+='<tr>';
		strText+='<td valign=top align=left width=30>';
		strText+='</td>';
		strText+='<td valign=top align=center colspan=2 height=20>';
		strText+='<span class="BodyText">';
		strText+='';
		strText+='</span></td>';
		strText+='</tr>';
		strText+='<tr>';
		strText+='<td valign=top align=left width=20>';
		strText+='</td>';
		strText+='<td valign=top align=right><div id="divSaveDepartment">';
	    strText+='<a href="#" onClick="SaveNewDepartment('+pIntUserId+','+pIntCompanyId+')"><img src="../IncludeFiles/CSS/images/save-button.jpg"></a>';
		strText+='</div></td>';
		strText+='<td valign=top align=left>';
		strText+='<div id="divSaveDepartmentCancel"><a href="#" onclick=hidePopup();> <img src="../IncludeFiles//CSS/images/cancel-button.jpg"></a></div>';
		strText+='</td>';
		strText+='</tr>';
	
		strText+='</table></div>';
		popUp.innerHTML = baseText+strText;
		
		//<input type="button" onclick=\"hidePopup();\">Close window<button></div>";
		var sbar = document.getElementById("statusbar");   
		sbar.style.marginTop = (parseInt(h)-110) + "px";  
		 popUp.style.visibility = "visible";
	}
	
	
	/************************************************************************
	*
	*	Function Name:	SaveNewDepartment									
	*	Author Name: 	Ramish Hashmi
	*																		
	*************************************************************************/	
	function SaveNewDepartment(pIntUserId,pIntCompanyId)
	{
		xPos = document.documentElement.scrollTop;
		if(document.getElementById('txtNewDepartment').value=="")
		 {
			document.getElementById('DivTxtDept').innerHTML='<span class="BodyTextMessageError">Required Field</span>';
			document.getElementById('txtNewDepartment').focus();
			return false;
		 }
		else if(!(CheckStringLength(document.getElementById('txtNewDepartment').value)))
		 {
			document.getElementById('DivTxtDept').innerHTML='<span class="BodyTextMessageError">String length too large. Only 255 characters allowed</span>';
			document.getElementById('txtNewDepartment').focus();
			return false;
		 }
		else
		  {
		 	var url = 'GUIService/JobsService.php?action=adddepartment&uid='+pIntUserId+'&companyid='+pIntCompanyId;
			var strDepartment=document.getElementById('txtNewDepartment').value;
			var par='department='+strDepartment;
			
			
			document.getElementById("divSaveDepartment").innerHTML="<img src=ImageFiles/indicator_medium.gif>";
			document.getElementById("divSaveDepartmentCancel").innerHTML ="";

			var myRequest= new Ajax.Request(
				url, 
			{   
				method: 'post',
				parameters:par,
				onSuccess: function(transport) 
				{     
					hidePopup();
					window.scroll(0,xPos);
					document.getElementById("divDepartment").innerHTML=transport.responseText;
					xPos=0;
				} 
			});	
			
		}
	}
	/************************************************************************
	*
	*	Function Name:	CheckJobTypeSetting									
	*	Author Name: 	Nabeel Bin Ezad
	*																		
	*************************************************************************/		
	function CheckJobTypeSetting()
	{
		if(document.getElementById('txtNewJobType').value=="")
		{
			document.getElementById('DivTxtJobType').innerHTML='<span class="BodyTextMessageError">Required Field</span>';
			document.getElementById('txtNewJobType').focus();
			return false;
		}
		else
		{

			if(CheckStringLength(document.getElementById('txtNewJobType').value))
			{
				document.getElementById('DivTxtJobType').innerHTML="";
				document.getElementById('DivTxtJobType').display="none";
				document.getElementById('DivTxtJobType').visibility="hidden";
				
			}
			else
			{
				document.getElementById('DivTxtJobType').innerHTML='<span class="BodyTextMessageError">String length too large. Only 255 characters allowed</span>';		
				return false;	
			}
			return true;
		}
		
	}
	/************************************************************************
	*
	*	Function Name:	OpenNewParticipantAddWindow									
	*	Author Name: 	Ramish Hashmi
	*																		
	*************************************************************************/	
	var baseText = null; 
	function OpenNewParticipantAddWindow(w,h,pIntCompanyId)
	{
		
		document.getElementById("popupcontent").innerHTML="";
		var e = window.event;
		
		var y=100;
		var x=(GetBrowserWidth()- w)/2;

		var popUp = document.getElementById("popupcontent");    
		popUp.style.top = y+"px";   
		popUp.style.left =x+"px";   
		popUp.style.width = w + "px";   
		//popUp.style.height = h + "px";    
		if (baseText == null) 
		baseText = popUp.innerHTML;   
		var strText='<div id=\"statusbar\" valign="top">';
		strText+='<table border=0 cellspacing=2 cellpading=2 width=475>';
		strText+='<tr>';
		strText+='<td valign="top" align=center colspan=4 width=475>';
		strText+='<span class="BodyHeadingOne">Add New Participant</span>';
		strText+='</td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td valign=top align=center colspan=4 height=20>';
		strText+='</td>';
		strText+='</tr>';	
		strText+='<tr>';
		strText+='<td valign=top align=right width=20><span class="BodyTextRequireField">*</span>';
		strText+='</td>';
		strText+='<td valign=top align=left width=100>';
		strText+='<span class="BodyHeadingTwo">First name:</span>';
		strText+='</td>';
		strText+='<td valign=top align=left><span class="BodyText">';
		strText+='<input type="text" id="txtParticipantFirstName" name="txtParticipantFirstName" class="BodyInputTextOne"><div id="DivTxtParFirstName"></div>';
		strText+='</span></td>';
		strText+='<td valign="top" align="left"><div id="divParFirstNameMsg"></div></td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td valign=top align=right width=20><span class="BodyTextRequireField">*</span>';
		strText+='</td>';
		strText+='<td valign=top align=left width=100>';
		strText+='<span class="BodyHeadingTwo">Last name:</span>';
		strText+='</td>';
		strText+='<td valign=top align=left><span class="BodyText">';
		strText+='<input type="text" id="txtParticipantLastName" name="txtParticipantLastName" class="BodyInputTextOne"><div id="DivTxtParLastName"></div>';
		strText+='</span></td>';
		strText+='<td valign="top" align="left"><div id="divParLastNameMsg"></div></td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td valign=top align=right width=20><span class="BodyTextRequireField">*</span>';
		strText+='</td>';
		strText+='<td valign=top align=left';
		strText+='<span class="BodyHeadingTwo">Email Address:</span>';
		strText+='</td>';
		strText+='<td valign=top align=left><span class="BodyText">';
		strText+='<input type="text" id="txtParEmailAddress" name="txtParEmailAddress" class="BodyInputTextOne"><div id="DivTxtParEmail"></div>';
		strText+='</span></td>';
		strText+='<td valign="top" align="left"><div id="divParEmailMsg"></div></td>';
		strText+='</tr>';
		strText+='<tr>';
		strText+='<td valign=top align=right width=20><span class="BodyTextRequireField">*</span>';
		strText+='</td>';
		strText+='<td valign=top align=left';
		strText+='<span class="BodyHeadingTwo">User Role:</span>';
		strText+='</td>';
		strText+='<td valign=top align=left><span class="BodyText">';
		strText+='<select id="cmbType" name="cmbType">';
		strText+='<option value="">Select One</option>';
		strText+='<option value=2>HR Recruiter</option>';
		strText+='<option value=5>Generic Manager</option>';
		strText+='</select>';	
		strText+='<div id="DivParType"></div>';
		strText+='</span></td>';
		strText+='<td valign="top" align="left"><div id="divParTypeMsg"></div></td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td valign=top align=center colspan=4 height=10>';
		strText+='</td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td valign=top align=center colspan=4>';
		strText+='<input type="image" src="../IncludeFiles//CSS/images/add-button.jpg" id="btnAddParticipant" name="btnAddParticipant" value="Add Participant" onClick="AddParticipant('+pIntCompanyId+')">&nbsp;';		
		strText+='<a href="#" onclick=hidePopup();> <img src="../IncludeFiles//CSS/images/cancel-button.jpg"></a>';
		strText+='</td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td valign=top align=center colspan=4>';
		strText+='<div id="DivAddStatus"></div>';
		strText+='</td>';
		strText+='</tr>';
	
		strText+='</table></div>';
		popUp.innerHTML = baseText+strText;
		
		//<input type="button" onclick=\"hidePopup();\">Close window<button></div>";
		var sbar = document.getElementById("statusbar");   
		sbar.style.marginTop = 10 + "px";  
		 popUp.style.visibility = "visible";
	}
	/************************************************************************
	*
	*	Function Name:	NewStatusPopup									
	*	Author Name: 	Ramish Hashmi
	*																		
	*************************************************************************/	

  function UpdateUserStatusWindow(pIntManagerId,pIntUserId,pIntStatus,w,h,pIntUserType,pIntManagerType)
	{
		document.getElementById("popupcontent").innerHTML="";
		yPos = document.documentElement.scrollTop;
	    var e = window.event;
		var y=200;
		var x=(GetBrowserWidth()- w)/2;
		
		var popUp = document.getElementById("popupcontent"); 
		popUp.style.top = y +"px";   
		popUp.style.left =x+"px";   
		popUp.style.width = w + "px";   
		//popUp.style.height = h + "px";    
		if (baseText == null) 
		baseText = popUp.innerHTML;   
		var strText='<div id=\"statusbar\" valign="top">';
		strText+='<table border=0 cellspacing=2 cellpading=2 width=250>';
		strText+='<tr>';
		strText+='<td valign="top" align=center colspan=3 width=250>';
		strText+='<span class="BodyHeadingOne">Accept or Decline?</span>';
		strText+='</td>';
		strText+='</tr>';
		
		/*strText+='<tr>';
		strText+='<td valign=top align=left width=30>';
		strText+='</td>';
		strText+='<td valign=top align=left width=100>';
		strText+='<span class="BodyHeadingTwo">Status Type:</span>';
		strText+='</td>';
		strText+='<td valign=top align=left><span class="BodyText">';
		strText+='<input type="text" id="txtNewStatus" name="txtNewStatus" class="BodyInputTextOne"><div id="DivTxtStatusType"></div>';
		strText+='</span></td>';
		strText+='</tr>';
		
	*/
		
		
		strText+='<tr>';
		/*strText+='<td valign=top align=left width=30>';
		strText+='</td>';
		strText+='<td valign=top align=center colspan=2 height=20>';
		strText+='<span class="BodyText">';
		strText+='';
		strText+='</span></td>';
		strText+='</tr>';
		strText+='<tr>';
		strText+='<td valign=top align=left width=20>';
		strText+='</td>';*/
		strText+='<td valign=top align=center width=80><div id="divStatusTypeAcc">';
		strText+='<a href="#" onClick="UpdateUserStatus(1,'+pIntUserId+','+pIntManagerId+','+pIntUserType+','+pIntManagerType+')"><img src="../IncludeFiles//CSS/images/accept-button.jpg"></a>';
		strText+='</div></td>';
		strText+='<td valign=top align=center width=80>';
		strText+='<div id="divStatusTypeDec"><a href="#" onclick="UpdateUserStatus(-1,'+pIntUserId+','+pIntManagerId+','+pIntUserType+','+pIntManagerType+')";><img src="../IncludeFiles//CSS/images/decline-button.jpg"></a></div>';
		strText+='</td>';
		strText+='<td valign=top align=center width=80>';
		strText+='<div id="divSaveStatusTypeCancel"><a href="#" onclick=hidePopup();> <img src="../IncludeFiles//CSS/images/cancel-button.jpg"></a></div>';
		strText+='</td>';
		strText+='</tr>';
	
		strText+='</table></div>';
		popUp.innerHTML = baseText+strText;
		
		//<input type="button" onclick=\"hidePopup();\">Close window<button></div>";
		var sbar = document.getElementById("statusbar");   
		//sbar.style.marginTop = (parseInt(h)-110) + "px";  
		sbar.style.marginTop = 38 + "px";  
		 popUp.style.visibility = "visible";
	}

	/*************************************************************************************
	*	Function Name:	UpdateUserStatus									
	*	Author Name  : 	Ramish Hashmi
	*	Synposis     :	Activates/Deactivate the user login																
	*****************************************************************************************/		
	function UpdateUserStatus(pIntStatus,pIntUserId,pIntManagerId,pIntUserType,pIntManagerType)
	{
		
		
		var url = 'GUIService/ProgramManagerService.php?action=updateUserStatus';
			
		var par='userId='+pIntUserId+'&statusId='+pIntStatus+'&managerId='+pIntManagerId;
		
		hidePopup();
		
		if(confirm("Are you sure you want to update the status"))
		{ 
			if(pIntUserType==7 && pIntManagerType==5)
			{
				 document.getElementById("DivMessagesTrans").innerHTML="<img src=ImageFiles/indicator_medium.gif>";
			}
			else
			//{
			 if(document.getElementById("DivMessages"))
			  document.getElementById("DivMessages").innerHTML="<img src=ImageFiles/indicator_medium.gif>";
			//}
			else
			 document.getElementById("divDashBoard").innerHTML="<img src=ImageFiles/indicator_medium.gif>";
			 window.scroll(0,yPos);
			 var myRequest= new Ajax.Request(
					url, 
					{   
					method: 'post',
					parameters:par,
					onSuccess: function(transport) 
					{
						//alert(transport.responseText);
						// document.getElementById("divDashBoard").innerHTML=transport.responseText;
						/*if(transport.responseText==1)
						{
							//*/
							 window.scroll(0,yPos);
							window.location="index.php?q=programmanager";
							yPos=0;
							
							
						/*	//var url = 'GUIService/ProgramManagerService.php?action=messages&uid='+pIntManagerId;
						}*/
					} 
				});
		   }
	  }
	  
	/*************************************************************************************
	*	Function Name:	Collapse									
	*	Author Name  : 	Ramish Hashmi
	*	Synposis     :	Activates/Deactivate the user login																
	*****************************************************************************************/		

	function Collapse(pStrPmJobs,pStrCollapse,pIntUserId,pIntDivId,pIntStatus)
	{
		
	   var url = 'GUIService/SettingService.php?action=saveusersetting&userid='+pIntUserId+'&divId='+pIntDivId+'&status='+pIntStatus;
	   var myRequest= new Ajax.Request(
		url, 
		{   
		  onSuccess: function(transport) 
		  {     
			  //document.getElementById(pStrCollapse).innerHTML=transport.responseText;
			  /*
			  if(document.getElementById(pStrCollapse).innerHTML=="+")
	 		 {
	 
				document.getElementById(pStrPmJobs).style.visiblity="visible";
			  	document.getElementById(pStrPmJobs).style.display="inline";
			  	document.getElementById(pStrCollapse).innerHTML="";
			  	document.getElementById(pStrCollapse).innerHTML="-";
			  }
			  else
			  {
				    document.getElementById(pStrPmJobs).style.visiblity="hidden";
				  	document.getElementById(pStrPmJobs).style.display="none";
				  	document.getElementById(pStrCollapse).innerHTML="";
				  	document.getElementById(pStrCollapse).innerHTML="+";
	  		}*/
	
		  }  
	  });
	   
	 
	}
	function CollapseUpdate(pStrPmJobs,pStrCollapse,pIntUserId,pIntDivId,pIntStatus,pIntSettingId,pNewDivOne,pNewDivTwo)
	{	
		
		xColPos = document.documentElement.scrollTop;
	   var url = 'GUIService/SettingService.php?action=upadusersetting&userid='+pIntUserId+'&divId='+pIntDivId+'&status='+pIntStatus+'&settingid='+pIntSettingId;
	   var myRequest= new Ajax.Request(
		url, 
		{   
		  onSuccess: function(transport) 
		  {    
		  	//	window.scroll(0,xColPos);
		
			//if(document.getElementById(pStrCollapse).innerHTML=='<IMG src="http://www.edetours.com/IncludeFiles/CSS/images/maximize-icon.jpg" border=0>')
			//if(document.getElementById(pStrCollapse).innerHTML=='<img src="IncludeFiles/CSS/images/maximize-icon.jpg" border=0>')
			//if(pIntStatus==0)
			
			if( pIntStatus == 1 )
			{				
				 //	document.getElementById(pStrPmJobs).style.visiblity="visible";
				 // document.getElementById(pStrPmJobs).style.display="inline";
				 document.getElementById(pStrPmJobs).style.display="block";
			  	/*document.getElementById(pStrCollapse).innerHTML="";
			  	document.getElementById(pStrCollapse).innerHTML="<img src=IncludeFiles/CSS/images/minimize-icon.jpg border=0>"; */
				document.getElementById(pNewDivOne).innerHTML='<a href="javascript:void(0)" onClick="CollapseUpdate(\''+pStrPmJobs+'\',\''+pStrCollapse+'\','+pIntUserId+',1,0,'+pIntSettingId+',\''+pNewDivOne+'\',\''+pNewDivTwo+'\')"><span class="DashBoardHeadingOne"><div id="'+pStrCollapse+'"><img src=IncludeFiles/CSS/images/minimize-icon.jpg border=0></div></span></a>';
			 }
			  else
			  {
					
				  //  document.getElementById(pStrPmJobs).style.visiblity="hidden";
				  	document.getElementById(pStrPmJobs).style.display="none";
				 /* 	document.getElementById(pStrCollapse).innerHTML="";
				  	document.getElementById(pStrCollapse).innerHTML="<img src=IncludeFiles/CSS/images/maximize-icon.jpg border=0>"; */
					//document.getElementById(pNewDivTwo).innerHTML='<a href="#" onClick="CollapseUpdate(\''+pStrPmJobs+'\',\''+pStrCollapse+'\','+pIntUserId+',1,1,'+pIntSettingId+',\''+pNewDivOne+'\',\''+pNewDivTwo+'\')"><span class="DashBoardHeadingOne"><div id="'+pStrCollapse+'"><img src=IncludeFiles/CSS/images/maximize-icon.jpg border=0></div></span></a>';
					document.getElementById(pNewDivOne).innerHTML='<a href="javascript:void(0)" onClick="CollapseUpdate(\''+pStrPmJobs+'\',\''+pStrCollapse+'\','+pIntUserId+',1,1,'+pIntSettingId+',\''+pNewDivOne+'\',\''+pNewDivTwo+'\')"><span class="DashBoardHeadingOne"><div id="'+pStrCollapse+'"><img src=IncludeFiles/CSS/images/maximize-icon.jpg border=0></div></span></a>';
					
	  		}
										
		  }  
	  });
	   
	 
	}
	/*function NewCollaspe(pStrPmJobs,pStrCollapse,pIntUserId,pIntDivId,pIntStatus,pIntSettingId)
	{
			
	}*/
	
	/************************************************************************
	*
	*	Function Name:	UpdateClientStatus									
	*	Author Name: 	Ramish Hashmi
	*																		
	*************************************************************************/	

  function UpdateClientStatus(pIntManagerId,pIntCompany,h,w)
	{
		document.getElementById("popupcontent").innerHTML="";
		var e = window.event;
		var y=140;
		var x=(GetBrowserWidth()- w)/2;

		var popUp = document.getElementById("popupcontent"); 
		popUp.style.top = y+"px";   
		popUp.style.left =x+"px";   
		popUp.style.width = w + "px";   
		//popUp.style.height = h + "px";    
		if (baseText == null) 
		baseText = popUp.innerHTML;   
		var strText='<div id=\"statusbar\" valign="top">';
		strText+='<table border=0 cellspacing=2 cellpading=2 width=250>';
		strText+='<tr>';
		strText+='<td valign="top" align=center colspan=3 width=250>';
		strText+='<span class="BodyHeadingOne">Accept or Decline Organization?</span>';
		strText+='</td>';
		strText+='</tr>';
		
		strText+='<tr>';
		strText+='<td valign=top align=center width=80><div id="divStatusTypeAcc">';
		strText+='<a href="#" onClick="UpdateClienttatus(1,'+pIntCompany+','+pIntManagerId+')"><img src="../IncludeFiles//CSS/images/accept-button.jpg"></a>';
		strText+='</div></td>';
		strText+='<td valign=top align=center width=80>';
		strText+='<div id="divStatusTypeDec"><a href="#" onclick="UpdateClienttatus(-1,'+pIntCompany+','+pIntManagerId+')";><img src="../IncludeFiles//CSS/images/decline-button.jpg"></a></div>';
		strText+='</td>';
		strText+='<td valign=top align=center width=80>';
		strText+='<div id="divSaveStatusTypeCancel"><a href="#" onclick=hidePopup();> <img src="../IncludeFiles//CSS/images/cancel-button.jpg"></a></div>';
		strText+='</td>';
		strText+='</tr>';
	
		strText+='</table></div>';
		popUp.innerHTML = baseText+strText;
		
		var sbar = document.getElementById("statusbar");   
		sbar.style.marginTop = (parseInt(h)-110) + "px";  
		 popUp.style.visibility = "visible";
	}
	
	/*************************************************************************************
	*	Function Name:	UpdateClienttatus									
	*	Author Name  : 	Ramish Hashmi
	*	Synposis     :	Activates/Deactivate the user login																
	*****************************************************************************************/		
	function UpdateClienttatus(pIntStatus,pIntCompany,pIntManagerId)
	{

		xPos = document.documentElement.scrollTop;
		var url = 'GUIService/ProgramManagerService.php?action=updateClientStatus';		
		var par='managerId='+pIntManagerId+'&statusId='+pIntStatus+'&compId='+pIntCompany;
		
		hidePopup();
		
		if(confirm("Are you sure you want to update the status"))
		{ 
			document.getElementById("DivCorporateClients").innerHTML="<img src=ImageFiles/indicator_medium.gif>";
			var myRequest= new Ajax.Request(
					url, 
					{   
					method: 'post',
					parameters:par,
					onSuccess: function(transport) 
					{
				
					//	document.getElementById("DivCorporateClients").innerHTML=transport.responseText;
						if(transport.responseText==1)
						{
							window.scroll(0,xPos);
							window.location="index.php?q=programmanager";
							xPos=0;
						}
					} 
				});
		   }
	  }
	  
	 var tempY; 
	 var tempX;
	 var test;
	 
	document.onmousemove = getMouseXY;
	  function getMouseXY(e) 
	  {
		  var IE = document.all?true:false

		// If NS -- that is, !IE -- then set up for mouse capture
		if (!IE) document.captureEvents(Event.MOUSEMOVE)
		  
		  if (IE) { // grab the x-y pos.s if browser is IE
    		tempX = event.clientX + document.body.scrollLeft
		    tempY = event.clientY + document.body.scrollTop
		  } else {  // grab the x-y pos.s if browser is NS
		    tempX = e.pageX
		    tempY = e.pageY
		  }  
		  // catch possible negative values in NS4
		  if (tempX < 0){tempX = 0}
		  if (tempY < 0){tempY = 0}  
		  // show the position values in the form named Show
		  // in the text fields named MouseX and MouseY
		 return true;
	}

	
	
	/*************************************************************************************
	*	Function Name:	testProf									
	*	Author Name  : 	Ramish Hashmi
	*	Synposis     :	Profile Popup															
	*****************************************************************************************/			  
 function testProf(pIntUserId,w,h,pIntManager)
	{
		// get current User's Id
		cUid = 0;
		if( document.getElementById('info')  )
			cUid = document.getElementById('info').innerHTML;

		
		document.getElementById("popupcontent").innerHTML="";
		
		yProfilePos = document.documentElement.scrollTop;
		test = tempY;
		var e = window.event;
	    var xCoordinated= (GetBrowserWidth()- w)/2;
		
		//var newWidth= GetBrowserWidth();
		var y=yProfilePos;
		var x=xCoordinated;
//       var parManagerId = document.getElementById("manager").value;
		var url = 'GUIService/UserInfoService.php?action=AllUserInfo&cuid=' + cUid;
		var strData
		var par = 'userId='+pIntUserId+'&manager='+pIntManager;
		
		var myRequest= new Ajax.Request(
						url, 
						{   
							method: 'post',
							parameters:par,
							onSuccess: function(transport) 
							{      
							  var popUp = document.getElementById("popupcontent");    
							  popUp.style.top = y+"px";   
							  popUp.style.left =x+"px";   
							  popUp.style.width = w + "px";   
							  //popUp.style.height = h + "px";    
							  
							 // alert(popUp.style.top +', '+popUp.style.left+', '+popUp.style.width);
							  
							  if (baseText == null) 
							  baseText = popUp.innerHTML;   
							  
							  var strText='<div id=\"statusbar\" valign="top">';
							  strText+=transport.responseText;
							  strText+='</div>';
							  popUp.innerHTML = baseText+strText;
		
							  //<input type="button" onclick=\"hidePopup();\">Close window<button></div>";
							  var sbar = document.getElementById("statusbar");   
							  sbar.style.marginTop = 10 + "px";  
							  popUp.style.visibility = "visible";
							  window.scroll(0,yProfilePos);
							}
			});
		}
   /*************************************************************************************
	*	Function Name:	getOrgDe									
	*	Author Name  : 	Muhammad Azeem	
	*	Synposis     :	Profile Popup															
	*****************************************************************************************/			  
 function getOrgDe(pIntCompanyId,w,h)
	{
		//document.write(pIntComapnyId);
		//document.write("inpop");
		document.getElementById("popupcontent").innerHTML="";
		var e = window.event;
		h=600;
		var y=100;
		var x=(GetBrowserWidth()- w)/2;
		/*document.getElementById("divDashBoard").innerHTML="<img src=ImageFiles/indicator_medium.gif>";-*/
	   var url = 'GUIService/OrganizationService.php?action=orgDetails&compId='+pIntCompanyId;;
	   var par='compId='+pIntCompanyId;
	   
		/* var parManagerId = document.getElementById("manager").value;
		var url = 'GUIService/UserInfoService.php?action=AllUserInfo';
		var strData
		var par = 'userId='+pIntUserId+'&manager='+parManagerId;*/
		var myRequest= new Ajax.Request(
						url, 
						{   
							method: 'post',
							parameters:par,
							onSuccess: function(transport) 
							{      
								//document.getElementById("divDashBoard").innerHTML=transport.responseText;
							  var popUp = document.getElementById("popupcontent");    
							  popUp.style.top = y+"px";   
							  popUp.style.left =x+"px";   
							  popUp.style.width = w + "px";   
							  //popUp.style.height = h + "px";    
							  if (baseText == null) 
							  baseText = popUp.innerHTML;   
							  
							  var strText='<div id=\"statusbar\" valign="top">';
							  strText+=transport.responseText;
							  strText+='</div>';
							  popUp.innerHTML = baseText+strText;
		
							  //<input type="button" onclick=\"hidePopup();\">Close window<button></div>";
							  var sbar = document.getElementById("statusbar");   
							  sbar.style.marginTop = 10 + "px";  
							  popUp.style.visibility = "visible";
							}
			});
		}
	window.onresize = GetBrowserWidth;
	function GetBrowserWidth() {
	if (document.all)
	{
	return document.body.clientWidth;
	}
	else
	{
	return window.innerWidth;
	}
	
	}
	
	/************************************************************************
	*
	*	Function Name:	OpenNewGroupWindow									
	*	Author Name: 	Ramish Hashmi
	*																		
	*************************************************************************/	
	var baseText = null; 
	function OpenNewGroupWindow(pIntUserId,pIntStatus,pIntCompanyId,w,pIntGroupStatus)
	{
		//var h =100;
		document.getElementById("popupcontent").innerHTML="";
		var h =130; 
		strGroup="";
		var rptGrpBoxes = document.frmCheckBoxes.rptCandidates.length;
							
			if(document.frmCheckBoxes.rptCandidates.length == undefined && document.frmCheckBoxes.rptCandidates.checked == true )
				strGroup = document.frmCheckBoxes.rptCandidates.value;
			else
			{
				for (i = 0; i < rptGrpBoxes; i++) 
				{
					if (document.frmCheckBoxes.rptCandidates[i].checked)
					{
						strGroup = strGroup + document.frmCheckBoxes.rptCandidates[i].value + ",";
					}
				} 
			}
			
			if(strGroup=='')
			{
				alert("Select At least One User!");
				return;
			}
			else
			{
				var e = window.event;
				
				var y=200;
				var x=(GetBrowserWidth()- w)/2;
				
				var popUp = document.getElementById("popupcontent");    
				popUp.style.top = y+"px";   
				popUp.style.left =x+"px";   
				popUp.style.width = w + "px";   
				//popUp.style.height = h + "px";    
				if (baseText == null) 
				baseText = popUp.innerHTML; 
				
				var strText='<div id=\"statusbar\" valign="top" align="center"  >';
				strText+='<table border="0" cellspacing=2 cellpading=2 width=375>';
				strText+='<tr>';
				strText+='<td valign="top" align="center" colspan=3 >';
				strText+='<span class="BodyHeadingOne">New Group</span>';
				strText+='</td>';
				strText+='</tr>';

				strText+='<tr>';
				strText+='<td valign="top" align="center" colspan=3 >&nbsp;</td>';
				strText+='</tr>';
				
				strText+='<tr>';
				/*strText+='<td valign=top align=left width=30>';
				strText+='</td>'; */
				strText+='<td colspan="2" valign=top align=left width=130>';
				strText+='<span class="BodyHeadingTwo">Group Name:</span>';
				strText+='</td>';
				strText+='<td valign=top align=left><span class="BodyText" width="245">';
				strText+='<input type="text" id="txtGroupName" name="txtGroupName" class="BodyInputTextOne"><div id="DivTxtGroup"></div>';
				strText+='</span></td>';
				strText+='</tr>';
				
				strText+='<tr>';
			/*	strText+='<td valign=top align=left width=30>';
				strText+='</td>'; */
				strText+='<td valign=top colspan="3" align=center colspan=2 height=20>';
				strText+='<span class="BodyText">';
				strText+='';
				strText+='</span></td>';
				strText+='</tr>';
				strText+='<tr>';
			/*	strText+='<td valign=top align=left width=20>';
				strText+='</td>'; */
				strText+='<td valign=top colspan="3" align="center"><div id="divSaveGroup" style="display:inline">';
				strText+='<a href="#" onClick="SaveNewGroupRpt('+pIntUserId+','+pIntCompanyId+','+pIntStatus+','+pIntGroupStatus+')"><img src="../IncludeFiles/CSS/images/save-button.jpg"></a>';
				strText+='</div>';
				strText+='';
				strText+='<div id="divSaveGroupCancel"  style="display:inline">&nbsp;&nbsp;<a href="#" onclick=hidePopup();> <img src="../IncludeFiles//CSS/images/cancel-button.jpg"></a></div>';
				strText+='</td>';
				strText+='</tr>';
				strText+='</table></div>';
				popUp.innerHTML = baseText+strText;
				var sbar = document.getElementById("statusbar");   
				sbar.style.marginTop = (parseInt(h)-110) + "px";  
				popUp.style.visibility = "visible";
			}
		/*
		
		
		//<input type="button" onclick=\"hidePopup();\">Close window<button></div>";
		*/
	}
	
	/*************************************************************************************
	*	Function Name:	SaveNewGroup									
	*	Author Name  : 	Ramish Hashmi
	*	Synposis     :	Add a new group type														
	*****************************************************************************************/		

	function SaveNewGroupRpt(pIntUserId,pIntCompanyId,pIntStatus,pIntGroupStatus)
	{
	  xPos = document.documentElement.scrollTop;	  
	  var txtGroupName = document.getElementById('txtGroupName').value;
	  
	  
	  if(document.getElementById('txtGroupName').value == "")
		 {
			document.getElementById('DivTxtGroup').innerHTML='<span class="BodyTextMessageError">Required Field</span>';
			document.getElementById('txtGroupName').focus();			
			return false;
		 }
		else if(!(CheckStringLength(document.getElementById('txtGroupName').value)))
		 {
			document.getElementById('DivTxtGroup').innerHTML='<span class="BodyTextMessageError">String length too large. Only 255 characters allowed</span>';
			document.getElementById('txtGroupName').focus();
			return false;
		 }
		else
		  {
			 
		 	var url = 'GUIService/MessageService.php?action=savegrouprpt&uid='+pIntUserId+'&compid='+pIntCompanyId;
			var grpName=document.getElementById('txtGroupName').value;
    		var par='group='+grpName;
			
			document.getElementById("advSrchMssg").innerHTML="<img src=ImageFiles/indicator_medium.gif>";

			var myRequest= new Ajax.Request(
				url, 
			{   
				method: 'post',
				parameters:par,
				onSuccess: function(transport) 
				{     
					var pIntGroupId=transport.responseText;
					
					var par='contactlist='+strGroup;
					
					var url = 'GUIService/MessageService.php?action=savegroupcontactrpt&uid='+pIntUserId+'&compid='+pIntCompanyId+'&groupid='+pIntGroupId; 			
					var myRequest= new Ajax.Request(
							url, 
							{   
								method: 'post',
								parameters:par,
								onSuccess: function(transport) 
								{      		
									if(document.getElementById("advSrchWndw").value == 1)
									{	
										if( transport.responseText == 2  )
											document.getElementById("advSrchMssg").innerHTML="<br /><span class='BodyTextMessage'>The User(s) Were Added To The Already Existing Group Specified</span>";		
										else if( transport.responseText != 1  )
											document.getElementById("advSrchMssg").innerHTML="<br /><span class='BodyTextMessage' style='color:red'>The Follwing Users Were Not Added Because They Already Existed In The Group: "+ transport.responseText +"</span>";
										else
											document.getElementById("advSrchMssg").innerHTML="<br /><span class='BodyTextMessage'>The Group Has Been Created</span>";										
									}
									else if(pIntGroupStatus==1)
										GetCandidateSummary(pIntUserId,pIntStatus);
										
									else if(pIntGroupStatus==2)
										EventsReport(pIntUserId,pIntStatus);	
									else
										ViewReportsForms(pIntUserId); 
								} 								
							}); 	

					
					
				} 
			});	
			
		}
		hidePopup();
	  
	}
		