function openw(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function pubnews()
{
    openw('http://cw.9hy.net/control/control.php?mod=pubnews','pubnew','scrollbars=yes,width=730,height=600') ;
}

function modnews(newsid)
{
    openw('http://cw.9hy.net/control/control.php?mod=modnews&newsid='+newsid,'modnews','scrollbars=yes,width=730,height=600') ;
}

function addproduct()
{
    openw('http://cw.9hy.net/control/control.php?mod=addproduct','addproduct','scrollbars=yes,width=730,height=600') ;
}

function modproduct(productid)
{
    openw('http://cw.9hy.net/control/control.php?mod=modproduct&productid='+productid,'modproduct','scrollbars=yes,width=730,height=600') ;
}

function modproductcategory()
{
	  openw('http://cw.9hy.net/control/control.php?mod=modproductcategory','modproductcategory','scrollbars=yes,width=730,height=572') ;

}
function modabout()
{
    openw('http://cw.9hy.net/control/control.php?mod=modabout','modabout','scrollbars=yes,width=730,height=572') ;
}

function replyguest(guestid)
{
    openw('http://cw.9hy.net/control/control.php?mod=replyguest&guestid='+guestid,'replyguest','scrollbars=yes,width=730,height=420') ;
}
function modhr()
{
    openw('http://cw.9hy.net/control/control.php?mod=modhr','modhr','scrollbars=yes,width=730,height=572') ;
}

function modcontact()
{
    openw('http://cw.9hy.net/control/control.php?mod=modcontact','modcontact','scrollbars=yes,width=730,height=572') ;
}

function deletenews(newsid)
{
	  if ( confirm('确定要删除?') == true )
    openw('http://cw.9hy.net/control/control.php?mod=deletenews&newsid='+newsid,'deletenews','scrollbars=no,width=100,height=100') ;
}

function deleteguest(guestid)
{
	  if ( confirm('确定要删除?') == true )
    openw('http://cw.9hy.net/control/control.php?mod=deleteguest&guestid='+guestid,'deleteguest','scrollbars=no,width=100,height=100') ;
}
function deleteproduct(productid)
{
	  if ( confirm('确定要删除?') == true )
    openw('http://cw.9hy.net/control/control.php?mod=deleteproduct&productid='+productid,'deleteproduct','scrollbars=no,width=100,height=100') ;
}

function commendproduct(productid)
{
	  if ( confirm('确定要推荐?') == true )
    openw('http://cw.9hy.net/control/control.php?mod=commendproduct&productid='+productid,'commendproduct','scrollbars=no,width=100,height=100') ;
}

function uncommendproduct(productid)
{
	  if ( confirm('确定要取消推荐?') == true )
    openw('http://cw.9hy.net/control/control.php?mod=uncommendproduct&productid='+productid,'uncommendproduct','scrollbars=no,width=100,height=100') ;
}

function modsubabout()
{
    openw('http://cw.9hy.net/control/control.php?mod=modsubabout','modsubabout','scrollbars=yes,width=730,height=572') ;
}


function modlinks()
{
    openw('http://cw.9hy.net/control/control.php?mod=modlinks','modlinks','scrollbars=yes,width=730,height=572') ;
}

function modbase()
{
    openw('http://cw.9hy.net/control/control.php?mod=modbase','modbase','scrollbars=yes,width=730,height=600') ;
}