
function poptastic(urls)
{	neindow = open(urls,'Europlacement',"resizable=1,width=500,height=550");
}

function findHeight()
{
var colheight;

midcol1=document.getElementById('first_col').offsetHeight;
midcol2=document.getElementById('second_col').offsetHeight;

var max = midcol1;

if(midcol2>max)
max = midcol2;

max = max + 10;
document.getElementById('first_col').style.height=max;
document.getElementById('second_col').style.height=max;

//resizing the height of the button
max = max - 80;
document.getElementById('div1_col').style.height=max;
document.getElementById('div2_col').style.height=max;
//document.getElementById('div3').style.height=max;
//document.getElementById('div4').style.height=max;


}
function findHeight4()
{
var colheight;

midcol1=document.getElementById('first_col').offsetHeight;
midcol2=document.getElementById('second_col').offsetHeight;

var max = midcol1;

if(midcol2>max)
max = midcol2;

max = max + 37; //7
document.getElementById('first_col').style.height=max;
document.getElementById('second_col').style.height=max;

//resizing the height of the button
max = max - 90; //60
document.getElementById('div1_col').style.height=max;
document.getElementById('div2_col').style.height=max;
//document.getElementById('div3').style.height=max;
//document.getElementById('div4').style.height=max;


}
function findHeight2()
{
var colheight;

midcol1=document.getElementById('first_col').offsetHeight;

var max = midcol1;

document.getElementById('first_col').style.height=max;

}
function findHeight3()
{

var colheight;

midcol1=document.getElementById('first_col').offsetHeight;
midcol2=document.getElementById('second_col').offsetHeight;
midcol3=document.getElementById('third_col').offsetHeight;

var max = midcol1;
if(midcol2>max)
{	max = midcol2;
	//alert(midcol1)
	//document.getElementById('first_col').style.height=max;
	var max1= max-100;
	document.getElementById('searchCnt').style.height=max1;
	//document.getElementById('first_col').style.height=max;
	midcol4=document.getElementById('first_col').offsetHeight;
	document.getElementById('second_col').style.height=midcol4;
	
}
else
{	document.getElementById('second_col').style.height=max;
}
}
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
function getthedate_js()
{
    var displayhour = new String();
    var displayminute = new String();
    var displaysecond = new String();                        

    second = parseInt(second) + 1;

    if(second > 59)
    {
minute = parseInt(minute) + 1;
second = 0;
    }

    if(minute > 59)
    {	hour = parseInt(hour) + 1;
minute = 0;
    }

    if(hour > 23)
    {
       hour = 0;
    }
    
    if(hour < 10) displayhour = displayhour.concat("0", hour);
    else displayhour = displayhour.concat("", hour);
    if(minute < 10) displayminute = displayminute.concat("0", minute);
    else displayminute = displayminute.concat("", minute);
    if(second < 10) displaysecond = displaysecond.concat("0", second);
    else displaysecond = displaysecond.concat("", second);
    document.getElementById("clock").innerHTML = ""+displayhour+":"+displayminute+":"+displaysecond+"";

}



function goforit_date()
{
  if (document.all||document.getElementById) setInterval("getthedate_js()",1000);
}
/*
function showAddress(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 13);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(address);
            }
          }
        )
      }
    }
    */
    

