function popUp(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300,left = 312,top = 234');");

}

function disableSubmit(whichButton)

{

    if (document.getElementById)

    {

        // this is the way the standards work

        document.getElementById(whichButton).disabled = true;

    }

    else if (document.all)

    {

        // this is the way old msie versions work

        document.all[whichButton].disabled = true;

    }

    else if (document.layers)

    {

        // this is the way nn4 works

        document.layers[whichButton].disabled = true;

    }

}

		function getWindowHeight() {

			var windowHeight = 0;

			if (typeof(window.innerHeight) == 'number') {

				windowHeight = window.innerHeight;

			}

			else {

				if (document.documentElement && document.documentElement.clientHeight) {

					windowHeight = document.documentElement.clientHeight;

				}

				else {

					if (document.body && document.body.clientHeight) {

						windowHeight = document.body.clientHeight;

					}

				}

			}

			return windowHeight;

		}

		function setFooter() {

			if (document.getElementById) {

				var windowHeight = getWindowHeight();

				if (windowHeight > 0) {

					var headerHeight = document.getElementById('header').offsetHeight;

					var contentHeight = document.getElementById('content').offsetHeight;

					var footerElement = document.getElementById('footer');

					var footerHeight  = footerElement.offsetHeight;

					if (windowHeight - (headerHeight + contentHeight + footerHeight) >= 0) {

						footerElement.style.position = 'relative';

						if (document.all) {

							footerElement.style.top = (windowHeight - (headerHeight + contentHeight + footerHeight - 18)) + 'px';

						}

						else {

							footerElement.style.top = (windowHeight - (headerHeight + contentHeight + footerHeight)) + 'px';

						}							

					}

					else {

						footerElement.style.position = 'static';

					}

				}

			}

		}

	
		window.onload = function() {
			setFooter();
		}
		
		window.onresize = function() {

			setFooter();

		}


function checkAll(field)

{

for (i = 0; i < field.length; i++)

	field[i].checked = true ;

}



function uncheckAll(field)

{

for (i = 0; i < field.length; i++)

	field[i].checked = false ;

}

var RecaptchaOptions = {
    theme : 'clean'
 };
