function bigPicture(img_name,imgName) {
imgOn = ("" + imgName);
document[img_name].src = imgOn;
}

function movepic(img_name,img_src)
{
document[img_name].src=img_src;
}

function inverse_elem(id) {
  elem=document.getElementById(id);
  if (elem.style.display=="none") {
    elem.style.display="";
  }
  else {
    elem.style.display="none";
  }
}

function openImg(href, w, h)
{
	var win = window.open(href, '','width=' + (w - 4) + ', height=' + (h - 4));
	win.document.write('<html><head><title>Large picture</title' + '></head><body style="margin: 0px; padding: 0px; border: none;">');
	win.document.write('<img src=' + href + ' onclick=self.close() style=\"cursor: pointer;\" title=\"close window\">');
	win.document.write('</body></html>');
	win.focus();
	return false;
}

function high(which2){
  theobject=which2
  highlighting=setInterval("highlightit(theobject)",10)
  }
function low(which2){
  clearInterval(highlighting)
  which2.filters.alpha.opacity=20
  }
function highlightit(cur2){
  if (cur2.filters.alpha.opacity<100)
  cur2.filters.alpha.opacity+=10
  else if (window.highlighting)
  clearInterval(highlighting)
  }

function email (login, sc)
{
var serv = new Array;
serv[0]= "mail.ru";
eml = login +  "@" + serv[sc];
return eml;
}
function mylo (login, sc)
{
document.write (email(login, sc));
}
function namylo (login, sc, sub)
{
eml = "mailto:" + email(login, sc);
if (sub != "") eml += "?subject=" + sub;
window.location.href = eml;
}

var copytoclip=1

function HighlightAll(theField) {

var tempval=eval("document."+theField)

tempval.focus()

tempval.select()

if (document.all&&copytoclip==1){

therange=tempval.createTextRange()

therange.execCommand("Copy")

window.status="text copy on clipboard"

setTimeout("window.status=''",1800)

}

}
