
window.addEvent('domready', function(){

Cookie.write("newsection", false, {path: "/"});
Cookie.dispose("newhere");

var timer = 10; 
var periodical, dummy; 
var log = $('prix');
	
	if (!window.demo_path) window.demo_path = '/includes/';
	var demo_path = window.demo_path;
	// --
		
	//We can use one Request object many times.
	var req = new Request.HTML({url:demo_path+'prix.php', 
		onSuccess: function(html) {
			//Clear the text currently inside the results div.
			log.set('text', '');
			//Inject the new DOM elements into the results div.
			log.adopt(html);
		},
		//Our request will most likely succeed, but just in case, we'll add an
		//onFailure method which will let the user know what happened.
		onFailure: function() {
			log.set('text', '');
			
		}
	});
	var refresh = (function() {
		// dummy to prevent caching of php
		req.send();		
	});
	
	periodical = refresh.periodical(timer * 1000, refresh()); 
});

function popupWin(page,w,h,name,form){
	window.open("",name, "height="+h+",width="+w+",status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=no,scrollbars=no");
	//window.alert(page)
	document.forms[form].submit();
	//(document.forms[form].elements["email"].value="");
	return false;
}