function nameExtract(wholeurl) 
{ 
	x = wholeurl.length; 
	while((wholeurl.substring(x,x-1))!= "/"){ x--; } clipstart = x; 
	return wholeurl.substring(wholeurl.length,clipstart); 
}

function imgover(image)
{
	image.src="/img/over/"+nameExtract(image.src);
}

function imgout(image)
{
	image.src="/img/normal/"+nameExtract(image.src);
}

function imgoverfr(image)
{
	image.src="/img/fr/over/"+nameExtract(image.src);
}

function imgoutfr(image)
{
	image.src="/img/fr/normal/"+nameExtract(image.src);
}

function getCats()
{
	catz=$('section').value;
	new Ajax.Updater('catdiv', '/ajax/cats/section/'+catz, {
		  method: 'get'
		  });
}

function dodelete(id)
{
	if ($('deletebox').checked)
	{
		document.location.replace('/my/delete-ad/id/'+id);
	}
	else
	{
		return false;
	}
}