/**
 * JavaScript Document
 * Generic javascript/Ajax for Kelp Design Online Services - Request pages off the refresh.
 * 
 * CHANGELOG
 *
 * 10 April 2008 - Leandro Carvalho
 *
 * @author Leandro Carvalho
 * @copyright 10 April 2008
 */
 
function keep(url)
{
req = null;

	var url	= url
	
// Find objetives (Mozilla/Safari)
if (window.XMLHttpRequest) {
	req = new XMLHttpRequest();
	req.onreadystatechange = validCode;
	req.open("GET",url,true);
	req.send(null);
// Find objetives ActiveX (IE)
 } else if (window.ActiveXObject) {
	req = new ActiveXObject("Microsoft.XMLHTTP");
  if (req) {
	req.onreadystatechange = validCode;
	req.open("GET",url,true);
	req.send();
  }
 }


// View media
function validCode()
{
	
// just when complete process
if (req.readyState == 4) {
// just when return "OK"
if (req.status ==200) {
// nothing
  } else {
  alert("You have one problem:n" + req.statusText);
  }
 }
}

}
