function show(title,msg)
{
    var d_mask=document.getElementById('mask');
    var d_dialog = document.getElementById('dialog');
    
    
    d_mask.style.width = document.body.clientWidth ;
    d_mask.style.height=document.body.clientHeight;
    
    
    d_dialog.style.top = document.body.clientHeight / 2 - 290;
    d_dialog.style.left =document.body.clientWidth / 2 -400;
   
    var Inner = "<input type='button' value='Close' onclick='DialogClose()'/>"
    
    var info
	if (msg=='infomation'){
	
	 info= "<table cellspacing='0' width='100%'>"+
    "<tr class='dgtitle'><td><font color='#FFFFFF'> &nbsp;"
    +title
    +"</font></td><td align='right' valign='center'><a style='cursor:hand'><img  src='modeldialog/close1.jpg' onclick='DialogClose()' onmouseover='Icon_Close_Over(this)' onmouseout='Icon_Close_Out(this)'/></a>&nbsp;&nbsp;</td></tr>"
    +"<tr><td colspan='2'>"
    +"</td></tr>"
	+"<tr height='78%' align='center'><td align='center'  colspan='2'><img src='info/info.jpg'></img></td></tr>"
    +"</table>"
	;}
	
    else{
	 info= "<table cellspacing='0' width='100%'>"+
    "<tr class='dgtitle'><td><font color='#FFFFFF'> &nbsp;"
    +title
    +"</font></td><td align='right' valign='center'><a style='cursor:hand'><img  src='modeldialog/close1.jpg' onclick='DialogClose()' onmouseover='Icon_Close_Over(this)' onmouseout='Icon_Close_Out(this)'/></a>&nbsp;&nbsp;</td></tr>"
    +"<tr><td colspan='2'>"
    +"</td></tr>"
    +"</table>"+"<iframe name='newsdetail' src="+msg+" width='800' height='545' scrolling='yes' frameborder='0' marginheight='30' marginwidth='30'></iframe>"}
   
    d_dialog.innerHTML =info;
  
    enableSelect()
    
    d_mask.style.visibility='visible';
    d_dialog.style.visibility='visible';
}

function Icon_Close_Over(obj)
{
    obj.src='modeldialog/close1.jpg';
}

function Icon_Close_Out(obj)
{
    obj.src='modeldialog/close1.jpg'
}

function DialogClose()
{
    var d_mask=document.getElementById('mask');
    var d_dialog = document.getElementById('dialog');
    
   
    enableSelect()
    d_mask.style.visibility='hidden';
    d_dialog.style.visibility='hidden';
	d_dialog.innerHTML ='';
}

function disableSelect()
{   
        for(i=0;i<document.all.length;i++)  
              if(document.all(i).tagName=="SELECT")
                document.all(i).disabled = true;
 } 
 
function enableSelect()
{
    for(i=0;i<document.all.length;i++){   
              if(document.all(i).tagName=="SELECT")
              {
                document.all(i).disabled = false;
              }
        }   
}  

function divBlock_event_mousedown()
{ 
var e, obj, temp;
obj=document.getElementById('dialog');  
e=window.event?window.event:e;
obj.startX=e.clientX-obj.offsetLeft;  
obj.startY=e.clientY-obj.offsetTop;  
document.onmousemove=document_event_mousemove;  
temp=document.attachEvent?document.attachEvent('onmouseup',document_event_mouseup):document.addEventListener('mouseup',document_event_mouseup,'');
}
  
  
function document_event_mousemove(e)
{
var e, obj;  
obj=document.getElementById('dialog'); 
e=window.event?window.event:e;   
with(obj.style){  
    position='absolute';  
    left=e.clientX-obj.startX+'px';  
    top=e.clientY-obj.startY+'px'; 
    }
}

function document_event_mouseup(e)
{ 
var temp; 
document.onmousemove='';
temp=document.detachEvent?document.detachEvent('onmouseup',document_event_mouseup):document.removeEventListener('mouseup',document_event_mouseup,'');
}


window.onresize = function()
{
    var d_mask=document.getElementById('mask');
    var d_dialog = document.getElementById('dialog');
    
   
    d_mask.style.width = document.body.clientWidth ;
    d_mask.style.height=document.body.clientHeight;
}


