function checkforframe() {
	if (document.layers && (self.innerHeight == 0 && self.innerWidth  == 0)) return;
	if (document.location.href.indexOf('freewarehome.com') == -1) return;
	if ((top == self) || ((document.images) ? (parent.ergi87143548 ? false : true) : (parent.frames[1].name != 'ergi87143548'))) {
		var sL = self.location;
		var newURL = sL.protocol + '//' + sL.host + '/index.html?' + escape(sL.href);
		if (document.images) top.location.replace(newURL);
			else top.location.href = newURL;
		}
}
												
function echoIt(e2, e1)
{
	var el1 = document.getElementById(e1);
	var el2 = document.getElementById(e2);
	if (el1 != null && el2 != null)
		el2.value = el1.value;
}

function uniqueArray(max, maxvalue)
{
  var item = new Array(max);
  var found = false;
  var count = 0;

  for (i = 0; count < max; count++)
  {
      found = false;
      var rnd = get_random(maxvalue);
      for (j = 0; j < item.length; j++)
      {
        if (item[j] == rnd)
	    {
		  found = true;
		  break;
		}
	  }
	  if (found)
	  {
	    count--;
	  } else 
	  {
	    item[count] = rnd;
	  }
  }
  return item;
}
																								  
function get_random(maxvalue)
{
  var rnum = Math.round(Math.random() * maxvalue);
  return rnum;
}


