<!--
function eaddr (name, srv, param){
	var eml = "mailto:" + name +  "\@" + srv;
	if (param){
		eml+="?"+param;
	}
	window.location.href=eml;
}
/*	----------------------		RAMKI VOKRUG FLASH					*/
// When the page loads:
window.onload = function(){
  if (document.getElementsByTagName) {
    // Get all the tags of type object in the page.
      var objs = document.getElementsByTagName("object");
      for (i=0; i<objs.length; i++) {
        // Get the HTML content of each object tag
        // and replace it with itself.
        objs[i].outerHTML = objs[i].outerHTML;
      }
   }
}
// When the page unloads:
window.onunload = function() {
  if (document.getElementsByTagName) {
    //Get all the tags of type object in the page.
    var objs = document.getElementsByTagName("object");
    for (i=0; i<objs.length; i++) {
      // Clear out the HTML content of each object tag
      // to prevent an IE memory leak issue.
      objs[i].outerHTML = "";
    }
  }
}
// -->
function getLikeElements(tagName, attrName, attrValue) {					
					  var startSet;
					  var endSet = new Array( );
					  if (tagName) {
						startSet = document.getElementsByTagName(tagName);    
					  } else {
						startSet = (document.all) ? document.all : 
						document.getElementsByTagName("*");
					  }
					  if (attrName) {
						for (var i = 0; i < startSet.length; i++) {							
						  if (startSet[i].getAttribute(attrName)) {						  	
							if (attrValue) {							
							  if (startSet[i].getAttribute(attrName) == attrValue) {
								endSet[endSet.length] = startSet[i];
							  }
							} else {
							  endSet[endSet.length] = startSet[i];
							}
						  }
						}
					  } else {
						endSet = startSet;
					  }
					  return endSet;
					}

function isSearchResult(destinationElemID) { 

	var collection = getLikeElements("div", "class", "mark");
	if (collection.length == 0)	{
		collection = getLikeElements("div", "className", "mark");
	}
	if (collection.length > 0)	{	return true; }
	document.getElementById(destinationElemID).style.display = "inherit";
}

function checkform(form){
	
	form.subject.style.borderColor = '#969696';
	form.email.style.borderColor = '#969696';
	form.question.style.borderColor = '#969696';
	
	if (form.subject.value == ''){
		form.subject.style.borderColor = 'red';
		form.subject.focus();
		form.subject.select();
		return false;
	}
	if (form.email.value == ''){
		form.email.style.borderColor = 'red';
		form.email.focus();
		form.email.select();
		return false;
	}
	if (form.question.value == ''){
		form.question.style.borderColor = 'red';
		form.question.focus();
		form.question.select();
		return false;
	}
}