

//¿ªÆôµ¯³öÊ½´°¿Ú
function showWindow(uri,width,heigh)  
{
	
    	//var features="status:0;dialogHeight:"+heigh+"px  ; dialogWidth:"+width+"px;";
    	//width-=10;
    	//heigh-=10;
        uri=uri+"&newmode=1";
	//window.showModalDialog("Pop.vm?"+uri+"&width="+width+"px&heigh="+heigh+"px","",features);   
	//alert(document.location);
	//alert(uri);
	
 	document.location=uri;
}


function showWindow(uri)  
{
     //var width=screen.height*1/2; 
     //var heigh=screen.width*1/2;
    
     //var features="status:0;dialogHeight:"+heigh+"px  ; dialogWidth:"+width+"px;";
	 //window.showModalDialog("Pop.vm?"+uri+"&width="+width+"px&heigh="+heigh+"px","",features); 
	   //alert(document.location);
	   //alert(document.location.seach);
	uri=uri+"&newmode=1";   
	//alert(uri);
 	document.location=uri;
}

function showWindowRead(uri)  
{
        uri=uri+"&newmode=1";   
	//alert(uri);
 	document.location=uri; 
 	
}
function showWindowRead(uri, width,heigh)  
{
    
        uri=uri+"&newmode=1";   
	//alert(uri);
 	document.location=uri;
 	
}
function showWindowAdd(uri)  
{
    
         uri=uri+"&newmode=1";   
	//alert(uri);
 	document.location=uri;
 	
}
function showWindowAdd(uri,width,heigh)  
{
     var features="status:0;dialogHeight:"+heigh+"px  ; dialogWidth:"+width+"px;";
	 window.showModelessDialog(uri,"",features);   
 	
}
function showModelessWindow(uri)  
{
     var features="status:0;dialogHeight:"+screen.height*3/4+"px  ; dialogWidth:"+screen.width*3/4+"px;";
	 window.showModelessDialog(uri,"",features);   
 	 document.location.reload();
}






function cancel()
{
	//if we are in model
	//alert(parent.window.name);
	parent.window.close();
	
}
