// JavaScript Document
 	  
  	function createDiv(newDivId,divType,zIndex,width100percent,height100percent){
		var H=$(document).height();
			
		//- ADDING A DIV TO DOM
				
		if(!$('#'+newDivId).length)
			$("body").append('<div id="'+newDivId+'" class="'+newDivId+'"></div>');	
	  	
		if(divType=='fade'){
			if(width100percent && height100percent)
				$('#'+newDivId).css({'height':H+'px','width':'100%','opacity':.7,'z-index':zIndex});
			else if(!width100percent && height100percent)
				$('#'+newDivId).css({'height':H+'px','opacity':.7,'z-index':zIndex});
			else if(width100percent && !height100percent)	
				$('#'+newDivId).css({'width':'100%','opacity':.7,'z-index':zIndex});
			else if(!width100percent && !height100percent)	
				$('#'+newDivId).css({'opacity':.7,'z-index':zIndex});
		}else{
			$('#'+newDivId).css({'z-index':zIndex});
		}
	} 

	function removeDiv(divId){
		
		$('#'+divId).remove();
		
	} 
  
	function pleaseWaitHtml(divName){
		return '<div class="'+divName+'"><img src="display_wisie/images/buters-loader.gif" style="vertical-align:middle"  title="Please Wait" > Please Wait ...</div>';
	}
  
  	function dDisplayDivInCenter(divId,adjustWidth,adjustHeight){
  		
		var availH=window.screen.availHeight;
		var availW=window.screen.availWidth;
		var divH=$('#'+divId).height();
		var divW=$('#'+divId).width();
		
		var T=(availH-divH)/2;
		var L=(availW-divW)/2;
		
		T=T-parseInt(adjustHeight);
		L=L+parseInt(adjustWidth);
		//alert(divH);	
		$('#'+divId).css({'top':T+'px','left':L+'px'});
  	}
  
  
  
  
