// --------------------------------------------------------
function MM_jumpMenuRaw(selObj)
 { //v3.0
   eval("this.location='"+selObj.options[selObj.selectedIndex].value+"'");
 }

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_changeProp(objName,theProp,theValue) { //v3.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1) ) eval("obj."+theProp+"='"+theValue+"'")
  else if (obj && ( obj.style) ) eval("obj."+theProp+"='"+theValue+"'");
}

function MM_jumpMenu(selObj)
 { //v3.0
   eval("this.location='"+selObj.options[selObj.selectedIndex].value+"'");
 }

function MM_openBrWindow(theURL,winName,features)
 { //v2.0
    window.open(theURL,winName,features);
 }


function doValidate ( )
 {
   return ( 1 );
 }

function doSubmit2 ( act, formname )
 {
   if ( doValidate () )
    {
      MM_changeProp ( 'Act', 'value', act, 'HIDDEN' );
      var F = MM_findObj ( formname );
      F . submit ();
    }
 }
function doSubmit ( act )
 {
   if ( doValidate () )
    {
      MM_changeProp ( 'Act', 'value', act, 'HIDDEN' );
      var F = MM_findObj ( 'form1' );
      F . submit ();
    }
 }

function GoToUrl(Url)
 { //v3.0
   eval("this.location='"+Url+"'");
 } 
// --------------------------------------------------------------------
function cap_refresh() {
      e=document.getElementById('cap');
      dv=new Date();
      e.src="capimage.php?dummy=" + dv.getTime();
      return false;
    } 
// --------------------------------------------------------------------
function mkcore(jmeno, domena, tld){
  var ret=jmeno;
  ret += String.fromCharCode(63+1);
  if(typeof(domena)=="undefined") ret += 'horizont-prubezna.cz';
  else if(typeof(tld)=="undefined") ret += domena+'.cz';
  else ret += domena+'.'+tld;
  return (ret);
}

function gom(jmeno, domena, tld) {
  var dst='mai';
  dst += 'lto'+String.fromCharCode(58);
  dst += mkcore(jmeno,domena,tld);
  window.open(dst);
}

function mkhref(jmeno, domena, tld, atr) {
  document.write('<a href="javascript:gom(\''+jmeno+'\'');
  if(typeof(domena)!="undefined") {
   document.write(', \''+domena+'\'');
   if(typeof(tld)!="undefined") document.write(', \''+tld+'\'');
  }
  document.write(')"');
  if(typeof(atr)!="undefined") document.write(' '+atr);
  document.write('>');
  document.write(mkcore(jmeno, domena, tld));
  document.write('</a>');
}

// --------------------------------------------------------------------
function foto( core_name ) {
                         
  window.open('show_detail.php?F='+core_name, '','resizable=yes,innerHeight=600,innerWidth=600,height=600,width=600');
}

// --------------------------------------------------------------------

