function ShowForm() {
            var win = document.getElementById("questionLayer");
			if(win == null){
				var win = document.getElementById("questionLayer2");
			}
            win.style.left = document.body.clientWidth/2 - 190 + 'px';
            win.style.top  = document.documentElement.scrollTop + 50 + 'px';
            win.style.display = 'block';
            ShowShadowBlock();
}
function ShowSent() {
            var sent = document.getElementById("sendLayer");
            sent.style.left = document.body.clientWidth/2 - 190 + 'px';
            sent.style.top  = document.documentElement.scrollTop + 250 + 'px';
            sent.style.display = 'block';
            ShowShadowBlock();
            setTimeout("HideSent();",5000);
}
function ShowShadowBlock() {
            var layer = document.getElementById("layerShadow");
            var img      = document.images["bg"];
	
			var win = document.getElementById("questionLayer");
			if(win == null){
				var win = document.getElementById("questionLayer2");
			}
			
            layer.style.width  = document.body.clientWidth;
			layer.style.height = (win.clientHeight+52)+'px';
            //layer.style.height = document.body.clientHeight;        

            img.width  = document.body.clientWidth;
            //img.height = document.body.clientHeight;
			//alert(document.body.availHeight)
			img.style.height ='100%';
			//img.style.height =(document.getElementById("questionLayer").clientHeight+52)+'px';
            setElementOpacity(document.getElementById('layerShadow'), 0.63);
            layer.style.display = "block";
}

function HideForm(){
	var win = document.getElementById("questionLayer");
	if(win == null){
		var win = document.getElementById("questionLayer2");
	}
    win.style.display = 'none';
    HideShabowBlock();
}
function HideSent(){
    document.getElementById('sendLayer').style.display = 'none';
    HideShabowBlock();
}

function HideShabowBlock(){
    var layer = document.getElementById("layerShadow");
    var img      = document.images["bg"];

    img.width  = 0;
    img.height = 0;

    layer.style.display = "none";
}