// JavaScript Document

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 resize() {
	
  var myHeight = 0;
  
  if( document.height ) {
    //Non-IE
    myHeight = document.height;
	
	
  } 
  else if( document.documentElement &&  document.documentElement.scrollHeight ) {
    //IE 6+ in 'standards compliant mode'
	var glava = 0;
	
	if (navigator.appName == 'Netscape') {
		myHeight = document.documentElement.scrollHeight;
		glava = 269;
	}
	else {
		/*
		myHeight = document.documentElement.scrollHeight;
		alert(document.documentElement.clientHeight+'\n'+document.documentElement.scrollHeight+'\n'+document.documentElement.scrollTop);
		
		*/
		
		if (document.documentElement.scrollHeight < document.documentElement.clientHeight)
			myHeight = document.documentElement.clientHeight
		else
			myHeight = document.documentElement.scrollHeight;
		
		glava = 272;
	}

	
	
  } 
  else if( document.body && document.body.scrollHeight  ) {
    //IE 4 compatible
    myHeight = document.body.scrollHeight;
	
	
  }
	
  layer = findObj('container');
  layer.style.height = myHeight+"px";

  layer = findObj('column01');
  layer.style.height = myHeight+"px";

  layer = findObj('column02');
  layer.style.height = myHeight+"px";
  
  
  layer = findObj('column04');
  layer.style.height = myHeight+"px";
  
  layer = findObj('column05');
  layer.style.height = myHeight+"px";

  var temp = myHeight-glava;
  
  layer = findObj('text_container');
  layer.style.height = temp+"px";
  
}





function clearField(fieldName) {
	f = findObj(fieldName);		
	f.value = "";
}




