function ShowBlockUIContent(ShowOnEvent)
{
	var content = '';
	if(parent.document.location.href.indexOf('yad2') != -1)
		PosTop = '40%';
		
	if(IsIframe == 0)
		content = $.ajax({url: PageContent, async: false}).responseText;
	else if (PageParametersToRequest != '')
			content = "<iframe src='" + PageContent + "' frameborder='0' scrolling='no' width='" + IframeWidth + "' height= '" + IframeHeight + "'></iframe>";
		 else
			content = "<iframe src='" + PageContent + "' frameborder='0' scrolling='no' width='" + IframeWidth + "' height= '" + IframeHeight + "'></iframe>";
	
	
	// add close buttom button 
	if(ShowCloseButton)
	{
		var divClose = "<div style='text-align:left;'><a href='javascript:($.unblockUI());'><img src='/images/Icons/Close.gif' border='0' /></a></div>";
		content += divClose;
	}
	 
	 
	$.extend($.blockUI.defaults.overlayCSS, { backgroundColor: OverlayBgColor});		
	$.extend($.blockUI.defaults.pageMessageCSS, { padding:'0px',
												  border:MsgBorder,
												  width:MsgWidth,
												  top:PosTop,		//set position on axis Y
												  left:PosLeft,		//set position on axis X
												  cursor:'default'
												});	
	
	
	
	//show auto complete
	if(AutoCompleteTextName != '' && ShowAutoComplete)
	{

		var divAutoComplete = "<div style='Z-INDEX: 100; POSITION: absolute;'><div id='AutoCompleteConteiner' style='text-align:right;POSITION: absolute;left:"+ACLeftPos+";top:"+ACTopPos+";'></div></div>";
		content = divAutoComplete+content;
	}
	
	
	//Automatic Show in Page Load
	if(AutoShowOnLoad == 1)
	{
		//**********************************************************************
		if(DelaySecondsBeforeShow < 0)
			DelaySecondsBeforeShow = 0;

		setTimeout(
			function(){
				// show
				($.blockUI(content));

				// auto close(hide) 
				var ViewSeconds;
				try{
					ViewSeconds = parseInt(ViewSecondsDM);
				}
				catch(e){
					ViewSeconds = -1;
				}	
				if(ViewSeconds > 0)
					setTimeout("($.unblockUI())",(1000*ViewSeconds));
				
				CustomSetTimeOutCode();
			}
			,(1000*DelaySecondsBeforeShow)
		);
		//**********************************************************************
	}
	
	
	//Not start on page load, but can start with js function like (onclick)
	if(ShowOnEvent == 1)
	{
		($.blockUI(content));
	}
}
