function popupLogin() {
	// the size of the popup window
	var width = 800;
	var height = 600;

	var y = (screen.height - height) / 2;
	var x = (screen.width - width) / 2;

	var url = 'http://www.aquiestoy.hn/chat/aquichatindex.php';
	var options = 'width=' + width + ',height=' + height + ',top=' + y + ',left=' + x + ',resizable';
	// open the chat window as a popup, instead of embedded in webpage
	window.open( url, 'chat', options );
}
function popuptablepoint() {
	// the size of the popup window
	var width = 800;
	var height = 600;

	var y = (screen.height - height) / 2;
	var x = (screen.width - width) / 2;

	var url = 'tablepoint.php';
	var options = 'width=' + width + ',height=' + height + ',top=' + y + ',left=' + x + ',resizable';
	// open the chat window as a popup, instead of embedded in webpage
	window.open( url, 'puntos', options );
}
function popuptablevip() {
	// the size of the popup window
	var width = 800;
	var height = 600;

	var y = (screen.height - height) / 2;
	var x = (screen.width - width) / 2;

	var url = 'tablevip.php';
	var options = 'width=' + width + ',height=' + height + ',top=' + y + ',left=' + x + ',resizable';
	// open the chat window as a popup, instead of embedded in webpage
	window.open( url, 'vip', options );
}
function contact() {
	// the size of the popup window
	var width = 500;
	var height = 300;

	var y = (screen.height - height) / 2;
	var x = (screen.width - width) / 2;

	var url = 'contact.php';
	var options = 'width=' + width + ',height=' + height + ',top=' + y + ',left=' + x + ',resizable';
	// open the chat window as a popup, instead of embedded in webpage
	window.open( url, 'contact', options );
}
function popupinstantchat(id) {
	// the size of the popup window
	var width = 730;
	var height = 620;
	
	if (!id)
		id = '-1';

	var y = (screen.height - height) / 2;
	var x = (screen.width - width) / 2;

	var url = '../instantchat/indexchat.php?id='+id;
	var options = 'width=' + width + ',height=' + height + ',top=' + y + ',left=' + x + ',resizable';
	// open the chat window as a popup, instead of embedded in webpage
	window.open( url, 'instantchat', options );
}
function popupmusic() {
	// the size of the popup window
	var width = 728;
	var height = 370;	

	var y = (screen.height - height) / 2;
	var x = (screen.width - width) / 2;

	var url = '../media/indexmedia.php';
	var options = 'width=' + width + ',height=' + height + ',top=' + y + ',left=' + x + ',resizable';
	// open the chat window as a popup, instead of embedded in webpage
	window.open( url, 'media', options );
}
function games(id) {
	// the size of the popup window
	var width = 728;
	var height = 505;	

	var y = (screen.height - height) / 2;
	var x = (screen.width - width) / 2;

	var url = 'gamepopup.php?id='+id;
	var options = 'width=' + width + ',height=' + height + ',top=' + y + ',left=' + x + ',resizable';
	// open the chat window as a popup, instead of embedded in webpage
	window.open( url, 'game', options );
}

function disclaimer() {
	// the size of the popup window
	var width = 430;
	var height = 310;	

	var y = (screen.height - height) / 2;
	var x = (screen.width - width) / 2;

	var url = 'disclaimer.php';
	var options = 'width=' + width + ',height=' + height + ',top=' + y + ',left=' + x + ',resizable';
	// open the chat window as a popup, instead of embedded in webpage
	window.open( url, 'media', options );
}

function aportar() {
	// the size of the popup window
	var width = 500;
	var height = 500;

	var y = (screen.height - height) / 2;
	var x = (screen.width - width) / 2;

	var url = 'box_ideasuser.php';
	var options = 'width=' + width + ',height=' + height + ',top=' + y + ',left=' + x + ',resizable,scrollbars=yes';
	// open the chat window as a popup, instead of embedded in webpage
	window.open( url, 'contact', options );
}
