




function show(object,pageid,img,cnt){
			
	
			
			if(document.all[object].style.pixelWidth == 400) {
			
			document.all[object].style.pixelWidth=10;
			document.all[object].style.pixelHeight=10;
			//Make the pos left dynamic!
			document.all[object].style.posLeft = 50;       
        	document.all[object].style.posTop = 50;
        	
			//document.all[object].style.display = 'none';
			document.all[object].style.visibility = 'hidden';
			img.src = "views/icons/help.gif";
			return;
		} else
	 	{
		
	 		
		document.all[object].style.backgroundColor = '#E0E7F0';
		document.all[object].style.position = 'absolute';
		
		document.all[object].style.pixelWidth=400; 
		
		//Estimate pixel height
		if(cnt !=0){
			
		var hght = cnt * 110;	
			
			if (hght >300){
				hght = 300;	
			}
		
		} else {
			
		var hght = 110;	
		}
		
		document.all[object].style.pixelHeight=hght;
		//End estimate pixel height
		
		document.all[object].style.visibility = 'visible';
		
		img.src = "views/icons/close22.gif";
				
		
		//Dynamic positioning of layer/////////////////////////
		
		var width = document.body.clientWidth;
		var height = document.body.clientHeight;
			
		var x = width - 430;
		//var y = height - 110;
		
		//Need to change!!!!#############################
		//Make the pos left dynamic!
		//document.all[object].style.posLeft = 580;
		document.all[object].style.posLeft = x;
		
		//if(mainpage==1){
			
			// if((tm == 1) && (bc == 0)){
	        	document.all[object].style.posTop = 134;
/*
	 	} else if ((tm ==1) && (bc ==1)) {
	        	document.all[object].style.posTop = 135;
	        } else if((tm ==0) && (bc ==0)){
	        	document.all[object].style.posTop = 83;	
	        } else if((tm ==0) && (bc ==1)){
	        	document.all[object].style.posTop = 107;	
	        }
	        */
		/*	
		} else {
			
	        if((tm == 1) && (bc == 0)){
	        	document.all[object].style.posTop = 135;
	        } else if ((tm ==1) && (bc ==1)) { 
	        	document.all[object].style.posTop = 135;
	        } else if((tm ==0) && (bc ==0)){
	        	document.all[object].style.posTop = 82;	
	        } else if((tm ==0) && (bc ==1)){
	        	document.all[object].style.posTop = 107;	
	        }
	        
		}*/
        
        if(document.all[object].myFlag == null){
        parent.frames['help_iframe'].location='context_help.php?pgid='+pageid;	
        document.all[object].myFlag = true;
        }
		
		}
	
}


function popup_help(){
    window.open("help/VC_help.php","helpwindow", "top=50,left=50,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=900,height=600");
}
