window.name="aaa";
var newLog = null;
var newWin = null;
var newWinXY = null;
var newAnc = null;

function loginish(){
  x = (window.screen.width / 2) - 183;
  y = (window.screen.height / 2) - 65;
  settings = 'width=366,height=200,top='+y+',left='+x+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
  newLog = window.parent.open("http://music.attrade.ru/main/dillogin.asp","newwin",settings); 
}

function login(){
  x = (window.screen.width / 2) - 183;
  y = (window.screen.height / 2) - 65;
  settings = 'width=366,height=200,top='+y+',left='+x+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
  newLog = window.parent.open("dillogin.asp","newwin",settings); 
}


function temp(){
}

function isRight() {
  var yes;
  yes = true;
  if (document.sendfrm.subject.value == "") yes = false;
  if (document.sendfrm.sendermail.value.indexOf("@",0) == -1) yes = false;
  if (yes == false) alert("Не указана тема сообщения или неправильно указан e-mail.");
  return yes
}

function isRightMail() {
  var yes;
  yes = true;
  if (document.maillogin.email.value.indexOf("@",0) == -1) yes = false;
  if (yes == false) alert("Неправильно указан e-mail.");
  return yes
}

function isRightMail2() {
  var yes;
  yes = true;
  if (document.mailregist.email.value.indexOf("@",0) == -1) yes = false;
  if (yes == false) alert("Неправильно указан e-mail.");
  return yes
}

function winOpen(path, root) {
  settings = 'width=350,height=450,top=20,left=20,scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
  newWin = window.open(root + path,"newwin",settings); 
} 

function winOpenXY (path, x, y) {
  settings = 'width=' + x + ',height=' + y + 'top=20,left=20,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
  newWinXY = window.open(path,"newwinxy",settings); 
}

function openNews (path, root, val) {
  if (val == 0) {
    alert ("Для просмотра новинок выберите поставщика из списка");
  } else {
    winOpen(path, root);
  }
}

function openAnketa() {
 settings = 'width=650,height=450,top=20,left=20,scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
 newAnc = window.open("anceta.asp","newwin",settings); 
}

function ank(patt) {
 settings = 'width=410,height=210,top=20,left=360,scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
 newAnc = window.open(patt,"newwin",settings); 
}
function ankrez(patt) {
 settings = 'width=500,height=500,top=20,left=20,scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
 newAnc = window.open(patt,"newwin",settings); 
}


	function openportal()
	{
		window.open('http://music.attrade.ru/mus/map/portal.htm', '_blank', 'width=522, height=550, scrollbars=yes, toolbar=no, location=no, menubar=no, status=no');
	}
	function openmap()
	{
		window.open('http://music.attrade.ru/mus/map/regions.htm', '_blank', 'width=722, height=553, scrollbars=no, toolbar=no, location=no, menubar=no, status=no');
	}

