function noScrollIE() {



document.body.scroll = "no";



document.body.style.overflow = 'hidden';

}



function scrollIE() {



document.body.scroll = "yes";



document.body.style.overflow = 'scroll';



}



function noScrollNS() {



document.width = window.innerWidth;



document.height = window.innerHeight;



}



function scrollNS() {



document.width = 1000;



document.height = 1000;



}

function LockPage() {



if (browser = "Internet Explorer") {



noScrollIE();



}



else if (browser = "Netscape Navigator") {



noScrollNS();



}



}



function UnLockPage() {



if (browser = "Internet Explorer") {



scrollIE();



}



else if (browser = "Netscape Navigator") {



scrollNS();



}



}





function gradient(id, level)

{

	var box = document.getElementById(id);

	box.style.opacity = level;

	box.style.MozOpacity = level;

	box.style.KhtmlOpacity = level;

	box.style.filter = "alpha(opacity=" + level * 100 + ")";

	box.style.display="block";

	return;

}





function fadein(id) 

{

	var level = 0;

	while(level <= 1)

	{

		setTimeout( "gradient('" + id + "'," + level + ")", (level* 1000) + 10);

		level += 0.01;

	}

}





// Open the lightbox





function openbox(formtitle, fadin)

{

  var box = document.getElementById('box'); 

  document.getElementById('filter').style.display='block';

  LockPage()

  var btitle = document.getElementById('boxtitle');

  btitle.innerHTML = formtitle;

  

  if(fadin)

  {

	 gradient("box", 0);

	 fadein("box");

  }

  else

  { 	

    box.style.display='block';

  }  	

}





// Close the lightbox



function closebox()

{

   document.getElementById('box').style.display='none';

   document.getElementById('filter').style.display='none';

   UnLockPage();

   scroll(0,475);

}








