//窗口居中



function WCenter(ll_Width,ll_Height)
{
	var ll_Left;
	var ll_Top;
	var ls_Str;
	ll_Left=(screen.width -ll_Width)/2
	ll_Top=(screen.height -ll_Height)/2
	if (ll_Left<0)
	{
		ll_Left=0;
	}
	if (ll_Top<0)
	{
		ll_Top=0;
	}
	ls_Str = "left = " + ll_Left + ",top = " + ll_Top + ",width = " + ll_Width + ",height = " + ll_Height;
	return ls_Str;
}

function WCenterScroll(ll_Width,ll_Height)
{
	return "toolbar=no,scrollbars=yes,"+WCenter(ll_Width,ll_Height);
}


/*焦点函数
2002.11.1
操小华 
1.0
*/
function rollon(lo_obj) {
if (document.all(lo_obj).className == "inputc") {
	document.all(lo_obj).className = "inpute";
}
}

function rolloff(lo_obj) {
if (document.all(lo_obj).className == "inpute") {
	document.all(lo_obj).className = "inputc";
}
}

function GetDateFromCalendar(vv) 
{
  var rq;
//  var vv2=document.all(vv).value;
    rq=showModalDialog('../pub/c.htm',document.all(vv),'dialogWidth:480px;dialogHeight:400px;status:0;help:0;edge:sunken;scroll:no');
  if(rq !=null)
   {
      if(rq=="usenull")
      {
        document.all(vv).value="";
      }
      else
      {
        document.all(vv).value=rq;
      }
    
   }
  
}


function GetDateFromCalendar1(vv) 
{
  var rq;
//  var vv2=document.all(vv).value;
    rq=showModalDialog('pub/c.htm',document.all(vv),'dialogWidth:480px;dialogHeight:400px;status:0;help:0;edge:sunken;scroll:no');
  if(rq !=null)
   {
      if(rq=="usenull")
      {
        document.all(vv).value="";
      }
      else
      {
        document.all(vv).value=rq;
      }
    
   }
  
}


function GetDateFromCalendar2(vv) 
{
  var rq;
//  var vv2=document.all(vv).value;
    rq=showModalDialog('../pub/c.htm',document.all(vv),'dialogWidth:480px;dialogHeight:400px;status:0;help:0;edge:sunken;scroll:no');
  if(rq !=null)
   {
      if(rq=="usenull")
      {
        document.all(vv).value="";
      }
      else
      {
        document.all(vv).value=rq;
      }
    
   }
  
}

function GetDateFromCalendar3(vv) 
{
  var rq;
//  var vv2=document.all(vv).value;
    rq=showModalDialog('../../pub/c.htm',document.all(vv),'dialogWidth:480px;dialogHeight:400px;status:0;help:0;edge:sunken;scroll:no');
  if(rq !=null)
   {
      if(rq=="usenull")
      {
        document.all(vv).value="";
      }
      else
      {
        document.all(vv).value=rq;
      }
    
   }
  
}

function GetDateFromCalendar4(vv) 
{
  var rq;
//  var vv2=document.all(vv).value;
    rq=showModalDialog('../../../pub/c.htm',document.all(vv),'dialogWidth:480px;dialogHeight:400px;status:0;help:0;edge:sunken;scroll:no');
  if(rq !=null)
   {
      if(rq=="usenull")
      {
        document.all(vv).value="";
      }
      else
      {
        document.all(vv).value=rq;
      }
    
   }
  
}

function GetDateFromCalendar5(vv,ww) 
{
  var rq;
//  var vv2=document.all(vv).value;
    rq=showModalDialog(ww,document.all(vv),'dialogWidth:480px;dialogHeight:400px;status:0;help:0;edge:sunken;scroll:no');
  if(rq !=null)
   {
      if(rq=="usenull")
      {
        document.all(vv).value="";
      }
      else
      {
        document.all(vv).value=rq;
      }
    
   }
  
}





