var emptyTable = '<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 id="table1"><TBODY><TR><TD width="5%"><DIV align=right><IMG height=1 src="Kauppakalenteri_files/space.gif" width=1></DIV></TD><TD width="54%" vAlign=top class="otsikkorivi"></TD><TD width="48%" vAlign=top class="otsikkorivi"></TD></TR></TBODY></TABLE>';

function findObj(theObj, theDoc)
{
  var p, i, foundObj;
  
  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {
    theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
  }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
    foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  
  return foundObj;
}


function changeBgColor(colname,style) {
	var theCol;
	theCol = findObj(colname);
	theCol.className = style;
	theCol = findObj(colname + "_2");
	theCol.className = style;
	
}

function kk_show(colname) {
	//alert(cmp);
	var theCol,thejoku;
	//thejoku = eval(cmp);
	theCol = findObj(colname);
	//alert(theCol);
	//theCol.innerHTML = cmp;
	theCol.style.display="";
	
	//theCol.innerHTML = theCol.innerHTML;
	
}

function dovoid() {
return;
}

function kk_hide(colname) {
	var theCol;
	theCol = findObj(colname);
	//theCol.innerHTML = et;
  	theCol.style.display="none"; 
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var hotomolo1,hotomolo2,hotomolo3;

