function requestContentTwo(queryvar,phpsessionid){
	
	// converts the page request into a standardised request format
	var query = queryvar;
	var foritem = "watchlist";
	var type = "POST";
	var url = "http://www.ezyauctionz.co.nz/includes/ajaxaddtowatchlist.php";
	var ajaxnum = 2;
	
	// switch to return correct value to disable normal form submissions if ajax is supported
	var ajaxOk = getContent(url,query,foritem,type,ajaxnum,phpsessionid);
	if(!ajaxOk){
		return false;
	}
	else{
		return true;
	}	
}


function loadContentTwo(gotresult,gotcontent,gotforitem){
	
	// converts the standardised result for page inclusion
	var activity = document.getElementById(gotforitem+"activity");
	var itemInsert = document.getElementById(gotforitem);

	if (gotresult == "Loading"){
		activity.innerHTML = "<div class=\"sgc\"><img src=\"http://www.ezyauctionz.co.nz/images/loadingv3.gif\" height=\"20\" width=\"20\"> Loading...</div>";
	}
	else if(gotresult == "Success"){
		itemInsert.innerHTML = gotcontent;
		activity.innerHTML = "";

		return false;
	}
	else if(gotresult == "TimedOut_Retry"){
		activity.innerHTML = "Request Timed out, re-trying...";
	}
	else if(gotresult == "TimedOut_Error"){
		activity.innerHTML = "Unable to complete request, please advise the admin of this problem.";		
		// will need to find a way of submitting form to take over when ajax fails
		return true;
	}
	else if(gotresult == "Failed_Error"){
		activity.innerHTML = "Unable to complete request (error id:"+gotcontent+"). please advise the admin of this problem.";
		// will need to find a way of submitting form to take over when ajax fails
		return true;
	}
	else if(gotresult == "NotSupported"){
		activity.innerHTML = "";
		// will need to find a way of submitting form to take over when ajax fails
		return true;
	}
}


