//  Rezolutie monitor / pozitie fereastra
		 	if (window.screen) {
					var latimeEcran=window.screen.width;
					var inaltimeEcran=window.screen.height;
			} else {
					var latimeEcran=800;
					var inaltimeEcran=600;
			}
			var x=1010;
			var y=640;
			var leftt=(latimeEcran/2)-Math.round(x/2);
			var topp=(inaltimeEcran/2)-Math.round(y/2);
			
			if (x>(latimeEcran-10)) {x=latimeEcran-10;leftt=0;}
			if (y>(inaltimeEcran-10)) {x=inaltimeEcran-10;topp=0;}
//----------end Rezolutie monitor / pozitie fereastra
	
function openChart (url) {
var String;
String = "location=0,directories=0,menubar=0,copyhistory=0,toolbar=0,status=0,scrollbars=auto,resizable=no";
String += ",width=";
String += x;
String += ",height=";
String += y;
String += ",left=";
String += leftt;
String += ",top=";
String += topp;
chartWindow=window.open(url,'chart',String);
}
//----------------
function openNewsWindow(storyid) {
	if (vekanewswindow!=null) vekanewswindow.close();
	var latimeFer = 510;
	var inaltimeFer = 570;
			var leftt=(latimeEcran/2)-Math.round(latimeFer/2);
			var topp=(inaltimeEcran/2)-Math.round(inaltimeFer/2);
var String;
String = "location=0,directories=0,menubar=0,copyhistory=0,toolbar=0,status=0,scrollbars=0,resizable=0";
String += ",width=";
String += latimeFer;
String += ",height=";
String += inaltimeFer;
String += ",left=";
String += leftt;
String += ",top=";
String += topp;
var vekanewswindow=window.open(storyid,'vekanewswindow',String);
}
//
function openResellersWindow(langcod,fileformat) {
	var latimeFer = 770;
	var inaltimeFer = 570;
			var leftt=(latimeEcran/2)-Math.round(latimeFer/2);
			var topp=(inaltimeEcran/2)-Math.round(inaltimeFer/2);
var String;
String = "location=0,directories=0,menubar=0,copyhistory=0,toolbar=0,status=0,scrollbars=0,resizable=0";
String += ",width=";
String += latimeFer;
String += ",height=";
String += inaltimeFer;
String += ",left=";
String += leftt;
String += ",top=";
String += topp;
if (fileformat=="flash") {var vekadealerswindow=window.open(langcod+'/resellers.htm','vekadealerswindow',String);}
if (fileformat=="html") {var vekadealerswindow=window.open(langcod+'/resellers/','vekadealerswindow',String);}
}
//
function openImageWindow(imagePath) {
	var latimeFer = 650;
	var inaltimeFer = 800;
			var leftt=(latimeEcran/2)-Math.round(latimeFer/2);
			var topp=(inaltimeEcran/2)-Math.round(inaltimeFer/2);
var String;
String = "location=0,directories=0,menubar=0,copyhistory=0,toolbar=0,status=0,scrollbars=0,resizable=0";
String += ",width=";
String += latimeFer;
String += ",height=";
String += inaltimeFer;
String += ",left=";
String += leftt;
String += ",top=";
String += topp;
var vekaimagewindow=window.open('ro/imagewindow.php?imagePath='+imagePath,'vekaimagewindow',String);
}
<!--
function setStatusBarMessage(statusbarmessage) { 
  window.status=statusbarmessage;
  document.myReturnValue = true;
}
//-->
// password cookie
<!--
function savePass(nameusr,namepwd,valueusr,valuepwd,days) {
  var message = "";
  if (document.partnerlogin.username.value == "" || document.partnerlogin.password.value == "") {
    message = "Completati intai numele si codul de autentificare.";
  }
  if (message.length > 0) {
    alert(message);
    return false;
  } else
  if (document.partnerlogin.savepass.checked == true) {
    var time = new Date(Date.parse(Date()) + 86400000*days);
    document.cookie = nameusr + "=" + escape(valueusr) + "; expires=" + time.toUTCString();
    document.cookie = namepwd + "=" + escape(valuepwd) + "; expires=" + time.toUTCString();
  } else {
    document.cookie = nameusr + "=" + "" + "; expires=Thu,01-Jan-70 00:00:01 UTC";
    document.cookie = namepwd + "=" + "" + "; expires=Thu,01-Jan-70 00:00:01 UTC";
  }
}

function getCookie(name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg) {
      var endstr = document.cookie.indexOf(";", j);
      if (endstr == -1) endstr = document.cookie.length;
      return unescape(document.cookie.substring(j, endstr));
    }
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break;
  }
  return "";
}

function getPass(nameusr,namepwd) {
  if (getCookie(namepwd) != "undefined" && getCookie(namepwd) != "") {
    document.partnerlogin.username.value = getCookie(nameusr);
    document.partnerlogin.password.value = getCookie(namepwd);
    document.partnerlogin.savepass.checked = true;
  }
}
//-->