function Show_Update_Comment(resultdiv,ProcessDiv)
{
   var objOverlay=document.getElementById(ProcessDiv);   
   var arrayPageSize = getPageSize();
   var arrayPageScroll = getPageScroll();
	// set height of Overlay to take up whole page and show
	objOverlay.style.height = (arrayPageSize[1] + 'px');
	//objOverlay.style.width = (arrayPageSize[0] + 'px');
	objOverlay.style.display = 'block';
    var div=document.getElementById(resultdiv);
    div.style.display='block';
   var pagesize1 = getPageSize();
   var arrayPageScroll2 = getPageScrollTop();  
    
	//SetPos();
    return true;      
}
function showloginBox(type) // function for post Comment for Inappropriate
{ 
	if(type=='loginbox')
	show_loginbox("login.php","loginpopup");
}

function showCityBox(type) // function for post Comment for Inappropriate
{ 
	if(type=='citybox')
	show_loginbox("static/citydisplay.php","citypopup");
}

function sendEmailHelp(type,id) // function for post Comment for Inappropriate
{ 
	if(type=='emailbox')
	show_loginbox("member/sendEmailHelp.php?id="+id,"emailhelp");
}
function addtoFavourite(type,memid) // function for post Comment for Inappropriate
{ 
	if(type=='favbox')
	show_loginbox("member/addFavourite.php?memid="+memid,"favbox");
}
function showIntrest(type,memid) // function for post Comment for Inappropriate
{ 
	if(type=='intrestbox')
	show_loginbox("member/showIntrest.php?memid="+memid,"intrestbox");
}
function addToBlock(type,memid) // function for post Comment for Inappropriate
{ 
	if(type=='blockbox')
	show_loginbox("member/addBlockMember.php?memid="+memid,"blockbox");
}

function addToUnBlock(type,memid) // function for post Comment for Inappropriate
{ 

//alert(type);
	if(type=='Unblockbox')
	show_loginbox("member/addUnblockMember.php?memid="+memid,"Unblockbox");
}

function sendProfile(type,memid) // function for post Comment for Inappropriate
{ //alert("ccccccccccc");
	if(type=='sendprofile')
	show_loginbox("member/addBlockMember.php?memid="+memid,"blockbox");
}
function sendProfileMember(type,memid) // function for post Comment for Inappropriate
{ 
	if(type=='sendprofilemember')
	show_loginbox("member/sendprofilemember.php?memid="+memid,"sendprofilebox");
}

function report_abuse(type,memid) // function for post Comment for Inappropriate
{ 
	if(type=='sendprofilemember')
	show_loginbox("member/report_abuse.php?memid="+memid,"sendprofilebox");
}

function showPhotoBox(type) // function for post Comment for Inappropriate
{ 
	if(type=='UPhoto')
	show_photoBox("static/uploadphoto.php","uploadingimage");
}


function hidebackground(mainId,id) //hide background 
    { 
		
		 document.getElementById(id).style.display="none";
		 document.getElementById(mainId).style.display="none";
    }
	
	// JScript File
function getPageSize()
{
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) 
	{	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	}
	else if (document.body.scrollHeight > document.body.offsetHeight)
	{ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	}
	else
	{ // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight)
	{	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} 
	else if (document.documentElement && document.documentElement.clientHeight)
	{ // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	}
	else if (document.body)
	{ // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight)
	{
		pageHeight = windowHeight;
	}
	else
	{ 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth)
	{	
		pageWidth = windowWidth;
	}
	else
	{
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}

function getPageScroll()
{

	var yScroll;

	if (self.pageYOffset) 
	{
		yScroll = self.pageYOffset;
	}
	else if(document.documentElement && document.documentElement.scrollTop)
	{	 // Explorer 6 Strict
		yScroll = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
	    // all other Explorers
		yScroll = document.body.scrollTop;
	}

	arrayPageScroll = new Array('',yScroll);
	return arrayPageScroll;
}

function getPageScrollTop()
{
	var yScrolltop;
	var xScrollleft;
	if (self.pageYOffset || self.pageXOffset)
	{
		yScrolltop = self.pageYOffset;
		xScrollleft = self.pageXOffset;
	} 
	else if(document.documentElement && document.documentElement.scrollTop || document.documentElement.scrollLeft )
	{	
	     // Explorer 6 Strict
		 yScrolltop = document.documentElement.scrollTop;
		 xScrollleft = document.documentElement.scrollLeft;
	}
	else if (document.body) 
	{
	    // all other Explorers
         yScrolltop = document.body.scrollTop;
	     xScrollleft = document.body.scrollLeft;
	}
	arrayPageScroll = new Array(xScrollleft,yScrolltop);
	return arrayPageScroll;
}
function Validationsend_report(url,memid)
{ 
	if(document.getElementById("reasonSuspect").value=='')
	{
		alert("Please Select Reason.");
		document.getElementById("reasonSuspect").focus();
		return false;
	}
	
	if(document.getElementById("comment").value=='')
	{
		alert("Please Enter Comment.");
		document.getElementById("comment").focus();
		return false;
	}
	if(document.getElementById("evidence").value=='')
	{
		alert("Please Enter Evidence.");
		document.getElementById("evidence").focus();
		return false;
	}
	
	//alert("member/sendprofilememberajax.php?sendemail="+document.getElementById("friend_email").value+"&msg="+document.getElementById("message").value+"&memid="+memid,"LoginMsg");
	show_Reg("member/send_report.php?reason="+document.getElementById("reasonSuspect").value+"&comment="+document.getElementById("comment").value+"&evidence="+document.getElementById("evidence").value+"&memid="+memid,"LoginMsg");
}


