var order;
var url;

function OrderBy(order,url) {
	if(order=='title') {
		document.orderform.orderby.value = 'title';
		document.orderform.order.value = 'ASC';
	} else {
		document.orderform.orderby.value = 'date';
		document.orderform.order.value = 'DESC';
	}
	document.orderform.posts_per_page.value = 10;
	document.orderform.action = url;
	document.orderform.submit();
}

function zylom_popup(popupURL)
{
width = 700; height = 550; leftPosition = (screen.width) ? (screen.width-width)/2 : 0;
if (screen.height && (screen.height <= 600)) { topPosition = 0; } else { topPosition = (screen.height) ? (screen.height-height)/2 : 0; }
var settings='width='+width+',height='+height+',left='+leftPosition+',top='+topPosition+'toolbar=0,location=0,directories=0,menubar=0,scrollbar=0,resizable=0,status=0';
var popup=window.open(popupURL, 'gamepopup', settings); popup.focus();
}
