// JavaScript Document
var xmlHttp;
var count=0;

function GetXmlHttpObject()
{ 
	var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  
	return xmlHttp;
	
/*	var objXMLHttp=null;
	if (window.XMLHttpRequest)
	{
	objXMLHttp=new XMLHttpRequest();
	}
	else if (window.ActiveXObject)
	{
	//	objXMLHttp = new ActiveXObject("Msxml2.XMLHTTP"); 
	objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	return objXMLHttp;
*/
}

function ShowQuickStart()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/quick_start.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 
function ShowProfile()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/member_profile.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowConnection()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/member_connections.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowConnectionNew(){
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/member_connections.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
}
function ShowMessages()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/my_messages.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowAccount()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/my_account.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
}

function ShowPhotos()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/my_photos.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowAds()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/my_ads.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
}

function ShowCommissionR()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/commission_report.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowContactMeFor()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/contact_me_edit.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowSentMessage()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/sent_message.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowCreditCard()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/cc_detail.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowChangePassword()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/change_password.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowMarketplaceEdit()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/marketplace_edit.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowWishlistEdit()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/wishlist_edit.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowMarketplaceDetail()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/marketplace_detail.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowWishlistDetail()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/wishlist_detail.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowChangePackage()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/change_package_confirmation.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowMessageDetail()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/inbox_detail.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowSentMessageDetail()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/sent_detail.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowUploadPhoto()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/my_photos.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowEditProfile()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/edit_profile.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowEditInterested()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/interested.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowInsertNew()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/insert_new_info.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowLatestUpdates()
{	

	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/latest_updates.php"	
	url=url+"?rndno="+Math.random();
	
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowLatestVisitors()
{	

	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/latest_visitors.php"	
	url=url+"?rndno="+Math.random();
	
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowBlog()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/blog.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowBlogDetail(blogid)
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/blog_detail.php"	
	url=url+"?rndno="+Math.random()+"&blogdetail="+blogid;
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
}


function ShowReadComment(blogid)
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/read_comment.php"	
	url=url+"?rndno="+Math.random()+"&blogid="+blogid;
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowAddComment(blogid)
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/add_comment.php"	
	url=url+"?rndno="+Math.random()+"&blog="+blogid;
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowMemberByEvent()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/member_by_event.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowMemberByInterest()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/member_by_interest.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowMemberByLocation()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/member_by_location.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowComposeMessage()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/compose_message.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowCloseConfirm()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/close_account_confirmation.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
} 

function ShowCloseAccount()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/close_account.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
}

function ShowCloseAccountThanks()
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/close_account_thanks.php"	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
}

function ShowComment(commentId)
{		
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	var url="include/comment_detail.php"	
	url=url+"?rndno="+Math.random()+"&comment="+commentId;
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
}

function stateChanged() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
		{document.getElementById("member_content").innerHTML=xmlHttp.responseText;} 
} 

//function showProfilePanel(newdiv){
//	
//
//}
//function staChanged() 
//{ 
//	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
//		{document.getElementById("my1Div").innerHTML=xmlHttp.responseText;} 
//} 

var num=0;
function addMoreProfessions(){
  xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	 // var num = (document.getElementById("TotalProfession").value -1)+2;
	 num=num+1;
	
	  if(num<1){
		  
document.getElementById("DelPreProMore").style.display='block';	
document.getElementById("deletemore").style.display='none';		  
		  }else{
			  document.getElementById("deletemore").style.display='block';		
				document.getElementById("DelPreProMore").style.display='none';	
			  }

	var url="addProf.php?num="+num;	
	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=staChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
  var ni = document.getElementById('addMoreProff');
  var numi = document.getElementById('TotalProfession');
  
  numi.value = num;
  var divIdName = "my"+num+"Div";
  var newdiv = document.createElement('div');
  newdiv.setAttribute("id",divIdName);
  function staChanged() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
		{newdiv.innerHTML =xmlHttp.responseText;} 
		

} 
 
 // newdiv.innerHTML =
  
  
  
	 
  ni.appendChild(newdiv);
	/*//document.getElementById('addMoreProff').innerHTML = element;
	var ni = document.getElementById('addMoreProff');
	var newdiv = document.createElement('div');
	var divIdName = "my_" + count;
	newdiv.setAttribute('id',divIdName);
	
	ni.appendChild(newdiv); 
	 ShowDropDown("addProf.php","",divIdName);
	//newdiv.innerHTML =
		count++;*/


}


function deleteProfessions(){
	
     num =num-1;


	  if(num<1){
		  
document.getElementById("DelPreProMore").style.display='block';	
document.getElementById("deletemore").style.display='none';		  
		  }else{
			  document.getElementById("deletemore").style.display='block';		
				document.getElementById("DelPreProMore").style.display='none';	
			  }

	var ni = document.getElementById('addMoreProff');
	
	var deltr=ni.lastChild;
		if(deltr)
		ni.removeChild(deltr);
	
	
}


function deleteProfessionPerManent(MemberProfessionID){
	if(confirm("Dou want to delete this profession detail"))
	{
		window.location.href='create_profile_action.php?formName=deleteProfessionPerManent&MemberProfessionID='+MemberProfessionID;
	}
}


var getCountryList=function(){
										
										if (xmlHttp.readyState == 4 || xmlHttp.readyState=="complete")
										{
											{
												
												//alert(xmlHttp.responseText);
												var defaultval = new Array();
												var selval		=	"";
												defaultval['disp'] = 'Select';
												defaultval['val']  = '0';	
																						
												
												//document.getElementById("StateID").innerHTML=xmlHttp.responseText;
												//document.getElementById("CommunityID").innerHTML="<option>Select Community</option>";
											} 
											
										}
								};
function addExtraImages() {
  var ni = document.getElementById('extraImages');
  var ni1 = document.getElementById('extraTitle');
  var numi = document.getElementById('TotalExtraImages');
  var num = (document.getElementById("TotalExtraImages").value -1)+ 2;
  
  numi.value = num;
  var divIdName = "my"+num+"Div";
  var newdiv = document.createElement('div');
	  newdiv.setAttribute("id",divIdName);
var newdiv1 = document.createElement('div');
  newdiv1.setAttribute("id",divIdName);

    
  newdiv1.innerHTML = "<div class='clear' style='padding-top:12px;'></div><div style='width:240px; float:left;' align='right'><div class='contenText'>Photo Title :</div><div class='clear' style='padding-top:10px;'></div><div class='contenText'>Attach Photo :</div></div><div class='clear' style='padding-top:12px;'></div>";
  
  newdiv.innerHTML = "<div class='clear' style='padding-top:8px;'></div><div style='width:400px; float:left;'><input type='text' name='Title"+num+"' id='Title"+num+"' maxlength='20'   class='txt2'/></div><div style='float:left; padding-top:5px;' class='smallgrey'><input type='file' name='OriginalFileName"+num+"' id='OriginalFileName"+num+"' class='textfield'/></div><div class='clear' style='padding-top:8px;'></div>";
  
  
	 if(num==5 || num>5)
	  {
		  alert('can not upload more files');
		  return false;
	  }
	  
	ni1.appendChild(newdiv1);
	ni.appendChild(newdiv);
  
}

function deleteimage()
{
	var imgCheck	=	document.getElementsByName("imagenameid[]");
	var count = 0;
	  for(i=0; i<imgCheck.length; i++)
	  {
		  
			if(imgCheck[i].checked==true)
			{
				count=1
			}
			
	  }
	 // document.getElementById("exportCSvmemberIDs").value=defaultval;
	 if(count==1){
		  document.mem_photos.action = 'include/my_photos_action.php';
	      document.mem_photos.submit();
	 
		 }else{
			 alert("Please select at least one image to delete");
	 }
	 // window.location.href="exportToCsv.php?action=export&memberid="+defaultval;
}	
var num=0;
function addMoreEducations(){
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	} 
	 num=num+1;
	  if(num<1){
document.getElementById("DelPreEteMore").style.display='block';			  
document.getElementById("DelEteMore").style.display='none';		  
		  }else{
			  document.getElementById("DelEteMore").style.display='block';	
			  document.getElementById("DelPreEteMore").style.display='none';	
			  }
  //var num = (document.getElementById("TotalEducation").value -1)+ 2;
	
	var url="add_Education.php?num="+num;
//	url=url+"?rndno="+Math.random();
	xmlHttp.onreadystatechange=staChanged ;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	
  var ni = document.getElementById('addMoreEdu');
  var numi = document.getElementById('TotalEducation');
  //var num = (document.getElementById("TotalEducation").value -1)+ 2;
  
  numi.value = num;
  var divIdName = "my"+num+"Div";
  var newdiv = document.createElement('div');
  newdiv.setAttribute("id",divIdName);
  function staChanged() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
		{newdiv.innerHTML =xmlHttp.responseText;} 
} 
 ni.appendChild(newdiv);
	}
	
function deleteEducations(){
/*	var ni = document.getElementById('addMoreEdu');
	
	var deltr=ni.lastChild;
		if(deltr)
		ni.removeChild(deltr);
*/	

     num =num-1;
	  if(num<1){

document.getElementById("DelPreEteMore").style.display='block';	
document.getElementById("DelEteMore").style.display='none';		  
		  }else{
			  document.getElementById("DelEteMore").style.display='block';		
			  document.getElementById("DelPreEteMore").style.display='none';
			  }
	var ni = document.getElementById('addMoreEdu');
	var deltr=ni.lastChild;
		if(deltr)
		ni.removeChild(deltr);


}	

function deleteEducationsPerManent(MemberEducationID){
	if(confirm("Dou want to delete this education detail"))
	{
		window.location.href='create_profile_action.php?formName=deleteEducationsPerManent&MemberEducationID='+MemberEducationID;
	}
}	
/*function ShowDropDown(page,parms,fieldID)
{	

	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	
	var url=page;	
	url=url+"?rndno="+Math.random();
	url=url+parms;
	xmlHttp.onreadystatechange=function(){
										if (xmlHttp.readyState == 4 || xmlHttp.readyState=="complete")
										{
											{
													var defaultval = new Array();
													var selval		=	"";
													defaultval['disp'] = 'Select';
													defaultval['val']  = '0';	
													
													if(fieldID=="StateID")
													{
														fill_combo(xmlHttp.responseText,document.getElementById("StateID"), defaultval,selval);
														fill_combo("",document.getElementById("CommunityID"), defaultval,selval);
													}
													else
													{		
														fill_combo(xmlHttp.responseText,document.getElementById("CommunityID"), defaultval,selval);
													}
												//document.getElementById(fieldID).innerHTML=xmlHttp.responseText;
											} 
											
										}
								};
	
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	return false;
}

function fill_combo(passed_values,passed_combo_ref,defaultval,selval)
{
			//alert(passed_values);
			var mytool_array=passed_values.split("|");
			passed_combo_ref.length=0;
			if (passed_values == "") {
				var new_Option = new Option('Select', '');
				passed_combo_ref.options[0] = new_Option;
				return false;
			}else if(passed_values == "0"){
				var new_Option = new Option('Select', '');
				passed_combo_ref.options[0] = new_Option;
			return false;
			}
		
			var new_Option = new Option(defaultval['disp'], defaultval['val']);
			passed_combo_ref.options[0] = new_Option;
			
			for(counter=0;counter<mytool_array.length;counter++)		
			{
			
				if(mytool_array[counter].length>0)
				{
					var mytool_array_param=mytool_array[counter].split(",");
					
					if (selval != "" && selval === mytool_array_param[1]) {
						var new_Option = new Option(mytool_array_param[0], mytool_array_param[1], '', 1);	
					} else {
						var new_Option = new Option(mytool_array_param[0], mytool_array_param[1]);
					}
					passed_combo_ref.options[counter+1] = new_Option;
					
				}
				else
				{					
					if(counter==0)
					{					
					passed_combo_ref.length=0;
					}
				}
			}
			
		}*/
/////////////////////////////////////  ////////////////////////////////////////////////
	function chkAllResult(chkboxArray)
	{
		check	=	document.getElementsByName(chkboxArray);
			for(i=0; i<check.length; i++){
					check[i].checked = true;
				}
	}
	
	function UnchkAllResult(chkboxArray)
		{
			check	=	document.getElementsByName(chkboxArray);
			for(i=0; i<check.length; i++){
					check[i].checked = false;
				}
		}
	
		
	
///////////////////////////////////	 //////////////////////////////////////
	function redirectFromIndexTo(ViewId,Path,strName)
	{
		if(!document.getElementById(ViewId).value)
		{
			if(strName=='WishListID')
			{
				window.location.href='wishlist/wishlist.php';
			}
			else if(strName='MarketPlaceID')
			{
				window.location.href='marketplace/marketplace.php';
			}
			//alert("Please select at least one record for view their detail");	
		}
		else
		{
			window.location.href=Path+"?"+strName+"="+document.getElementById(ViewId).value;
		}
	}
/////////////////////////////////////  ////////////////////////////////////////////////

   function makePOSTRequest(url, parameters) {
     xmlHttp=GetXmlHttpObject();
	  http_request =  xmlHttp;
     
      if (!http_request) {
         alert('Cannot create XMLHTTP instance');
         return false;
      }
      
      http_request.onreadystatechange = alertContents;
      http_request.open('POST', url, true);
      http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
      http_request.setRequestHeader("Content-length", parameters.length);
      http_request.setRequestHeader("Connection", "close");
      http_request.send(parameters);
   }

 function alertContents() {
      if (http_request.readyState == 4) {
         if (http_request.status == 200) {
            //alert(http_request.responseText);
            var result 		= 	http_request.responseText;
			
			var finalres 	= 	result.split("##*#");
			var res1		=	finalres[0];
			var res2		=	finalres[1];
			if(res1==1)
			 {
			  document.getElementById('mymsg').innerHTML = res2;  	 
			  	
			 }
			 else
			 {
			  	 	 
		      ShowBlogDetail(res2); 
		     }
			
         
         } else {
            alert('There was a problem with the request.');
         }
      }
   }
   
   function getCommentPostval(obj) {
      var poststr = "Name=" + encodeURI( document.getElementById("Name").value ) +
                    "&Email=" + encodeURI( document.getElementById("Email").value )+
                    "&Subject=" + encodeURI( document.getElementById("Subject").value )+
                    "&Comment=" + encodeURI( document.getElementById("Comment").value )+
                    "&action=" + encodeURI( obj.action.value )+
                    "&blogid=" + encodeURI( document.getElementById("blogid").value )
					
					;
					
      makePOSTRequest('quick_start_action.php', poststr);
   }
///////////////////////////////////////////////////////////	PAGE ORDER //////////////////////////////////////

function changeOrder(order,path,catId)
{
	$catCondition	=		"";
	if(catId)
	{
		$catCondition	=	"&catId="+catId;	
	}
	if(order==1)
	{
		window.location.href=path+"?orderBy="+order+$catCondition;
	}
	else if(order==2)
	{
		window.location.href=path+"?orderBy="+order+$catCondition;
	}
	else
	{
		window.location.href=path+"?orderBy="+order+$catCondition;
	}
}

function changeClass(order)
{
	if(order==1)
	{
		document.getElementById("All").className ="greyTab";
		document.getElementById("Recent").className ="whiteTab";
		document.getElementById("Active").className ="whiteTab";
	}
	else if(order==2)
	{
		document.getElementById("All").className ="whiteTab";
		document.getElementById("Recent").className ="whiteTab";
		document.getElementById("Active").className ="greyTab";	
	}
	else
	{
                document.getElementById("All").className ="whiteTab";
		document.getElementById("Recent").className ="greyTab";
		document.getElementById("Active").className ="whiteTab";
	}

}
///////////////////////////////////////////////////////////	MEMBER LOOKING FOR //////////////////////////////////////
function searchLookingFor(LookingForForm)
{
	document.getElementById(LookingForForm).submit();
}

///////////////////////////////////////////////////////////	PAGE ORDER //////////////////////////////////////
///////////////////////////////////////////////////////////	MEMBER SEARCH FOR //////////////////////////////////////
function searchConnection()
{
	window.location.href="my_connections.php";
}

///////////////////////////////////////////////////////////	PAGE ORDER //////////////////////////////////////

function makeblank(t,cval){
	
	if(t.value == cval){
			t.value='';
		}
	
		
	}

function openNewWindow( pageToLoad, winName, width, height, center,resizeable) {
	alert(pageToLoad);
xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
xposition = (screen.width - width) / 2;
yposition = (screen.height - height) / 2;
}
args = "width=" + width + ","
+ "height=" + height + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable="+resizeable
+ ",scrollbars=1,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //NN Only
+ "screeny=" + yposition + "," //NN Only
+ "left=" + xposition + "," //IE Only
+ "top=" + yposition; //IE Only
window.open( pageToLoad,winName,args );
}

