function price(id) {

  // çäåñü ïðîïèñûâàåòå êóðñû ïî îòíîøåíèþ ê åâðî

  var usd_coeff = 1.53;
  var rur_coeff = 45;
  var uah_coeff = 11.63;

  // äàëüøå òðîãàòü íå íàäî :)

  if (id == 'eur') { 
    var valuta = "Euro"; 
    var coeff = 1;
  }
  if (id == 'usd') { 
    var valuta = "$";
    var coeff = usd_coeff;
  }
  if (id == 'rur') { 
    var valuta = "ðóá";
    var coeff = rur_coeff;
  }
  if (id == 'uah') { 
    var valuta = "ãðí";
    var coeff = uah_coeff;
  }

  $("div.price a").removeClass("active");
  $("div.price a."+id).addClass("active");
  $("td.price").each(function(){
    var strong = $(this).children("strong").html();
    $(this).html((strong*coeff).toFixed(2)+" "+valuta+"<strong>"+strong+"</strong>");
  });

}

function repTypeText2Password(oldElementID) {

var oldEl = document.getElementById(oldElementID);
var newEl = document.createElement("input");

var attName = null;
var attVal = null;

for(var i=0; i<oldEl.attributes.length; i++) {
attName = oldEl.attributes[i].name;
attVal = oldEl.getAttribute(attName);
if ((attName != "type") && (attName != "value") && (attName != "onfocus") &&
(attName != "TYPE") && (attName != "VALUE") && (attName != "ONFOCUS")) {
if (attVal != null && attVal != "") {
try {
newEl.setAttribute(attName,attVal);
} catch(e) {
// alert(e.description);
}
}
} else if ((attName == "type") || (attName == "TYPE")) {
newEl.setAttribute("type", "password"); //set required type
}
}// <-- for

try {
oldEl.parentNode.replaceChild(newEl,oldEl);
} catch (e){
// alert(e.description);
}

setTimeout(function(){newEl.focus();}, 10);
newEl.className = oldEl.className;
}

$(document).ready(function(){
	price('eur');
	$("#username").focus(function(){
		var value = $(this).val();
		if (value == '—  ââåäèòå âàø ëîãèí') {
			$(this).val("");
		}
	}).blur(function(){
		var value = $(this).val();
		if (value == '') {
			$(this).val("—  ââåäèòå âàø ëîãèí");
		}
	});
	$("#password").focus(function(){
		var value = $(this).val();
		if (value == '—  ââåäèòå âàø ïàðîëü') {
			$(this).val("");
		}
	}).blur(function(){
		var value = $(this).val();
		if (value == '') {
			$(this).val("—  ââåäèòå âàø ïàðîëü");
		}
	});
});