function showMessage(head,body){
		var width = document.documentElement.clientWidth/2-150;
		var height = document.documentElement.scrollTop+200;
		var str='';
		str+='<div id="popTop"></div>';
		str+='<div class="alert"><h3>';
		str+=head;
		str+='</h3><h5>'; 
		str+=body;
		str+='</h5><br />';
		str+='<div class="closeButton"><a href="#" onclick="return hideMessage();">Close</a></div>';
		str+='</div>';
		str+='<div id="popBottom"></div>';
		
	
		var ele =document.getElementById('showMessage'); 
		if(!ele){
			return;
		}
		ele.style.top=height+'px';
		ele.style.left=width+'px';
		ele.style.position='absolute';
		ele.innerHTML=str;
  		ele.style.display='block';
  		return false;
  		//setTimeout("document.getElementById('showMessage').style.display='none'",2500);
}

function showLargeImage(head, body){
		var width = document.documentElement.clientWidth/2-250;
		var height = document.documentElement.scrollTop;
		var str='';
		str+='<div id="popImageTop"></div>';
		str+='<div class="alert2"><div class="largeImage">'
		;
		str+=body;
		str+='</div><br />';
		str+='<div class="closeButton"><a href="#" onclick="return hideImage();">Close</a></div>';
		str+='</div>';
		str+='<div id="popImageBottom"></div>';
		
	
		var ele =document.getElementById('showLargeImage'); 
		if(!ele){
			return;
		}
		ele.style.top=height+'px';
		ele.style.left=width+'px';
		ele.style.position='absolute';
		ele.innerHTML=str;
  		ele.style.display='block';
  		return false;
}

function hideMessage(){

 	var ele = document.getElementById('showMessage'); 
 	if(!ele){
			return;
		}
 	ele.style.height='140px';
	ele.style.display='none';
	return false;
 }
 
 function hideImage(){
 	var ele = document.getElementById('showLargeImage'); 
 	if(!ele){
		return;
	}
	ele.style.display='none';
	return false;
 }
 
function jtrim(str){
	return str.replace(/ /g,"");
}

function showImage(head,body){
		var width = document.documentElement.clientWidth/2-300;
		var height = document.documentElement.scrollTop+100;
		var str='';
		str+='<div style="border:1px solid #CCCCCC;clear:both;z-index:1000;background-color: #ffffff;float:left;position:relative;" >';
		str+='<h3 style="text-align:center;margin-top:10px;background-color:#FB9F4B;color:#ffffff;border:0;padding:5px;">';
		str+=head;
		str+='</h3>';
		str+='<div style="margin:20px;">';
		str+=body;
		str+='</div>';
		
		str+='<br />';
		str+='<div class="closeButton" style="text-align:center;margin-bottom:10px;"><a href="#" onclick="return hideMessage();">Close</a></div>';
		str+='</div>';
		str+='</div>';
		
	
		var ele =document.getElementById('showMessage'); 
		if(!ele){
			return;
		}
		ele.style.top=height+'px';
		ele.style.left=width+'px';
		ele.style.position='absolute';
		ele.innerHTML=str;
  		ele.style.display='block';
  		return false;
  		//setTimeout("document.getElementById('showMessage').style.display='none'",2500);
}