//Edit Product
function edit_prod(id)
{
     if(confirm("Sure you want to edit this Product ? There is NO undo!"))
	 {
         document.location.href='index.php?page=EditProduct&action=edit&id='+id;
     }

}
//delete Product
function delete_prod(id)
{
     if(confirm("Sure you want to delete this Product ? There is NO undo!"))
	 {
         document.location.href='index.php?page=DeleteProduct&action=delete&id='+id;
         }

}
//Activate Product
function activate_prod(id)
{
     if(confirm("Sure you want to Activate this Product ? There is NO undo!"))
	 {
         document.location.href='index.php?page=InactiveProduct&action=activate&id='+id;
        }

}


//delete Passcode
function delete_pin(id)
{
     if(confirm("Sure you want to delete this Passcode ? There is NO undo!"))
	 {
         document.location.href='index.php?page=DeletePasscod&action=delete&id='+id;
         }

}

//Block Passcode
function block_pin(id)
{
     if(confirm("Sure you want to block this Passcode ? There is NO undo!"))
	 {
         document.location.href='index.php?page=ActivePasscod&action=block&id='+id;
     }

}

//Activate Passcode
function activate_pin(id)
{
     if(confirm("Sure you want to Activate this Passcode ? There is NO undo!"))
	 {
         document.location.href='index.php?page=InactivePasscod&action=activate&id='+id;
     }

}
//edit News
function edit_news(id)
{
     if(confirm("Sure you want to Edit this News ? There is NO undo!"))
	 {
         document.location.href='index.php?page=AddNews&action=edit&id='+id;
     }

}
//Delete News
function delete_news(id)
{
     if(confirm("Sure you want to Delete this News ? There is NO undo!"))
	 {
         document.location.href='index.php?page=AddNews&action=delete&id='+id;
     }

}
//Delete News
function delete_feedback(id)
{
     if(confirm("Sure you want to Delete this Feedback? There is NO undo!"))
	 {
         document.location.href='feedback.php?action=delete&id='+id;
     }

}

//Block User
function block_user(id,active)
{
     if(active=='yes')
	 {
     if(confirm("Sure you want to Block this User? There is NO undo!"))
	 {
         document.location.href='manage_member.php?action=block&id='+id;
     }
	 }
	 else
	 {
	   if(confirm("Sure you want to Activate this User? There is NO undo!"))
	 {
         document.location.href='manage_member.php?action=activate&id='+id;
     }
	 }


}
	