
/*--------------------------------------------------------------------------------------------------*/
	// 
	
	
	function showrate(pid,oldrate,rte,ru,obj)
	{	
		//alert(pid);alert(oldrate);alert(rte);
		var currentTime = new Date();
		FileName = ru+"ajaxphp.php?pid="+pid+"&oldrate="+oldrate+"&rte="+rte+"&dt="+currentTime;		
		makeRequestMulti(FileName,obj);
	}



/*--------------------------------------------------------------------------------------------------*/

function addfavorites(ui_id,postid,ru){
		var currentTime = new Date();
		var obj = ui_id;
		FileName = ru+"ajaxresponse/addfavorite.php?pid="+postid+"&ui_id="+ui_id+"&dt="+currentTime;	
		makeRequestMulti(FileName,obj);
}

function removefavorites(ui_id,postid,ru){
		var currentTime = new Date();
		var obj = ui_id;
		FileName = ru+"ajaxresponse/removefavorite.php?pid="+postid+"&ui_id="+ui_id+"&dt="+currentTime;	
		makeRequestMulti(FileName,obj);
}


	
//***********************Come Home**********************/



	function comehome(ru)
	{
			window.location = ru;
			//window.location = 'http://200.200.200.5/jdconfess/';
	}
//***********************Come Home**********************/

	function advsearch()
	{
			window.location = "index.php?p=searchadvance";
	}
/*--------------------------------------------------------------------------------------------------*/
	function anyCheck(form) 
	{
		var total = 0;
		var max = form.chk.length;
		//var value=array(2);
		for (var idx = 0; idx < max; idx++) 
		{
			if (eval("document.seoranking.chk[" + idx + "].checked") == true) 
			{
				total += 1;
			}
		} 
		if(total==2)
		{ 
			 
			//alert(tmp);
			tmp='';
			for (var idx = 0; idx < max; idx++) 
			{
				if (eval("document.seoranking.chk[" + idx + "].checked") == true) 
				{
					tmp = document.seoranking.chk[idx].value + ',' +tmp;
				}
			}
			window.location="index.php?p=comparizon&showseo="+tmp;
		} else{
			 alert("Pick Just Two Please.");
		}		
		return false;
	} 

/***************************************************************************/
	function anyCheckseo(form) 
	{
		var tmp='';
			for (var idx = 0; idx < max; idx++) 
			{
				if (eval("document.seoranking.chk[" + idx + "].checked") == true) 
				{
					tmp =  document.seoranking.chk[idx].value+ ','+tmp;
				}
			}
			window.location = "index.php?p=comparizon&showseo="+tmp;
	}
	
/*--------------------------------------------------------------------------------------------------*/	
	
	function selMultiid(myform)
	{
		
		var DelId;
		var cd;
		cd=confirm("Are You Sure To ...............?");
		if(cd)
		{
					
					var tmp='';
					var aa= document.getElementById(myform);
					for (var i =0; i < aa.elements.length; i++) 
					{
						if(aa.elements[i].checked == true)
						{
							if (tmp == '' )
							{
								tmp= aa.elements[i].value;
							}
							else
							{
								tmp=tmp + ',' + aa.elements[i].value;
							}	
						}
					}
					alert(tmp);
					
					
					if (tmp!='') 
					{
						
						//var arg = "action=Multidelcustomercontacts&MultiDelId="+tmp+"&sendap=25";
						window.location = "message.php?delall="+tmp;
					}
					else
					{
						alert("select atleast one contact Mail list.");
					}
				
				
		}


	}
