checkReload={
	checker: function(x){
		if (x && !this.ignorer && new Date().getTime()-x>1200){this.reloader()};
		this.ignorer=false;
		setTimeout("checkReload.checker("+new Date().getTime()+")",1000)
	},
	init: function(x){
		this.reloader=x;
		this.checker()
	},
	ignore: function(){
		this.ignorer=true	
	}
};

function loader(){
		checkReload.ignore();
		alert("Onload fires!")		
};
onload=loader;

function reloader(){
	alert('Reload fires!')
};
checkReload.init(reloader);