﻿// JScript File
/* -----------------------------------------------
   Floating layer - v.1
   (c) 2006 www.haan.net
   contact: jeroen@haan.net
   You may use this script but please leave the credits on top intact.
   Please inform us of any improvements made.
   When usefull we will add your credits.
  ------------------------------------------------ */

//x = 20;
//y = 70;
function Show(strId)
{
    var obj= document.getElementById(strId);
    obj.style.display= 'block';
    obj.style.visibility='visible';
}

function setVisible(obj)
{
	obj = document.getElementById(obj);
	obj.style.display = (obj.style.display == 'block') ? 'none' : 'block';
}
//function placeIt(obj)
//{
//	obj = document.getElementById(obj);
//	if (document.documentElement)
//	{
//		theLeft = document.documentElement.scrollLeft;
//		theTop = document.documentElement.scrollTop;
//	}
//	else if (document.body)
//	{
//		theLeft = document.body.scrollLeft;
//		theTop = document.body.scrollTop;
//	}
//	theLeft += x;
//	theTop += y;
//	obj.style.left = theLeft + 'px' ;
//	obj.style.top = theTop + 'px' ;
//	setTimeout("placeIt('layer1')",500);
//}
//document.onscroll = setTimeout("placeIt('layer1')",500);

                
 function emptyFields()
                {
                javascript:setVisible('layer1');
               /* document.getElementById("<%=txtEmailTo.ClientID %>").value = "";
                document.getElementById("<%=txtName.ClientID %>").value = "";
                document.getElementById("<%=txtEmailFrom.ClientID %>").value = "";
                document.getElementById("<%=chkCopyToMe.ClientID %>").checked = false;
                document.getElementById("<%=txtSubject.ClientID %>").value = "";
                document.getElementById("<%=txtMessage.ClientID %>").value = "";*/
                /*document.getElementById("<%=ValidationSummaryDiv.ClientID %>").style.visibility = 'hidden' ;*/
                }
