K3

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
function Submit1_onclick() {
    
if( Text2.value == "" || Text1.value == ""){window.alert('日期必须输入!');}
    
else{if(/^\d{4}-\d{2}-\d{2}$/.test(Text1.value)&&/^\d{4}-\d{2}-\d{2}$/.test(Text2.value))
    {window.open('http:
//localhost/Abiz/Report.aspx?RentStart='+Text1.value+"&RentEnd="+Text2.value);}else{window.alert('日期格式不正确!');}}
}
posted on 2005-07-22 11:50  K3  阅读(4501)  评论(3编辑  收藏  举报