﻿function openLinkInParentWindow(link){
        window.opener.parent.location.href=link;
        window.close();
    }

function openWin(a)
{
small2=window.open("","History","menubar=0,scrollbars=1,resizable=1,width=600,height=200");
small2.location=a;
small2.focus();
}

function NewWin(a){
	popupWin = window.open(a, "", "menubar=0,scrollbars=1,resizable=1,width=600,height=200");
	popupWin.focus();
}


function openWin2(a,p)
{
small=window.open("","new123",p);
small.location=a;
small.focus();
}

function openWin3nd(a,p)
{
small=window.open("","History",p);
small.location=a;
small.focus();
}


// js form validation stuff

var confirmMsg  = '1234567890 ';
function confirmLink(theLink, theSqlQuery)
	{
		// Confirmation is not required in the configuration file
		if (confirmMsg == '') {
			return true;
			}
			var is_confirmed = confirm(confirmMsg + ' :
' + theSqlQuery);
			if (is_confirmed) {
				theLink.href += '&is_js_confirmed=1';
				}
				return is_confirmed;
				} // end of the 'confirmLink()' function 



function authoralert_ru() {

alert('Полная информация доступна только трейдерам');

}

function authoralert_en() {

alert('Full information available only for traders');

}


function textalert_ru() {

alert('Полная информация доступна только зарегистрированным пользователям');

}

function textalert_en() {

alert('Full information available only for registered users');

}