function ChangePrefix(Element) {

  if(Element.value == 1)
    document.getElementById('telefon_prefix').value = '+420';
  else if(Element.value == 2)
    document.getElementById('telefon_prefix').value = '+421';
}

function LoginFocus(Element,Text) {
	if(Element.value == Text) Element.value = '';
}

function LoginBlur(Element,Text) {
	if(Element.value == '') 
		Element.value = Text;
}

function changeInputType(oldObject, oType) {
  var newObject = document.createElement('input');
  newObject.type = oType;
  if(oldObject.size) newObject.size = oldObject.size;
  //if(oldObject.value) newObject.value = oldObject.value;
  newObject.value = '';    
  
  if(oldObject.name) newObject.name = oldObject.name;
  if(oldObject.id) newObject.id = oldObject.id;
  if(oldObject.className) newObject.className = oldObject.className;
  oldObject.parentNode.replaceChild(newObject,oldObject);
  //return newObject;
  setTimeout("document.getElementById('heslo').focus();", 100);
  //return 1;  
}
