function confirm_op( $page, $type ){

if( confirm("Are you sure you wish to "+$type+"?") ){
  window.location = $page;
}

}
