
function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}
function further(product_id,list,my)
	{
			var url="http://wakeupmakeup.com/ajax.php";
			url=url+"?product_id="+product_id+"&list="+list+"&my="+my;
			xmlHttp=GetXmlHttpObject();
			if (xmlHttp==null)
			 {
			 alert ("Browser does not support HTTP Request")
			 return
			 }
			if(my!=0)
			{
			xmlHttp.onreadystatechange=stateChanged ;
			xmlHttp.open("GET",url,true);
			xmlHttp.send(null);
			}
			else
			{
				alert('Please Login First');
				return 0;
			}
	}
		function stateChanged()
		{ 
			 if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			 {  
			 	
			 	var a=trim(xmlHttp.responseText).split('--');
				if(confirm(a[0]))
				{
					window.location=a[1];		
				}
				else
					return 0;			
			 } 
		}
		
		function GetXmlHttpObject()
		{
			var xmlHttp=null;
			try
			 {
			 // Firefox, Opera 8.0+, Safari
			 xmlHttp=new XMLHttpRequest();
			 }
			catch (e)
			 {
			 //Internet Explorer
			 try
			  {
			  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			  }
			 catch (e)
			  {
			  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			  //alert("hi"+xmlHttp);
			  }
			 }
		return xmlHttp;
		}

