function UpdateAjax(namepanel,url,divcontent)
{	
	var myAjax = new Ajax.Updater(divcontent,url,{method: 'get',evalScripts:true});
    namepanel.show(); 
}

function initpaneldlg (placeholder,width, height) 
{		
	YAHOO.namespace("example.container");		
	var panel = new YAHOO.widget.Panel(placeholder, 
						{ 
							  modal: true,
							  width : width,
							  height: height,
							  fixedcenter : true,
							  visible : false,
							  constraintoviewport : true,
							  underlay :"none",//shadow,matte,none
							  autofillheight: "body",//header,body,footer,
							  zIndex : 200,
							  monitorresize : true, 						  
							  draggable:true
						});	
	panel.render();		
	return panel;	
}

function displayimgupload(name,path,div_name,id_txt)
{
	var div=document.getElementById(div_name);	
	if(div)
	{
		div.innerHTML='<img src=' + path + ' class="imgborder"></br>'+name;
		var div=document.getElementById(id_txt);	                	  
		if(div) div.value=name;  
		try
		{
			//Run some code here
			if(win_upload)win_upload.hide();
		}
		catch(err)
		{
			//Handle errors here
		}
		
		try
		{
			//Run some code here
			if(win_select_photo)win_select_photo.hide();
		}
		catch(err)
		{
			//Handle errors here
		}		
	}
}	
