
// Corbis add-on begins

// Corbis Search Fotoweb add-on
// (c)2005 People Group Data Oy. All Rights Reserved.
function isnotCorbis()
{
 if (document.myForm1.SF_SEARCHINRESULT[2].checked)
 {
   var royaltyFreeOnly = false;
   var rightsManagedOnly = false;
   var openNewWindow = true;                                                                                                                           
   var corbisURL = "Corbis.html?"
   corbisURL += "txt=" + escape(document.myForm1.SF_FIELD1.value);
   
   if(royaltyFreeOnly)                                                                                                                               
   {                                                                                                                                                   
    corbisURL += "&rft=RF";                                                                                                                            
   }                                                                                                                                                   
   else if(rightsManagedOnly)                                                                                                                        
   {                                                                                                                                                   
    corbisURL += "&rft=TL";                                                                                                                            
   }                                                                                                                                                   
   else                                                                                                                                                
   {                                                                                                                                                   
    corbisURL += "&rft=RF_TL";                                                                                                                         
   }
   if (document.myForm1.SF_FIELD1.value != "")
   {
    var corbisWin = window.open(corbisURL);
    if(corbisWin)corbisWin.focus();
   }
   else
   {
    alert("Ei yhtään hakusanaa!");
   }
   return false;
 }
 else
 {
  return true;
 }
}
// Corbis add-on ends
var DHTML = (document.getElementById || document.all || document.layers);

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}
