var today = new Date()
defaultStatus = '© 1999-'+ today.getFullYear() +' RussianBeat.com Inc.  All rights reserved.'
if (parent.frames.length > 0) 
{
	parent.location.href = location.href
}
function descrip()
{
	win=window.open ("", "NewWin", "HEIGHT=225,WIDTH=320,status=no,toolbar=no,directories=no,menubar=no,location=no,scrollbars=yes,resize=no")
	win.focus()
}
var CapsState = false;
function onClickKBButtonEx(btn)
{
	if (btn == 'Caps')
			CapsState = !(CapsState)
	else
	{ 
		var txt = document.searchbar.Search.value;
		if (btn == 'BkSp')
		{
			txt = txt.substr(0, txt.length - 1);
		}
		else
		{
			txt = txt + btn;
		}
		document.searchbar.Search.value = txt;
	}
}
function onClickKBButton(btn)
{
	var code = btn.charCodeAt(0);
	if (CapsState == false)
	{

		if (code == 168)
				code = 184;
		else if (code == 1025)
				code = 1105;
		else

				code = code + 32;
	}

	btn = String.fromCharCode(code);

	onClickKBButtonEx(btn);
}



function getCookieData(label){
var labelLen = label.length
var cLen = document.cookie.length
var i = 0
var cEnd
	while (i < cLen){
	var j = i + labelLen
		if (document.cookie.substring(i,j) == label){
		cEnd = document.cookie.indexOf(";",j)
			if (cEnd == -1){
			cEnd = document.cookie.length
			}
			return unescape(document.cookie.substring(j,cEnd))
		}
		i++
	}
	return ""
}

function ValidateEmail() {
  var okSoFar=true 
  var foundAt = document.myForm.EMAIL.value.indexOf("@",0)
  var foundAt2 = document.myForm.EMAIL.value.indexOf(".",0)
  if (foundAt < 1 && okSoFar) {
    okSoFar = false
    alert ("EMail address should contain an @ character!")
    document.myForm.EMAIL.focus()
  }
  if (foundAt2 < 1 && okSoFar) {
    okSoFar = false
    alert ("EMail address should contain dot!")
    document.myForm.EMAIL.focus()
  }
    if (okSoFar==true) 
	{
    document.myForm.submit()
  	}
}
