function rnd() {
	return 'w' + Math.round(Math.random() * 100000000);
}

function edit_user(id) {
	window.open('edit_user.php?id=' + id, '_blank', 'width=604,height=384,scrollbars=yes,resizable=yes');
}

function edit_account(id) {
	window.open('edit_account.php?id=' + id, '_blank', 'width=300,height=300,scrollbars=yes,resizable=yes');
}

function edit_stocks(owner, id, admin) {
	window.open('edit_stocks.php?owner=' + owner + '&id=' + id + (admin ? '&admin=1' : ''), '_blank', 'width=300,height=370,scrollbars=yes,resizable=yes');
}

function edit_news(owner, id, admin) {
	window.open('edit_news.php?owner=' + owner + '&id=' + id + (admin ? '&admin=1' : ''), '_blank', 'width=310,height=400,scrollbars=yes,resizable=yes');
}

function edit_topic(id) {
	window.open('edit_topic.php?id=' + id, '_blank', 'width=310,height=400,scrollbars=yes,resizable=yes');
}

function edit_dictionary(id) {
	window.open('edit_dictionary.php?id=' + id, '_blank', 'width=310,height=340,scrollbars=yes,resizable=yes');
}

function edit_symbol(owner, id, admin) {
	window.open('edit_symbol.php?owner=' + owner + '&id=' + id + (admin ? '&admin=1' : ''), '_blank', 'width=270,height=280,scrollbars=yes,resizable=yes');
}

function edit_operation(id) {
	window.open('edit_operation.php?id=' + id, '_blank', 'width=290,height=360,scrollbars=yes,resizable=yes');
}

function edit_operation_m(id) {
	window.open('edit_operation_m.php?id=' + id, '_blank', 'width=290,height=360,scrollbars=yes,resizable=yes');
}

function delete_user(id) {
	window.open('delete_user.php?id=' + id, '_blank', 'width=240,height=200,scrollbars=yes,resizable=yes');
}

function delete_account(id) {
	window.open('delete_account.php?id=' + id, '_blank', 'width=240,height=200,scrollbars=yes,resizable=yes');
}

function delete_stocks(owner, id, admin) {
	window.open('delete_stocks.php?owner=' + owner + '&id=' + id + (admin ? '&admin=1' : ''), '_blank', 'width=240,height=180,scrollbars=yes,resizable=yes');
}

function delete_news(owner, id, admin) {
	window.open('delete_news.php?owner=' + owner + '&id=' + id + (admin ? '&admin=1' : ''), '_blank', 'width=240,height=180,scrollbars=yes,resizable=yes');
}

function delete_topic(id) {
	window.open('delete_topic.php?id=' + id, '_blank', 'width=240,height=180,scrollbars=yes,resizable=yes');
}

function delete_dictionary(id) {
	window.open('delete_dictionary.php?id=' + id, '_blank', 'width=240,height=180,scrollbars=yes,resizable=yes');
}

function delete_symbol(owner, id, admin) {
	window.open('delete_symbol.php?owner=' + owner + '&id=' + id + (admin ? '&admin=1' : ''), '_blank', 'width=240,height=180,scrollbars=yes,resizable=yes');
}

function delete_vss_quote(id) {
	window.open('delete_vss_quote.php?id=' + id, '_blank', 'width=240,height=180,scrollbars=yes,resizable=yes');
}

function view_vss_quote(id) {
	window.open('view_vss_quote.php?id=' + id, '_blank', 'width=440,height=380,scrollbars=yes,resizable=yes');
}

function delete_vss_day(date) {
	window.open('delete_vss_day.php?date=' + date, '_blank', 'width=240,height=180,scrollbars=yes,resizable=yes');
}

function delete_operation(id) {
	window.open('delete_operation.php?id=' + id, '_blank', 'width=240,height=220,scrollbars=yes,resizable=yes');
}

function refresh_symbol(owner, id) {
	window.open('refresh_symbol.php?owner=' + owner + '&id=' + id, '_blank', 'width=240,height=180,scrollbars=yes,resizable=yes');
}

function view_dictionary(id) {
	window.open('view_dictionary_popup.php?id=' + id, '_blank', 'width=400,height=300,scrollbars=yes,resizable=yes');
}

function view_portfolio(owner, id) {
	window.open('view_portfolio_popup.php?owner=' + owner + '&id=' + id, '_blank', 'width=400,height=300,scrollbars=yes,resizable=yes');
}

function filter_operations() {
	window.open('filter_operations.php', '_blank', 'width=400,height=300,scrollbars=yes,resizable=yes');
}

function edit_profile() {
	window.open('edit_profile.php', '_blank', 'width=400,height=300,scrollbars=yes,resizable=yes');
}

function change_password() {
	window.open('change_password.php', '_blank', 'width=350,height=250,scrollbars=yes,resizable=yes');
}

function edit_big_thing(index, subindex) {
	if (!subindex && subindex != 0) subindex = '';
	window.open('edit_big_thing.php?index=' + index + '&subindex=' + subindex, '_blank', 'width=500,height=380,scrollbars=yes,resizable=yes');
}

function edit_defaults() {
	window.open('edit_defaults.php', '_blank', 'width=400,height=300,scrollbars=yes,resizable=yes');
}

function edit_page(handle) {
	window.open('edit_page.php?handle=' + handle, '_blank', 'width=500,height=400,scrollbars=yes,resizable=yes');
}