//JavaScript Document
var nrx='main_pg';

function toggle(nr) // Reused from KDR Lab
{
	document.getElementById(nrx).style.display = 'none';
	vista = (document.getElementById(nr).style.display == 'none') ? 'block' : 'none';
	document.getElementById(nr).style.display = vista;
	document.getElementById('banner').style.display ='block';
	nrx=nr;
	
	if(nr=="contact_us")
		{
			parent.location='index.htm'
		}

}

/* popup windows  START */
var winheight=300
var winwidth=640
var pop=null
step=1;

function popswindows(url,name,width,height) 
{
if (!document.all)
 {
  if (!document.layers)
   {
    paramstp="height="+height+",width="+width+",top=10"+
    ",left=10,scrollbars=yes,location=no"+
    ",directories=no,status=no,menubar=no,toolbar=no,resizable=yes"
    pop=window.open(url,name,paramstp);
            if (pop.focus)
                        {
                                    pop.focus();
                        }
            return;
    }
   else
   {
            LeftPosition=(screen.width)?(screen.width-width)/4:100;
    TopPosition=(screen.height)?(screen.height-height)/2.3:100;
    paramstp="height="+height+",width="+width+",top="+TopPosition+
    ",left="+LeftPosition+",scrollbars=yes,location=no"+
    ",directories=no,status=no,menubar=no,toolbar=no,resizable=yes"
    pop=window.open(url,name,paramstp);
            loadpos=height/2-40
        if(pop.focus){pop.focus();} 
    return;
   } 
 } 
            LeftPosition=(screen.width)?(screen.width-width)/4:100;
            TopPosition=(screen.height)?(screen.height-height)/2.3:100;
            paramstp="height="+winheight+",width="+winwidth+",top="+TopPosition+",left="+LeftPosition+
            ",scrollbars=yes,location=no"+",directories=no,status=no,menubar=no,toolbar=no,resizable=yes"
            pop=window.open(url,name,paramstp);
 x = y = step
var z = 1

while (z < 250) {
pop.resizeBy (x, y)
z ++;
}
 if(pop.focus){pop.focus();} 
}
/* popup windows  END */

