function ask(txt,url){
	if(confirm(txt)){
		if(url==''){
			return true;
		}
		location.href=url;
	}else{
		return false;
	}
}

function change_page(page_num){
	location.href="?a="+_get('a')+"&s="+_get('s')+"&sd="+_get('sd')+"&p="+page_num;
}

function _get(name){
	name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
	var regexS = "[\\?&]"+name+"=([^&#]*)";
	var regex = new RegExp( regexS );
	var results = regex.exec( window.location.href );
	if( results == null )
		return "";
	else
		return results[1];
}

var __st = window.setTimeout;
window.setTimeout = function(fRef, mDelay) 
{ 
	if(typeof fRef == "function")
	{  
		var argu = Array.prototype.slice.call(arguments,2); 
		var f = (function(){ fRef.apply(null, argu); }); 
		return __st(f, mDelay); 
	} 
	return __st(fRef,mDelay);
}